Almost all if_clone consumers do not care about if_clone_event.

Do not force them to include sys/eventhandler.h. Those who
utilize EVENTHANDLER(9), will see the declaration.
This commit is contained in:
Gleb Smirnoff 2013-10-27 17:14:33 +00:00
parent 3122bb3880
commit 47bb65deb8

View File

@ -58,9 +58,11 @@ int ifc_name2unit(const char *name, int *unit);
int ifc_alloc_unit(struct if_clone *, int *);
void ifc_free_unit(struct if_clone *, int);
#ifdef SYS_EVENTHANDLER_H
/* Interface clone event. */
typedef void (*if_clone_event_handler_t)(void *, struct if_clone *);
EVENTHANDLER_DECLARE(if_clone_event, if_clone_event_handler_t);
#endif
/* The below interfaces used only by net/if.c. */
void if_clone_init(void);