diff options
Diffstat (limited to 'agent/mibgroup/agentx/client.h')
-rw-r--r-- | agent/mibgroup/agentx/client.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/agent/mibgroup/agentx/client.h b/agent/mibgroup/agentx/client.h new file mode 100644 index 0000000..1701aaa --- /dev/null +++ b/agent/mibgroup/agentx/client.h @@ -0,0 +1,42 @@ +#ifndef AGENTX_CLIENT_H +#define AGENTX_CLIENT_H + +config_belongs_in(agent_module) + +#ifdef __cplusplus +extern "C" { +#endif + /* + * Utility functions for Agent Extensibility Protocol (RFC 2257) + * + */ + + + int agentx_open_session(netsnmp_session *); + int agentx_close_session(netsnmp_session *, int); + int agentx_register(netsnmp_session *, oid *, size_t, int, + int, oid, int, u_char, const char *); + int agentx_unregister(netsnmp_session *, oid *, size_t, + int, int, oid, const char *); + netsnmp_variable_list *agentx_register_index(netsnmp_session *, + netsnmp_variable_list *, + int); + int agentx_unregister_index(netsnmp_session *, + netsnmp_variable_list *); + int agentx_add_agentcaps(netsnmp_session *, const oid *, size_t, + const char *); + int agentx_remove_agentcaps(netsnmp_session *, const oid *, + size_t); + int agentx_send_ping(netsnmp_session *); + +#define AGENTX_CLOSE_OTHER 1 +#define AGENTX_CLOSE_PARSE 2 +#define AGENTX_CLOSE_PROTOCOL 3 +#define AGENTX_CLOSE_TIMEOUT 4 +#define AGENTX_CLOSE_SHUTDOWN 5 +#define AGENTX_CLOSE_MANAGER 6 + +#ifdef __cplusplus +} +#endif +#endif /* AGENTX_CLIENT_H */ |