| 1 |
#ifndef AGENTX_CLIENT_H |
| 2 |
#define AGENTX_CLIENT_H |
| 3 |
|
| 4 |
config_belongs_in(agent_module); |
| 5 |
|
| 6 |
#ifdef __cplusplus |
| 7 |
extern "C" { |
| 8 |
#endif |
| 9 |
/* |
| 10 |
* Utility functions for Agent Extensibility Protocol (RFC 2257) |
| 11 |
* |
| 12 |
*/ |
| 13 |
|
| 14 |
|
| 15 |
int agentx_open_session(netsnmp_session *); |
| 16 |
int agentx_close_session(netsnmp_session *, int); |
| 17 |
int agentx_register(netsnmp_session *, oid *, size_t, int, |
| 18 |
int, oid, int, u_char, const char *); |
| 19 |
int agentx_unregister(netsnmp_session *, oid *, size_t, |
| 20 |
int, int, oid, const char *); |
| 21 |
netsnmp_variable_list *agentx_register_index(netsnmp_session *, |
| 22 |
netsnmp_variable_list *, |
| 23 |
int); |
| 24 |
int agentx_unregister_index(netsnmp_session *, |
| 25 |
netsnmp_variable_list *); |
| 26 |
int agentx_add_agentcaps(netsnmp_session *, const oid *, size_t, |
| 27 |
const char *); |
| 28 |
int agentx_remove_agentcaps(netsnmp_session *, const oid *, |
| 29 |
size_t); |
| 30 |
int agentx_send_ping(netsnmp_session *); |
| 31 |
|
| 32 |
#define AGENTX_CLOSE_OTHER 1 |
| 33 |
#define AGENTX_CLOSE_PARSE 2 |
| 34 |
#define AGENTX_CLOSE_PROTOCOL 3 |
| 35 |
#define AGENTX_CLOSE_TIMEOUT 4 |
| 36 |
#define AGENTX_CLOSE_SHUTDOWN 5 |
| 37 |
#define AGENTX_CLOSE_MANAGER 6 |
| 38 |
|
| 39 |
#ifdef __cplusplus |
| 40 |
} |
| 41 |
#endif |
| 42 |
#endif /* AGENTX_CLIENT_H */ |