summaryrefslogtreecommitdiff
path: root/agent/mibgroup/agentx/subagent.h
blob: b55bec1d1d6b72dc3c95ce915538e91737dcc49e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _AGENTX_SUBAGENT_H
#define _AGENTX_SUBAGENT_H

config_belongs_in(agent_module)

config_require(agentx/protocol)
config_require(agentx/client)
config_require(agentx/agentx_config)

#ifndef NETSNMP_TRANSPORT_CALLBACK_DOMAIN
config_error(agentx/subagent depends on the Callback transport)
#endif

     int             subagent_init(void);
     int             handle_agentx_packet(int, netsnmp_session *, int,
                                          netsnmp_pdu *, void *);
     SNMPCallback    agentx_register_callback;
     SNMPCallback    agentx_unregister_callback;
     SNMPAlarmCallback agentx_check_session;

#endif                          /* _AGENTX_SUBAGENT_H */