Blame fedfs/fedfs-getsrvinfo.h
|
Packit Service |
ee8571 |
/*
|
|
Packit Service |
ee8571 |
* Copyright 2011 Oracle. All rights reserved.
|
|
Packit Service |
ee8571 |
*
|
|
Packit Service |
ee8571 |
* This file is part of fedfs-utils.
|
|
Packit Service |
ee8571 |
*
|
|
Packit Service |
ee8571 |
* fedfs-utils is free software; you can redistribute it and/or modify
|
|
Packit Service |
ee8571 |
* it under the terms of the GNU General Public License version 2.0 as
|
|
Packit Service |
ee8571 |
* published by the Free Software Foundation.
|
|
Packit Service |
ee8571 |
*
|
|
Packit Service |
ee8571 |
* fedfs-utils is distributed in the hope that it will be useful, but
|
|
Packit Service |
ee8571 |
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
ee8571 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit Service |
ee8571 |
* GNU General Public License version 2.0 for more details.
|
|
Packit Service |
ee8571 |
*
|
|
Packit Service |
ee8571 |
* You should have received a copy of the GNU General Public License
|
|
Packit Service |
ee8571 |
* version 2.0 along with fedfs-utils. If not, see:
|
|
Packit Service |
ee8571 |
*
|
|
Packit Service |
ee8571 |
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
|
Packit Service |
ee8571 |
*/
|
|
Packit Service |
ee8571 |
|
|
Packit Service |
ee8571 |
#ifndef _FEDFS_GETSRVINFO_H_
|
|
Packit Service |
ee8571 |
#define _FEDFS_GETSRVINFO_H_
|
|
Packit Service |
ee8571 |
|
|
Packit Service |
ee8571 |
/**
|
|
Packit Service |
ee8571 |
* Single list element containing SRV record data
|
|
Packit Service |
ee8571 |
*/
|
|
Packit Service |
ee8571 |
struct srvinfo {
|
|
Packit Service |
ee8571 |
struct srvinfo *si_next;
|
|
Packit Service |
ee8571 |
char *si_target;
|
|
Packit Service |
ee8571 |
unsigned short si_priority;
|
|
Packit Service |
ee8571 |
unsigned short si_weight;
|
|
Packit Service |
ee8571 |
unsigned short si_port;
|
|
Packit Service |
ee8571 |
};
|
|
Packit Service |
ee8571 |
|
|
Packit Service |
ee8571 |
enum {
|
|
Packit Service |
ee8571 |
ESI_SUCCESS = 0,
|
|
Packit Service |
ee8571 |
ESI_NONAME = -2,
|
|
Packit Service |
ee8571 |
ESI_AGAIN = -3,
|
|
Packit Service |
ee8571 |
ESI_FAIL = -4,
|
|
Packit Service |
ee8571 |
ESI_NODATA = -5,
|
|
Packit Service |
ee8571 |
ESI_SERVICE = -8,
|
|
Packit Service |
ee8571 |
ESI_MEMORY = -10,
|
|
Packit Service |
ee8571 |
ESI_SYSTEM = -11,
|
|
Packit Service |
ee8571 |
ESI_PARSE = -1000,
|
|
Packit Service |
ee8571 |
};
|
|
Packit Service |
ee8571 |
|
|
Packit Service |
ee8571 |
int getsrvinfo(const char *srvname, const char *domainname,
|
|
Packit Service |
ee8571 |
struct srvinfo **si);
|
|
Packit Service |
ee8571 |
void freesrvinfo(struct srvinfo *si);
|
|
Packit Service |
ee8571 |
const char *gsi_strerror(int status);
|
|
Packit Service |
ee8571 |
|
|
Packit Service |
ee8571 |
#endif /* !_FEDFS_GETSRVINFO_H_ */
|