openserSIPContactTable.c File Reference

#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-includes.h>
#include <net-snmp/library/snmp_assert.h>
#include "hashTable.h"
#include "interprocess_buffer.h"
#include "utilities.h"
#include "openserSIPContactTable.h"
#include "snmpstats_globals.h"
#include "../../mem/mem.h"
#include "../../str.h"
#include "../../sr_module.h"
#include "../../locking.h"
#include "../usrloc/usrloc.h"
#include "../usrloc/ucontact.h"

Include dependency graph for openserSIPContactTable.c:

Go to the source code of this file.

Functions

int createContactRow (int userIndex, int contactIndex, char *contactName, ucontact_t *contactInfo)
int deleteContactRecord (contactToIndexStruct_t **contactRecord, char *contactName)
void deleteContactRow (int userIndex, int contactIndex)
void init_openserSIPContactTable (void)
void initialize_table_openserSIPContactTable (void)
int insertContactRecord (contactToIndexStruct_t **contactRecord, int index, char *name)
const
openserSIPContactTable_context
openserSIPContactTable_get_by_idx (netsnmp_index *hdr)
int openserSIPContactTable_get_value (netsnmp_request_info *request, netsnmp_index *item, netsnmp_table_request_info *table_info)

Variables

static
netsnmp_table_array_callbacks 
cb
static
netsnmp_handler_registration * 
my_handler = NULL
oid openserSIPContactTable_oid [] = { openserSIPContactTable_TABLE_OID }
size_t openserSIPContactTable_oid_len = OID_LENGTH(openserSIPContactTable_oid)


Function Documentation

int createContactRow ( int  userIndex,
int  contactIndex,
char *  contactName,
ucontact_t contactInfo 
)

int deleteContactRecord ( contactToIndexStruct_t **  contactRecord,
char *  contactName 
)

void deleteContactRow ( int  userIndex,
int  contactIndex 
)

void init_openserSIPContactTable ( void   ) 

void initialize_table_openserSIPContactTable ( void   ) 

create the table structure itself

mallocs failed

index: openserSIPUserIndex

index: openserSIPContactIndex

Definition at line 281 of file openserSIPContactTable.c.

References cb, my_handler, openserSIPContactTable_COL_MAX, openserSIPContactTable_COL_MIN, openserSIPContactTable_get_value(), openserSIPContactTable_oid, and openserSIPContactTable_oid_len.

Referenced by init_openserSIPContactTable().

int insertContactRecord ( contactToIndexStruct_t **  contactRecord,
int  index,
char *  name 
)

const openserSIPContactTable_context* openserSIPContactTable_get_by_idx ( netsnmp_index *  hdr  ) 

Definition at line 458 of file openserSIPContactTable.c.

References cb.

int openserSIPContactTable_get_value ( netsnmp_request_info *  request,
netsnmp_index *  item,
netsnmp_table_request_info *  table_info 
)


Variable Documentation

netsnmp_table_array_callbacks cb [static]

netsnmp_handler_registration* my_handler = NULL [static]

oid openserSIPContactTable_oid[] = { openserSIPContactTable_TABLE_OID }

Definition at line 89 of file openserSIPContactTable.c.

Referenced by initialize_table_openserSIPContactTable().

Definition at line 90 of file openserSIPContactTable.c.

Referenced by initialize_table_openserSIPContactTable().


Generated on Thu May 24 00:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6