2003-03-11 22:04:53 +00:00
|
|
|
/* srv.h
|
2004-12-16 18:36:42 +00:00
|
|
|
* Copyright (C) 2003, 2004 Free Software Foundation, Inc.
|
2003-03-11 22:04:53 +00:00
|
|
|
*
|
|
|
|
* This file is part of GNUPG.
|
|
|
|
*
|
|
|
|
* GNUPG is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2007-10-23 10:48:09 +00:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2003-03-11 22:04:53 +00:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* GNUPG is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2007-10-23 10:48:09 +00:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2003-03-11 22:04:53 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SRV_H_
|
|
|
|
#define _SRV_H_
|
|
|
|
|
2004-12-29 00:58:05 +00:00
|
|
|
#ifdef USE_DNS_SRV
|
2003-08-28 23:29:32 +00:00
|
|
|
#ifdef _WIN32
|
2003-05-31 03:15:50 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#else
|
2003-03-11 22:04:53 +00:00
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/nameser.h>
|
|
|
|
#include <resolv.h>
|
2004-12-29 00:58:05 +00:00
|
|
|
#endif /* !_WIN32 */
|
|
|
|
#endif /* USE_DNS_SRV */
|
2004-12-16 18:36:42 +00:00
|
|
|
#include "types.h"
|
2003-03-11 22:04:53 +00:00
|
|
|
|
|
|
|
#ifndef MAXDNAME
|
|
|
|
#define MAXDNAME 1025
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct srventry
|
|
|
|
{
|
2003-03-15 02:28:02 +00:00
|
|
|
u16 priority;
|
|
|
|
u16 weight;
|
|
|
|
u16 port;
|
2003-03-11 22:04:53 +00:00
|
|
|
int run_count;
|
2003-04-13 20:06:09 +00:00
|
|
|
char target[MAXDNAME];
|
2003-03-11 22:04:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
int getsrv(const char *name,struct srventry **list);
|
|
|
|
|
|
|
|
#endif /* !_SRV_H_ */
|