net-snmp 5.7
snmp_parse_args.h
Go to the documentation of this file.
00001 #ifndef SNMP_PARSE_ARGS_H
00002 #define SNMP_PARSE_ARGS_H
00003 #ifdef __cplusplus
00004 extern "C" {
00005 #endif
00006 
00015 #define NETSNMP_PARSE_ARGS_NOLOGGING    0x0001
00016 
00020 #define NETSNMP_PARSE_ARGS_NOZERO       0x0002
00021 
00026 #define NETSNMP_PARSE_ARGS_SUCCESS       0
00027 
00031 #define NETSNMP_PARSE_ARGS_SUCCESS_EXIT  -2
00032 
00036 #define NETSNMP_PARSE_ARGS_ERROR_USAGE   -1
00037 
00042 #define NETSNMP_PARSE_ARGS_ERROR         -3
00043     
00066 NETSNMP_IMPORT int
00067 netsnmp_parse_args(int argc, char **argv, netsnmp_session *session,
00068                    const char *localOpts, void (*proc)(int, char *const *, int),
00069                    int flags);
00070 
00075 NETSNMP_IMPORT
00076 int
00077 snmp_parse_args(int argc, char **argv, netsnmp_session *session,
00078                 const char *localOpts, void (*proc)(int, char *const *, int));
00079 
00080 NETSNMP_IMPORT
00081 void
00082 snmp_parse_args_descriptions(FILE *);
00083 
00084 NETSNMP_IMPORT
00085 void
00086 snmp_parse_args_usage(FILE *);
00087 
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091 #endif