Defines |
|
| #define | CALLBACK_NAME_LOGGING 1 |
| #define | LOCK_PER_CALLBACK_SUBID 1 |
| #define | CALLBACK_LOCK(maj, min) ++_locks[major][minor] |
| #define | CALLBACK_UNLOCK(maj, min) --_locks[major][minor] |
Functions |
|
| NETSNMP_STATIC_INLINE int | _callback_lock (int major, int minor, const char *warn, int assert) |
| NETSNMP_STATIC_INLINE void | _callback_unlock (int major, int minor) |
| void | init_callbacks (void) |
| int | snmp_register_callback (int major, int minor, SNMPCallback *new_callback, void *arg) |
| This function registers a generic callback function. |
|
| int | netsnmp_register_callback (int major, int minor, SNMPCallback *new_callback, void *arg, int priority) |
| int | snmp_call_callbacks (int major, int minor, void *caller_arg) |
| This function calls the callback function for each registered callback of type major and minor.
|
|
| int | snmp_count_callbacks (int major, int minor) |
| int | snmp_callback_available (int major, int minor) |
| int | snmp_unregister_callback (int major, int minor, SNMPCallback *target, void *arg, int matchargs) |
| This function unregisters a specified callback function given a major and minor type. |
|
| int | netsnmp_callback_clear_client_arg (void *ptr, int i, int j) |
| find and clear client args that match ptr |
|
| void | clear_callback (void) |
| snmp_gen_callback * | snmp_callback_list (int major, int minor) |
|
||||||||||||||||
|
find and clear client args that match ptr
Definition at line 456 of file callback.c. |
|
||||||||||||||||
|
This function calls the callback function for each registered callback of type major and minor.
Definition at line 280 of file callback.c. Referenced by netsnmp_acm_check_subtree(), netsnmp_register_mib_table_row(), snmp_shutdown(), and unregister_mib_context(). |
|
||||||||||||||||||||
|
This function registers a generic callback function. The major and minor values are used to set the new_callback function into a global static multi-dimensional array of type struct snmp_gen_callback. The function makes sure to append this callback function at the end of the link list, snmp_gen_callback->next.
Definition at line 212 of file callback.c. Referenced by netsnmp_register_save_list(). |
|
||||||||||||||||||||||||
|
This function unregisters a specified callback function given a major and minor type. Note: no bound checking on major and minor.
set cleanup flag? Definition at line 400 of file callback.c. References SNMP_FREE. |
1.3.9.1
Last modified: Thursday, 01-Mar-2007 16:20:05 PST
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.