Style: s/SYS_EVENTHANDLER_H/_SYS_EVENTHANDLER_H_/g
Submitted by: bde
This commit is contained in:
parent
f431664c05
commit
eaeb0c139a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257271
@ -1310,12 +1310,12 @@ bpf_peers_present(struct bpf_if *bpf)
|
||||
*/
|
||||
#define BPF_MEMWORDS 16
|
||||
|
||||
#ifdef SYS_EVENTHANDLER_H
|
||||
#ifdef _SYS_EVENTHANDLER_H_
|
||||
/* BPF attach/detach events */
|
||||
struct ifnet;
|
||||
typedef void (*bpf_track_fn)(void *, struct ifnet *, int /* dlt */,
|
||||
int /* 1 =>'s attach */);
|
||||
EVENTHANDLER_DECLARE(bpf_track, bpf_track_fn);
|
||||
#endif /* SYS_EVENTHANDLER_H */
|
||||
#endif /* _SYS_EVENTHANDLER_H_ */
|
||||
|
||||
#endif /* _NET_BPF_H_ */
|
||||
|
@ -58,7 +58,7 @@ 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
|
||||
#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);
|
||||
|
@ -353,7 +353,7 @@ void if_maddr_runlock(struct ifnet *ifp); /* if_multiaddrs */
|
||||
} while(0)
|
||||
|
||||
#ifdef _KERNEL
|
||||
#ifdef SYS_EVENTHANDLER_H
|
||||
#ifdef _SYS_EVENTHANDLER_H_
|
||||
/* interface link layer address change event */
|
||||
typedef void (*iflladdr_event_handler_t)(void *, struct ifnet *);
|
||||
EVENTHANDLER_DECLARE(iflladdr_event, iflladdr_event_handler_t);
|
||||
@ -369,7 +369,7 @@ EVENTHANDLER_DECLARE(ifnet_departure_event, ifnet_departure_event_handler_t);
|
||||
/* Interface link state change event */
|
||||
typedef void (*ifnet_link_event_handler_t)(void *, struct ifnet *, int);
|
||||
EVENTHANDLER_DECLARE(ifnet_link_event, ifnet_link_event_handler_t);
|
||||
#endif /* SYS_EVENTHANDLER_H */
|
||||
#endif /* _SYS_EVENTHANDLER_H_ */
|
||||
|
||||
/*
|
||||
* interface groups
|
||||
@ -392,7 +392,7 @@ struct ifg_list {
|
||||
TAILQ_ENTRY(ifg_list) ifgl_next;
|
||||
};
|
||||
|
||||
#ifdef SYS_EVENTHANDLER_H
|
||||
#ifdef _SYS_EVENTHANDLER_H_
|
||||
/* group attach event */
|
||||
typedef void (*group_attach_event_handler_t)(void *, struct ifg_group *);
|
||||
EVENTHANDLER_DECLARE(group_attach_event, group_attach_event_handler_t);
|
||||
@ -402,7 +402,7 @@ EVENTHANDLER_DECLARE(group_detach_event, group_detach_event_handler_t);
|
||||
/* group change event */
|
||||
typedef void (*group_change_event_handler_t)(void *, const char *);
|
||||
EVENTHANDLER_DECLARE(group_change_event, group_change_event_handler_t);
|
||||
#endif /* SYS_EVENTHANDLER_H */
|
||||
#endif /* _SYS_EVENTHANDLER_H_ */
|
||||
|
||||
#define IF_AFDATA_LOCK_INIT(ifp) \
|
||||
rw_init(&(ifp)->if_afdata_lock, "if_afdata")
|
||||
|
@ -150,13 +150,13 @@ extern int (*vlan_tag_p)(struct ifnet *, uint16_t *);
|
||||
extern int (*vlan_setcookie_p)(struct ifnet *, void *);
|
||||
extern void *(*vlan_cookie_p)(struct ifnet *);
|
||||
|
||||
#ifdef SYS_EVENTHANDLER_H
|
||||
#ifdef _SYS_EVENTHANDLER_H_
|
||||
/* VLAN state change events */
|
||||
typedef void (*vlan_config_fn)(void *, struct ifnet *, uint16_t);
|
||||
typedef void (*vlan_unconfig_fn)(void *, struct ifnet *, uint16_t);
|
||||
EVENTHANDLER_DECLARE(vlan_config, vlan_config_fn);
|
||||
EVENTHANDLER_DECLARE(vlan_unconfig, vlan_unconfig_fn);
|
||||
#endif /* SYS_EVENTHANDLER_H */
|
||||
#endif /* _SYS_EVENTHANDLER_H_ */
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
|
@ -26,8 +26,8 @@
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
||||
#ifndef SYS_EVENTHANDLER_H
|
||||
#define SYS_EVENTHANDLER_H
|
||||
#ifndef _SYS_EVENTHANDLER_H_
|
||||
#define _SYS_EVENTHANDLER_H_
|
||||
|
||||
#include <sys/lock.h>
|
||||
#include <sys/ktr.h>
|
||||
@ -262,4 +262,4 @@ EVENTHANDLER_DECLARE(kld_load, kld_load_fn);
|
||||
EVENTHANDLER_DECLARE(kld_unload, kld_unload_fn);
|
||||
EVENTHANDLER_DECLARE(kld_unload_try, kld_unload_try_fn);
|
||||
|
||||
#endif /* SYS_EVENTHANDLER_H */
|
||||
#endif /* _SYS_EVENTHANDLER_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user