mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 09:54:16 +01:00
4ffda340d3
And turn "" includes into full-path (which makes it easier to put config.h first, and finds some cases check-includes.sh missed previously). config.h sets _GNU_SOURCE which really needs to be done before any '#includes': we mainly got away with it with glibc, but other platforms like Alpine may have stricter requirements. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
14 lines
297 B
C
14 lines
297 B
C
#include "config.h"
|
|
#include <common/wallet.h>
|
|
|
|
enum wallet_tx_type fromwire_wallet_tx_type(const u8 **cursor, size_t *max)
|
|
{
|
|
enum wallet_tx_type type = fromwire_u16(cursor, max);
|
|
return type;
|
|
}
|
|
|
|
void towire_wallet_tx_type(u8 **pptr, const enum wallet_tx_type type)
|
|
{
|
|
towire_u16(pptr, type);
|
|
}
|