snmpSIPMethodSupportedTable.h

00001 /*
00002  * $Id$
00003  *
00004  * SNMPStats Module 
00005  * Copyright (C) 2006 SOMA Networks, INC.
00006  * Written by: Jeffrey Magder (jmagder@somanetworks.com)
00007  *
00008  * This file is part of Kamailio, a free SIP server.
00009  *
00010  * Kamailio is free software; you can redistribute it and/or modify it
00011  * under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version
00014  *
00015  * Kamailio is distributed in the hope that it will be useful, but
00016  * WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00023  * USA
00024  *
00025  * History:
00026  * --------
00027  * 2006-11-23 initial version (jmagder)
00028  * 2007-02-16 Moved all OID registrations from the experimental branch to 
00029  *            OpenSER's IANA assigned enterprise branch. (jmagder)
00030  * 
00031  * Originally Generated with Mib2c using mib2c.array-user.conf.
00032  * 
00033  * This file defines the prototypes used to define the
00034  * openserSIPMethodSupportedTable.  For full details, please see the
00035  * OPENSER-SIP-COMMON-MIB.
00036  */
00037 
00038 #ifndef OPENSERSIPMETHODSUPPORTEDTABLE_H
00039 #define OPENSERSIPMETHODSUPPORTEDTABLE_H
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044 
00045     
00046 #include <net-snmp/net-snmp-config.h>
00047 #include <net-snmp/library/container.h>
00048 #include <net-snmp/agent/table_array.h>
00049 
00050 #include "../../config.h"
00051 
00052 /* 
00053  * This strucutre represents a single row in the SNMP table, and is mostly
00054  * auto-generated. 
00055  */
00056 typedef struct openserSIPMethodSupportedTable_context_s {
00057 
00058         netsnmp_index index;
00059 
00061         unsigned long openserSIPMethodSupportedIndex;
00062 
00064         unsigned char *openserSIPMethodName;
00065         
00066         long openserSIPMethodName_len;
00067 
00068         void * data;
00069 
00070 } openserSIPMethodSupportedTable_context;
00071 
00072 
00073 /* Initializes the openserSIPMethodSupportedTable, and populates the tables 
00074  * contents */
00075 void init_openserSIPMethodSupportedTable(void);
00076 
00077 /* Defines openserSIPMethodSupportedTable's structure and callback mechanisms */
00078 void initialize_table_openserSIPMethodSupportedTable(void);
00079 
00080 
00081 /* 
00082  * This routine is called to process get requests for elements of the table.
00083  *
00084  * The function is pretty much left as is from the auto-generated code. 
00085  */
00086 int openserSIPMethodSupportedTable_get_value(netsnmp_request_info *, 
00087                 netsnmp_index *, netsnmp_table_request_info *);
00088 
00089 const openserSIPMethodSupportedTable_context * 
00090         openserSIPMethodSupportedTable_get_by_idx(netsnmp_index *);
00091 
00092 const openserSIPMethodSupportedTable_context * 
00093         openserSIPMethodSupportedTable_get_by_idx_rs(netsnmp_index *,
00094                         int row_status);
00095 
00096 /*
00097  * oid declarations
00098  */
00099 extern oid    openserSIPMethodSupportedTable_oid[];
00100 extern size_t openserSIPMethodSupportedTable_oid_len;
00101 
00102 #define openserSIPMethodSupportedTable_TABLE_OID OPENSER_OID,3,1,1,1,1,7
00103     
00104 /*
00105  * column number definitions for table openserSIPMethodSupportedTable
00106  */
00107 #define COLUMN_OPENSERSIPMETHODSUPPORTEDINDEX  1
00108 #define COLUMN_OPENSERSIPMETHODNAME            2
00109 
00110 #define openserSIPMethodSupportedTable_COL_MIN 2
00111 #define openserSIPMethodSupportedTable_COL_MAX 2
00112 
00113 
00114 #ifdef __cplusplus
00115 }
00116 #endif
00117 
00118 #endif