From cacbd596c967b53960b818f8278465c49b392608 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Sat, 14 Nov 2015 19:50:57 +0100 Subject: [PATCH] Move some prototypes from snmp_msg.h to snmp.h because they are used by user code --- src/apps/snmp/snmp_msg.h | 3 --- src/include/lwip/apps/snmp.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/snmp/snmp_msg.h b/src/apps/snmp/snmp_msg.h index 052b87f8..145b89f2 100644 --- a/src/apps/snmp/snmp_msg.h +++ b/src/apps/snmp/snmp_msg.h @@ -305,11 +305,8 @@ void snmp_varbind_tail_add(struct snmp_varbind_root *root, struct snmp_varbind * struct snmp_varbind* snmp_varbind_tail_remove(struct snmp_varbind_root *root); /** Handle an internal (recv) or external (private response) event. */ -void snmp_msg_event(u8_t request_id); err_t snmp_send_response(struct snmp_msg_pstat *m_stat); err_t snmp_send_trap(s8_t generic_trap, const struct snmp_obj_id *eoid, s32_t specific_trap); -void snmp_coldstart_trap(void); -void snmp_authfail_trap(void); #ifdef __cplusplus } diff --git a/src/include/lwip/apps/snmp.h b/src/include/lwip/apps/snmp.h index cd027728..36b7d79b 100644 --- a/src/include/lwip/apps/snmp.h +++ b/src/include/lwip/apps/snmp.h @@ -75,6 +75,9 @@ void snmp_set_syscontact(u8_t *ocstr, u8_t *ocstrlen, u8_t bufsize); void snmp_set_sysname(u8_t *ocstr, u8_t *ocstrlen, u8_t bufsize); void snmp_set_syslocation(u8_t *ocstr, u8_t *ocstrlen, u8_t bufsize); void snmp_set_snmpenableauthentraps(u8_t *value); +void snmp_msg_event(u8_t request_id); +void snmp_coldstart_trap(void); +void snmp_authfail_trap(void); #else /* LWIP_SNMP support not available */ /* define everything to be empty */