~ubuntu-branches/debian/sid/ntp/sid

« back to all changes in this revision

Viewing changes to ntpsnmpd/ntpsnmpd-opts.h

  • Committer: Package Import Robot
  • Author(s): Peter Eisentraut
  • Date: 2012-02-27 13:55:56 UTC
  • mfrom: (1.2.12)
  • Revision ID: package-import@ubuntu.com-20120227135556-dkx4mkod5trl5bgt
Tags: 1:4.2.6.p5+dfsg-1
* New upstream release (closes: #644673)
* Updated instructions on generating autotools.patch
* Updated standards version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  
2
2
 *  EDIT THIS FILE WITH CAUTION  (ntpsnmpd-opts.h)
3
3
 *  
4
 
 *  It has been AutoGen-ed  January  3, 2011 at 09:18:38 PM by AutoGen 5.11.6pre7
 
4
 *  It has been AutoGen-ed  December 24, 2011 at 06:34:36 PM by AutoGen 5.12
5
5
 *  From the definitions    ntpsnmpd-opts.def
6
6
 *  and the template file   options
7
7
 *
8
 
 * Generated from AutoOpts 34:0:9 templates.
 
8
 * Generated from AutoOpts 35:0:10 templates.
9
9
 *
10
10
 *  AutoOpts is a copyrighted work.  This header file is not encumbered
11
11
 *  by AutoOpts licensing, but is provided under the licensing terms chosen
17
17
 *
18
18
 * This source file is copyrighted and licensed under the following terms:
19
19
 *
20
 
 * ntpsnmpd copyright (c) 1970-2011 David L. Mills and/or others - all rights reserved
21
 
 *
22
 
 * see html/copyright.html
 
20
 *  see html/copyright.html
 
21
 *  
23
22
 */
24
23
/*
25
24
 *  This file contains the programmatic interface to the Automated
39
38
 *  tolerable version is at least as old as what was current when the header
40
39
 *  template was released.
41
40
 */
42
 
#define AO_TEMPLATE_VERSION 139264
 
41
#define AO_TEMPLATE_VERSION 143360
43
42
#if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \
44
43
 || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION)
45
44
# error option template version mismatches autoopts/options.h header
61
60
} teOptIndex;
62
61
 
63
62
#define OPTION_CT    8
64
 
#define NTPSNMPD_VERSION       "4.2.6p3"
65
 
#define NTPSNMPD_FULL_VERSION  "ntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.6p3"
 
63
#define NTPSNMPD_VERSION       "4.2.6p5"
 
64
#define NTPSNMPD_FULL_VERSION  "ntpsnmpd 4.2.6p5"
66
65
 
67
66
/*
68
67
 *  Interface defines for all options.  Replace "n" with the UPPER_CASED
93
92
    NTPSNMPD_EXIT_SUCCESS = 0,
94
93
    NTPSNMPD_EXIT_FAILURE = 1
95
94
} ntpsnmpd_exit_code_t;
96
 
 
97
95
/*
98
96
 *  Make sure there are no #define name conflicts with the option names
99
97
 */
142
140
                ntpsnmpdOptions.pzCurOpt  = NULL)
143
141
#define START_OPT       RESTART_OPT(1)
144
142
#define USAGE(c)        (*ntpsnmpdOptions.pUsageProc)(&ntpsnmpdOptions, c)
145
 
/* extracted from /usr/local/gnu/share/autogen/opthead.tpl near line 435 */
 
143
/* extracted from opthead.tlib near line 451 */
 
144
 
 
145
#ifdef  __cplusplus
 
146
extern "C" {
 
147
#endif
146
148
 
147
149
/* * * * * *
148
150
 *
149
151
 *  Declare the ntpsnmpd option descriptor.
150
152
 */
151
 
#ifdef  __cplusplus
152
 
extern "C" {
153
 
#endif
154
 
 
155
 
extern tOptions   ntpsnmpdOptions;
 
153
extern tOptions ntpsnmpdOptions;
156
154
 
157
155
#if defined(ENABLE_NLS)
158
156
# ifndef _
159
157
#   include <stdio.h>
160
 
    static inline char* aoGetsText(char const* pz) {
161
 
        if (pz == NULL) return NULL;
162
 
        return (char*)gettext(pz);
163
 
    }
 
158
static inline char* aoGetsText(char const* pz) {
 
159
    if (pz == NULL) return NULL;
 
160
    return (char*)gettext(pz);
 
161
}
164
162
#   define _(s)  aoGetsText(s)
165
163
# endif /* _() */
166
164