Move some prototypes from snmp_msg.h to snmp.h because they are used by user code

This commit is contained in:
Dirk Ziegelmeier 2015-11-14 19:50:57 +01:00
parent 6203737093
commit cacbd596c9
2 changed files with 3 additions and 3 deletions

View File

@ -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
}

View File

@ -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 */