summaryrefslogtreecommitdiff
path: root/agent/mibgroup/disman/expression/expValueTable.h
blob: 8569f9d63fe31f3e519f3d624554664c89a07972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
 *Copyright(c)2004,Cisco URP imburses and Network Information Center in Beijing University of Posts and Telecommunications researches.
 *
 *All right reserved
 *
 *File Name:expValueTable.h
 *File Description: head file.
 *
 *Current Version:1.0
 *Author:JianShun Tong
 *Date:2004.8.20
 */

/*
 * This file was generated by mib2c and is intended for use as a mib module
 * for the ucd-snmp snmpd agent. 
 */


/*
 * we may use header_complex from the header_complex module 
 */
config_require(header_complex)

#ifndef _MIBGROUP_EXPVALUETABLE_H
#define _MIBGROUP_EXPVALUETABLE_H
     struct expValueTable_data {
         char           *expExpressionOwner;
         size_t          expExpressionOwnerLen;
         char           *expExpressionName;
         size_t          expExpressionNameLen;
         oid            *expValueInstance;
         size_t          expValueInstanceLen;
         unsigned long   expValueCounter32Val;
         unsigned long   expValueUnsigned32Val;
         unsigned long   expValueTimeTicksVal;
         long            expValueInteger32Val;
         u_long         *expValueIpAddressVal;
         char           *expValueOctetStringVal;
         size_t          expValueOctetStringValLen;
         oid            *expValueOidVal;
         size_t          expValueOidValLen;
         long            expValueCounter64Val;

         /* internal var */
         struct expExpressionTable_data *expression_data;
         char           *valuestr;
     };


    /*
     * function prototypes 
     */
     void            init_expValueTable(void);
     unsigned long   get_result(char *expr);
     FindVarMethod   var_expValueTable;
     int             expValueTable_add(struct expExpressionTable_data
                                       *expression_data, char *owner,
                                       size_t owner_len, char *name,
                                       size_t name_len, oid * index,
                                       size_t index_len);

#endif                          /* _MIBGROUP_EXPVALUETABLE_H */