1 /*
2  * SNMPStats Module
3  * Copyright (C) 2006 SOMA Networks, INC.
4  * Written by: Jeffrey Magder (jmagder@somanetworks.com)
5  *
6  * This file is part of Kamailio, a free SIP server.
7  *
8  * Kamailio is free software; you can redistribute it and/or modify it
9  * under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version
12  *
13  * Kamailio is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
21  * USA
22  *
23  * This file defines the prototypes used to define the
24  * kamailioSIPMethodSupportedTable.  For full details, please see the
25  * KAMAILIO-SIP-COMMON-MIB.
26  */
27 
28 #ifndef KAMAILIOSIPMETHODSUPPORTEDTABLE_H
29 #define KAMAILIOSIPMETHODSUPPORTEDTABLE_H
30 
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34 
35 
36 #include <net-snmp/net-snmp-config.h>
37 #include <net-snmp/library/container.h>
38 #include <net-snmp/agent/table_array.h>
39 
40 #include "../../core/config.h"
41 
42 /*
43  * This strucutre represents a single row in the SNMP table, and is mostly
44  * auto-generated.
45  */
46 typedef struct kamailioSIPMethodSupportedTable_context_s
47 {
48 
49 	netsnmp_index index;
50 
51 	/** KamailioSIPMethodIdentifier = ASN_UNSIGNED */
52 	unsigned long kamailioSIPMethodSupportedIndex;
53 
54 	/** SnmpAdminString = ASN_OCTET_STR */
55 	unsigned char *kamailioSIPMethodName;
56 
57 	long kamailioSIPMethodName_len;
58 
59 	void *data;
60 
61 } kamailioSIPMethodSupportedTable_context;
62 
63 
64 /* Initializes the kamailioSIPMethodSupportedTable, and populates the tables
65  * contents */
66 void init_kamailioSIPMethodSupportedTable(void);
67 
68 /* Defines kamailioSIPMethodSupportedTable's structure and callback mechanisms */
69 void initialize_table_kamailioSIPMethodSupportedTable(void);
70 
71 
72 /*
73  * This routine is called to process get requests for elements of the table.
74  *
75  * The function is pretty much left as is from the auto-generated code.
76  */
77 int kamailioSIPMethodSupportedTable_get_value(
78 		netsnmp_request_info *, netsnmp_index *, netsnmp_table_request_info *);
79 
80 const kamailioSIPMethodSupportedTable_context *
81 kamailioSIPMethodSupportedTable_get_by_idx(netsnmp_index *);
82 
83 const kamailioSIPMethodSupportedTable_context *
84 kamailioSIPMethodSupportedTable_get_by_idx_rs(netsnmp_index *, int row_status);
85 
86 /*
87  * oid declarations
88  */
89 extern oid kamailioSIPMethodSupportedTable_oid[];
90 extern size_t kamailioSIPMethodSupportedTable_oid_len;
91 
92 #define kamailioSIPMethodSupportedTable_TABLE_OID KAMAILIO_OID, 3, 1, 1, 1, 1, 7
93 
94 /*
95  * column number definitions for table kamailioSIPMethodSupportedTable
96  */
97 #define COLUMN_KAMAILIOSIPMETHODSUPPORTEDINDEX 1
98 #define COLUMN_KAMAILIOSIPMETHODNAME 2
99 
100 #define kamailioSIPMethodSupportedTable_COL_MIN 2
101 #define kamailioSIPMethodSupportedTable_COL_MAX 2
102 
103 
104 #ifdef __cplusplus
105 }
106 #endif
107 
108 #endif /** KAMAILIOSIPMETHODSUPPORTEDTABLE_H */