Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / net-snmp / include / net-snmp / library / snmp-tc.h
1 #ifndef SNMP_TC_H
2 #define SNMP_TC_H
3
4 #ifdef __cplusplus
5 extern          "C" {
6 #endif
7     /*
8      * snmp-tc.h: Provide some standard #defines for Textual Convention
9      * related value information 
10      */
11
12     u_char         *date_n_time(time_t *, size_t *);
13     time_t          ctime_to_timet(char *);
14
15     /*
16      * TrueValue 
17      */
18 #define TV_TRUE 1
19 #define TV_FALSE 2
20
21     /*
22      * RowStatus 
23      */
24 #define RS_NONEXISTENT    0
25 #define RS_ACTIVE               1
26 #define RS_NOTINSERVICE         2
27 #define RS_NOTREADY             3
28 #define RS_CREATEANDGO          4
29 #define RS_CREATEANDWAIT        5
30 #define RS_DESTROY              6
31
32 #define RS_IS_GOING_ACTIVE( x ) ( x == RS_CREATEANDGO || x == RS_ACTIVE )
33 #define RS_IS_ACTIVE( x ) ( x == RS_ACTIVE )
34 #define RS_IS_NOT_ACTIVE( x ) ( ! RS_GOING_ACTIVE(x) )
35
36     /*
37      * StorageType 
38      */
39 #define ST_NONE 0
40 #define ST_OTHER        1
41 #define ST_VOLATILE     2
42 #define ST_NONVOLATILE  3
43 #define ST_PERMANENT    4
44 #define ST_READONLY     5
45
46     char            check_rowstatus_transition(int old_val, int new_val);
47     char            check_storage_transition(int old_val, int new_val);
48
49 #ifdef __cplusplus
50 }
51 #endif
52 #endif                          /* SNMP_TC_H */