mirror of
https://github.com/opnsense/src.git
synced 2026-02-24 10:20:24 -05:00
The amd64-gcc12 build was failing with `error: 'devctl_systems' defined but not used`. Just move it to the C file where it's used. PR: 271903 Sponsored by: The FreeBSD Foundation
27 lines
721 B
C
27 lines
721 B
C
/*-
|
|
* Copyright 2020 M. Warner Losh <imp@FreeBSD.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#ifndef _SYS_DEVCTL_H_
|
|
#define _SYS_DEVCTL_H_
|
|
|
|
#ifdef _KERNEL
|
|
/**
|
|
* devctl hooks. Typically one should use the devctl_notify
|
|
* hook to send the message.
|
|
*/
|
|
|
|
bool devctl_process_running(void);
|
|
void devctl_notify(const char *__system, const char *__subsystem,
|
|
const char *__type, const char *__data);
|
|
struct sbuf;
|
|
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 /* _SYS_DEVCTL_H_ */
|