Files
lightning/lightningd
Christian Decker f8f76e3d31 plugin: Add hook registration
I might have gone a bit overboard with the type-checking, but
typesafe_cb_cast is quite nice to use, so why not. The macro to
register a new hook encapsulates the entire flow from param
serialization, to dispatch, parsing and callback dispatch in one
bundle. I was tempted to have the callback outside of the
registration, but it's unlikely that we'll have two calls to the same
hook with different callbacks.

Signed-off-by: Christian Decker <decker.christian@gmail.com>
2019-01-17 05:42:49 +00:00
..
2017-10-20 18:31:32 +02:00
2019-01-15 12:01:38 +01:00
2019-01-17 05:42:49 +00:00
2018-11-22 05:15:42 +00:00
2019-01-15 12:01:38 +01:00
2018-02-16 13:08:29 +01:00
2018-11-22 05:15:42 +00:00
2019-01-17 05:42:49 +00:00
2019-01-17 05:42:49 +00:00
2019-01-17 05:42:49 +00:00