#include <net-snmp/net-snmp-config.h>#include <net-snmp/library/container.h>#include <net-snmp/agent/table_array.h>#include "interprocess_buffer.h"#include "../usrloc/ucontact.h"#include "../../config.h"


Go to the source code of this file.
| #define COLUMN_OPENSERSIPCONTACTDISPLAYNAME 2 |
Definition at line 193 of file openserSIPContactTable.h.
Referenced by openserSIPContactTable_get_value().
| #define COLUMN_OPENSERSIPCONTACTEXPIRY 5 |
Definition at line 196 of file openserSIPContactTable.h.
Referenced by openserSIPContactTable_get_value().
| #define COLUMN_OPENSERSIPCONTACTINDEX 1 |
Definition at line 192 of file openserSIPContactTable.h.
| #define COLUMN_OPENSERSIPCONTACTLASTUPDATED 4 |
Definition at line 195 of file openserSIPContactTable.h.
Referenced by openserSIPContactTable_get_value().
| #define COLUMN_OPENSERSIPCONTACTPREFERENCE 6 |
Definition at line 197 of file openserSIPContactTable.h.
Referenced by openserSIPContactTable_get_value().
| #define COLUMN_OPENSERSIPCONTACTURI 3 |
Definition at line 194 of file openserSIPContactTable.h.
Referenced by openserSIPContactTable_get_value().
| #define openserSIPContactTable_COL_MAX 6 |
Definition at line 200 of file openserSIPContactTable.h.
Referenced by initialize_table_openserSIPContactTable().
| #define openserSIPContactTable_COL_MIN 2 |
Definition at line 199 of file openserSIPContactTable.h.
Referenced by initialize_table_openserSIPContactTable().
| #define openserSIPContactTable_TABLE_OID OPENSER_OID,3,1,2,1,5,7 |
Definition at line 187 of file openserSIPContactTable.h.
| typedef struct openserSIPContactTable_context_s openserSIPContactTable_context |
| int createContactRow | ( | int | userIndex, | |
| int | contactIndex, | |||
| char * | contactName, | |||
| ucontact_t * | contactInfo | |||
| ) |
Definition at line 170 of file openserSIPContactTable.c.
References cb, openserSIPContactTable_context_s::contactInfo, openserSIPContactTable_context_s::index, LM_ERR, NULL, openserSIPContactTable_context_s::openserSIPContactIndex, openserSIPContactTable_context_s::openserSIPContactURI, openserSIPContactTable_context_s::openserSIPContactURI_len, pkg_free, and pkg_malloc.
Referenced by executeInterprocessBufferCmd(), and init_openserSIPContactTable().
| int deleteContactRecord | ( | contactToIndexStruct_t ** | contactRecord, | |
| char * | contactName | |||
| ) |
Definition at line 132 of file openserSIPContactTable.c.
References contactToIndexStruct::contactIndex, contactToIndexStruct::contactName, contactToIndexStruct::next, NULL, and pkg_free.
Referenced by executeInterprocessBufferCmd().
| void deleteContactRow | ( | int | userIndex, | |
| int | contactIndex | |||
| ) |
Definition at line 230 of file openserSIPContactTable.c.
References cb, openserSIPContactTable_context_s::index, NULL, openserSIPContactTable_context_s::openserSIPContactURI, and pkg_free.
Referenced by executeInterprocessBufferCmd().
| void init_openserSIPContactTable | ( | void | ) |
Definition at line 264 of file openserSIPContactTable.c.
References createContactRow(), initialize_table_openserSIPContactTable(), and NULL.
Referenced by initialize_agentx().
| 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 | |||
| ) |
Definition at line 100 of file openserSIPContactTable.c.
References contactToIndexStruct::contactIndex, contactToIndexStruct::contactName, LM_ERR, contactToIndexStruct::next, NULL, and pkg_malloc.
Referenced by executeInterprocessBufferCmd().
| const openserSIPContactTable_context* openserSIPContactTable_get_by_idx | ( | netsnmp_index * | ) |
| const openserSIPContactTable_context* openserSIPContactTable_get_by_idx_rs | ( | netsnmp_index * | , | |
| int | row_status | |||
| ) |
| int openserSIPContactTable_get_value | ( | netsnmp_request_info * | , | |
| netsnmp_index * | , | |||
| netsnmp_table_request_info * | ||||
| ) |
We shouldn't get here
Definition at line 342 of file openserSIPContactTable.c.
References COLUMN_OPENSERSIPCONTACTDISPLAYNAME, COLUMN_OPENSERSIPCONTACTEXPIRY, COLUMN_OPENSERSIPCONTACTLASTUPDATED, COLUMN_OPENSERSIPCONTACTPREFERENCE, COLUMN_OPENSERSIPCONTACTURI, consumeInterprocessBuffer(), openserSIPContactTable_context_s::contactInfo, convertTMToSNMPDateAndTime(), ucontact::expires, ucontact::last_modified, NULL, openserSIPContactTable_context_s::openserSIPContactURI, openserSIPContactTable_context_s::openserSIPContactURI_len, and ucontact::q.
Referenced by initialize_table_openserSIPContactTable().
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().
1.5.6