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:
Christian Decker
2018-12-28 21:23:08 +01:00
committed by Rusty Russell
parent ff897f8788
commit b8584a744b
3 changed files with 61 additions and 5 deletions

View File

@@ -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) \
{ \