plugin/libplugin: API for C plugins.

Doesn't do logging yet.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-01-15 14:43:27 +10:30
committed by Christian Decker
parent ed356dae62
commit de4043a32a
7 changed files with 712 additions and 4 deletions

37
plugins/Makefile Normal file
View File

@@ -0,0 +1,37 @@
PLUGIN_LIB_SRC := plugins/libplugin.c
PLUGIN_LIB_HEADER := plugins/libplugin.h
PLUGIN_LIB_OBJS := $(PLUGIN_LIB_SRC:.c=.o)
PLUGIN_COMMON_OBJS := \
bitcoin/chainparams.o \
bitcoin/pubkey.o \
bitcoin/pullpush.o \
bitcoin/script.o \
bitcoin/shadouble.o \
bitcoin/short_channel_id.o \
bitcoin/signature.o \
bitcoin/tx.o \
bitcoin/varint.o \
common/bech32.o \
common/bech32_util.o \
common/bolt11.o \
common/daemon.o \
common/hash_u5.o \
common/json.o \
common/json_escaped.o \
common/json_tok.o \
common/memleak.o \
common/param.o \
common/type_to_string.o \
common/utils.o \
common/version.o \
wire/fromwire.o \
wire/towire.o
# Make sure these depend on everything.
ALL_OBJS += $(PLUGIN_LIB_OBJS)
clean: plugin-clean
plugin-clean:
$(RM) $(PLUGIN_LIB_OBJS)