~iheino+ub/+junk/nut-upsconf-docfix

« back to all changes in this revision

Viewing changes to server/stype.h

  • Committer: Tuomas Heino
  • Author(s): Laurent Bigonville
  • Date: 2014-04-22 20:46:12 UTC
  • Revision ID: iheino+ub@cc.hut.fi-20140422204612-1x2gh3nkezfsdao4
Tags: upstream-2.7.2
ImportĀ upstreamĀ versionĀ 2.7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* stype.h - server data definitions for upsd
 
2
 
 
3
   Copyright (C)
 
4
        2007    Arjen de Korte <arjen@de-korte.org>
 
5
 
 
6
   This program is free software; you can redistribute it and/or modify
 
7
   it under the terms of the GNU General Public License as published by
 
8
   the Free Software Foundation; either version 2 of the License, or
 
9
   (at your option) any later version.
 
10
 
 
11
   This program is distributed in the hope that it will be useful,
 
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
   GNU General Public License for more details.
 
15
 
 
16
   You should have received a copy of the GNU General Public License
 
17
   along with this program; if not, write to the Free Software
 
18
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
19
*/
 
20
 
 
21
#ifndef STYPE_H_SEEN
 
22
#define STYPE_H_SEEN 1
 
23
 
 
24
#include <netdb.h>
 
25
 
 
26
#ifndef NI_MAXHOST
 
27
#define NI_MAXHOST      1025
 
28
#endif
 
29
 
 
30
#ifndef NI_MAXSERV
 
31
#define NI_MAXSERV      32
 
32
#endif
 
33
 
 
34
#ifdef __cplusplus
 
35
/* *INDENT-OFF* */
 
36
extern "C" {
 
37
/* *INDENT-ON* */
 
38
#endif
 
39
 
 
40
typedef struct stype_s {
 
41
        char    *addr;
 
42
        char    *port;
 
43
        int     sock_fd;
 
44
        struct stype_s  *next;
 
45
} stype_t;
 
46
 
 
47
#ifdef __cplusplus
 
48
/* *INDENT-OFF* */
 
49
}
 
50
/* *INDENT-ON* */
 
51
#endif
 
52
 
 
53
#endif  /* STYPE_H_SEEN */