diff options
author | turret <turret@duck.com> | 2024-03-30 20:35:30 -0500 |
---|---|---|
committer | turret <turret@duck.com> | 2024-03-30 20:35:30 -0500 |
commit | 2fb619ed6eac19afd7ed3b2c7baa4adc253f418e (patch) | |
tree | 521d3ec070fa39c398ec2d5835cac22bcd95190a /include/dbs/subsys.h | |
parent | 80a67b7d20393a29aa5d2cb92197f3381be7fd96 (diff) | |
download | discord-bot-skeleton-2fb619ed6eac19afd7ed3b2c7baa4adc253f418e.tar.gz discord-bot-skeleton-2fb619ed6eac19afd7ed3b2c7baa4adc253f418e.tar.bz2 discord-bot-skeleton-2fb619ed6eac19afd7ed3b2c7baa4adc253f418e.zip |
net: event handler
in subsys.h: include init.h to ensure l5_initcall availability
also: add example/ directory to provide some user-code in the skeleton
(will likely be made defunct as i make the remainder of the skeleton,
such as a /ping command and user action and maybe some buttons, which
will require more organisation)
Diffstat (limited to 'include/dbs/subsys.h')
-rw-r--r-- | include/dbs/subsys.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dbs/subsys.h b/include/dbs/subsys.h index 1885a80..fa3b423 100644 --- a/include/dbs/subsys.h +++ b/include/dbs/subsys.h @@ -1,6 +1,8 @@ #ifndef __SUBSYS_H #define __SUBSYS_H +#include <dbs/init.h> + int __impl_start_subsystem(char *name, int (*fn)(void)); #define start_subsystem(fn) __impl_start_subsystem(#fn, fn) #define declare_subsystem(fn) \ |