mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
plugin: Add hooks that a plugin might register
This is the first use of the `hooks` autodata field, and it required a dummy element in order for the section not to be dropped, it'll be removed once we have actual hooks.
This commit is contained in:
committed by
Rusty Russell
parent
ff897f8788
commit
b8584a744b
@@ -73,7 +73,7 @@ void plugin_hook_call_(struct lightningd *ld, const struct plugin_hook *hook,
|
||||
*/
|
||||
/* FIXME: Find a way to avoid back-to-back declaration and definition */
|
||||
#define PLUGIN_HOOK_CALL_DEF(name, payload_type, response_cb_arg_type) \
|
||||
static inline void plugin_hook_call_##name( \
|
||||
UNNEEDED static inline void plugin_hook_call_##name( \
|
||||
struct lightningd *ld, payload_type payload, \
|
||||
response_cb_arg_type cb_arg) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user