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

« back to all changes in this revision

Viewing changes to server/conf.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
/* conf.h - supporting elements of conf parsing functions for upsd
 
2
 
 
3
   Copyright (C)
 
4
        2001    Russell Kroll <rkroll@exploits.org>
 
5
        2008    Arjen de Korte <adkorte-guest@alioth.debian.org>
 
6
 
 
7
   This program is free software; you can redistribute it and/or modify
 
8
   it under the terms of the GNU General Public License as published by
 
9
   the Free Software Foundation; either version 2 of the License, or
 
10
   (at your option) any later version.
 
11
 
 
12
   This program is distributed in the hope that it will be useful,
 
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
   GNU General Public License for more details.
 
16
 
 
17
   You should have received a copy of the GNU General Public License
 
18
   along with this program; if not, write to the Free Software
 
19
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
20
*/
 
21
 
 
22
#ifdef __cplusplus
 
23
/* *INDENT-OFF* */
 
24
extern "C" {
 
25
/* *INDENT-ON* */
 
26
#endif
 
27
 
 
28
/* read upsd.conf */
 
29
void load_upsdconf(int reloading);
 
30
 
 
31
/* add valid UPSes from ups.conf to the internal structures */
 
32
void upsconf_add(int reloading);
 
33
 
 
34
/* flush existing config, then reread everything */
 
35
void conf_reload(void);
 
36
 
 
37
typedef struct ups_s {
 
38
        char    *upsname;
 
39
        char    *driver;
 
40
        char    *port;
 
41
        char    *desc;
 
42
        struct ups_s    *next;
 
43
} ups_t;
 
44
 
 
45
/* used for really clean shutdowns */
 
46
void delete_acls(void);
 
47
void delete_access(void);
 
48
 
 
49
extern  int     num_ups;
 
50
 
 
51
#ifdef __cplusplus
 
52
/* *INDENT-OFF* */
 
53
}
 
54
/* *INDENT-ON* */
 
55
#endif
 
56