~ubuntu-branches/ubuntu/saucy/nut/saucy

« back to all changes in this revision

Viewing changes to include/shared-tables.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2005-07-20 19:48:50 UTC
  • mto: (16.1.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20050720194850-oo61wjr33rrx2mre
Tags: upstream-2.0.2
ImportĀ upstreamĀ versionĀ 2.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* shared-tables.h - tables of info from shared.h, but 
2
 
   prolly only used for info output/parsing
3
 
 
4
 
   Copyright (C) 2000 Russell Kroll <rkroll@exploits.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
 
/* ------------------------------------------------------- *
22
 
 * Included for compatibility in 1.4, will be gone by 2.0  *
23
 
 * ------------------------------------------------------- */
24
 
 
25
 
/* Originally in upsd.h, separated out because I wanted the text
26
 
   strings while working on table driven stuff in the apc-smart
27
 
   module
28
 
        Nigel Metheringham <Nigel.Metheringham@vdata.co.uk>
29
 
*/
30
 
 
31
 
#ifndef SHARED_TABLES_H_SEEN
32
 
#define SHARED_TABLES_H_SEEN 1
33
 
 
34
 
/* netvars[] - map text strings from the network to internal identifiers */
35
 
 
36
 
struct netvars_t {
37
 
        char    *name;
38
 
        int     type;
39
 
        char    *desc;
40
 
};
41
 
 
42
 
/* instcmds[] - instant commands */
43
 
struct instcmds_t {
44
 
        char    *name;
45
 
        int     cmd;
46
 
        char    *desc;
47
 
};
48
 
 
49
 
#endif  /* SHARED_TABLES_H_SEEN */