type_to_string: add secp256k1_pubkey

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-01-25 10:02:43 +10:30
parent 66175c7361
commit a25e2816e9
3 changed files with 17 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#include "config.h"
#include "utils.h"
#include <ccan/autodata/autodata.h>
#include <secp256k1.h>
/* This must match the type_to_string_ cases. */
union printable_types {
@@ -17,6 +18,7 @@ union printable_types {
const struct channel_state *channel_state;
const struct channel_oneside *channel_oneside;
const struct netaddr *netaddr;
const secp256k1_pubkey *secp256k1_pubkey;
const char *charp_;
};