00001 #ifndef SNMP_TC_H
00002 #define SNMP_TC_H
00003
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007
00008
00009
00010
00011
00012 int
00013 netsnmp_dateandtime_set_buf_from_vars(u_char *buf, size_t *bufsize,
00014 u_short y, u_char mon, u_char d,
00015 u_char h, u_char min, u_char s,
00016 u_char deci_seconds,
00017 int utc_offset_direction,
00018 u_char utc_offset_hours,
00019 u_char utc_offset_minutes);
00020
00021 u_char *date_n_time(time_t *, size_t *);
00022 time_t ctime_to_timet(char *);
00023
00024
00025
00026
00027 #define TV_TRUE 1
00028 #define TV_FALSE 2
00029
00030
00031
00032
00033 #define RS_NONEXISTENT 0
00034 #define RS_ACTIVE 1
00035 #define RS_NOTINSERVICE 2
00036 #define RS_NOTREADY 3
00037 #define RS_CREATEANDGO 4
00038 #define RS_CREATEANDWAIT 5
00039 #define RS_DESTROY 6
00040
00041 #define RS_IS_GOING_ACTIVE( x ) ( x == RS_CREATEANDGO || x == RS_ACTIVE )
00042 #define RS_IS_ACTIVE( x ) ( x == RS_ACTIVE )
00043 #define RS_IS_NOT_ACTIVE( x ) ( ! RS_IS_GOING_ACTIVE(x) )
00044
00045
00046
00047
00048 #define ST_NONE 0
00049 #define ST_OTHER 1
00050 #define ST_VOLATILE 2
00051 #define ST_NONVOLATILE 3
00052 #define ST_PERMANENT 4
00053 #define ST_READONLY 5
00054
00055 char check_rowstatus_transition(int old_val, int new_val);
00056 char check_storage_transition(int old_val, int new_val);
00057
00058 #ifdef __cplusplus
00059 }
00060 #endif
00061 #endif