2003-03-11 23:04:53 +01:00
|
|
|
/* srv.h
|
|
|
|
* Copyright (C) 2003 Free Software Foundation, Inc.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (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
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SRV_H_
|
|
|
|
#define _SRV_H_
|
|
|
|
|
2003-08-29 01:29:32 +02:00
|
|
|
#ifdef _WIN32
|
2003-05-31 05:15:50 +02:00
|
|
|
#include <windows.h>
|
|
|
|
#else
|
2003-03-11 23:04:53 +01:00
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/nameser.h>
|
|
|
|
#include <resolv.h>
|
2003-05-31 05:15:50 +02:00
|
|
|
#endif
|
2003-03-11 23:04:53 +01:00
|
|
|
|
|
|
|
#ifndef MAXDNAME
|
|
|
|
#define MAXDNAME 1025
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct srventry
|
|
|
|
{
|
2003-03-15 03:28:02 +01:00
|
|
|
u16 priority;
|
|
|
|
u16 weight;
|
|
|
|
u16 port;
|
2003-03-11 23:04:53 +01:00
|
|
|
int run_count;
|
2003-04-13 22:06:09 +02:00
|
|
|
char target[MAXDNAME];
|
2003-03-11 23:04:53 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
int getsrv(const char *name,struct srventry **list);
|
|
|
|
|
|
|
|
#endif /* !_SRV_H_ */
|