MCPcopy Create free account
hub / github.com/ElementsProject/lightning / destroy_hook_instance

Function destroy_hook_instance

lightningd/plugin_hook.c:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static void destroy_hook_instance(struct hook_instance *h,
74 struct plugin_hook *hook)
75{
76 /* NULL it out. */
77 remove_hook_instance(h, hook->hooks);
78
79 /* If there's a pending set of hooks, remove ourselves there too! */
80 if (hook->new_hooks)
81 remove_hook_instance(h, hook->new_hooks);
82}
83
84/* Filters in an array of strings */
85static const char *parse_str_filters(const tal_t *ctx,

Callers

nothing calls this directly

Calls 1

remove_hook_instanceFunction · 0.85

Tested by

no test coverage detected