~ubuntu-branches/ubuntu/gutsy/net-snmp/gutsy-security

« back to all changes in this revision

Viewing changes to include/net-snmp/agent/mode_end_call.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-09-13 12:06:21 UTC
  • Revision ID: james.westby@ubuntu.com-20040913120621-g952ntonlleihcvm
Tags: upstream-5.1.1
ImportĀ upstreamĀ versionĀ 5.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * mode_end_call.h 
 
3
 */
 
4
#ifndef MODE_END_CALL_H
 
5
#define MODE_END_CALL_H
 
6
 
 
7
#ifdef __cplusplus
 
8
extern          "C" {
 
9
#endif
 
10
 
 
11
#define NETSNMP_MODE_END_ALL_MODES -999
 
12
 
 
13
typedef struct netsnmp_mode_handler_list_s {
 
14
   struct netsnmp_mode_handler_list_s *next;
 
15
   int mode;
 
16
   netsnmp_mib_handler *callback_handler;
 
17
} netsnmp_mode_handler_list;
 
18
 
 
19
/*
 
20
 * The helper calls another handler after each mode has been
 
21
 * processed.
 
22
 */
 
23
 
 
24
/* public functions */
 
25
netsnmp_mib_handler *
 
26
netsnmp_get_mode_end_call_handler(netsnmp_mode_handler_list *endlist);
 
27
 
 
28
netsnmp_mode_handler_list *
 
29
netsnmp_mode_end_call_add_mode_callback(netsnmp_mode_handler_list *endlist,
 
30
                                        int mode,
 
31
                                        netsnmp_mib_handler *callbackh);
 
32
 
 
33
/* internal */
 
34
Netsnmp_Node_Handler netsnmp_mode_end_call_helper;
 
35
 
 
36
#ifdef __cplusplus
 
37
}
 
38
#endif
 
39
#endif