Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/devctl.h
Show All 11 Lines | |||||
* devctl hooks. Typically one should use the devctl_notify | * devctl hooks. Typically one should use the devctl_notify | ||||
* hook to send the message. | * hook to send the message. | ||||
*/ | */ | ||||
bool devctl_process_running(void); | bool devctl_process_running(void); | ||||
void devctl_notify(const char *__system, const char *__subsystem, | void devctl_notify(const char *__system, const char *__subsystem, | ||||
const char *__type, const char *__data); | const char *__type, const char *__data); | ||||
struct sbuf; | struct sbuf; | ||||
void devctl_safe_quote_sb(struct sbuf *__sb, const char *__src); | void devctl_safe_quote_sb(struct sbuf *__sb, const char *__src); | ||||
typedef void send_event_f(const char *system, const char *subsystem, | |||||
const char *type, const char *data); | |||||
void devctl_set_notify_hook(send_event_f *hook); | |||||
void devctl_unset_notify_hook(void); | |||||
#endif | #endif | ||||
#endif /* _SYS_DEVCTL_H_ */ | #endif /* _SYS_DEVCTL_H_ */ | ||||
imp: This might be better committed with a different commit since it's unreferenced here.
|
This might be better committed with a different commit since it's unreferenced here.