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

« back to all changes in this revision

Viewing changes to include/net-snmp/agent/multiplexer.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
#ifndef NETSNMP_MULTIPLEXER_H
 
2
#define NETSNMP_MULTIPLEXER_H
 
3
 
 
4
#ifdef __cplusplus
 
5
extern          "C" {
 
6
#endif
 
7
 
 
8
/*
 
9
 * The multiplexer helper 
 
10
 */
 
11
 
 
12
/** @name multiplexer
 
13
 *  @{ */
 
14
 
 
15
/** @struct netsnmp_mib_handler_methods
 
16
 *  Defines the subhandlers to be called by the multiplexer helper
 
17
 */
 
18
typedef struct netsnmp_mib_handler_methods_s {
 
19
   /** called when a GET request is received */
 
20
    netsnmp_mib_handler *get_handler;
 
21
   /** called when a GETNEXT request is received */
 
22
    netsnmp_mib_handler *getnext_handler;
 
23
   /** called when a GETBULK request is received */
 
24
    netsnmp_mib_handler *getbulk_handler;
 
25
   /** called when a SET request is received */
 
26
    netsnmp_mib_handler *set_handler;
 
27
} netsnmp_mib_handler_methods;
 
28
 
 
29
/** @} */
 
30
 
 
31
netsnmp_mib_handler
 
32
    *netsnmp_get_multiplexer_handler(netsnmp_mib_handler_methods *);
 
33
 
 
34
Netsnmp_Node_Handler netsnmp_multiplexer_helper_handler;
 
35
 
 
36
#ifdef __cplusplus
 
37
}
 
38
#endif
 
39
#endif                          /* NETSNMP_MULTIPLEXER_H */