2019-07-23 22:53:44 +02:00
|
|
|
#ifndef LIGHTNING_TOOLS_TEST_ENUM_H
|
|
|
|
#define LIGHTNING_TOOLS_TEST_ENUM_H
|
2021-12-04 12:23:56 +01:00
|
|
|
#include "config.h"
|
2019-07-23 22:53:44 +02:00
|
|
|
#include <ccan/short_types/short_types.h>
|
2022-03-23 00:31:14 +01:00
|
|
|
#include <stdbool.h>
|
2019-07-23 22:53:44 +02:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
2019-09-20 19:49:45 +02:00
|
|
|
#define TEST_IFDEF 0
|
|
|
|
|
2019-07-23 22:53:44 +02:00
|
|
|
enum test_enum {
|
|
|
|
TEST_ONE,
|
|
|
|
TEST_TWO,
|
|
|
|
};
|
|
|
|
|
|
|
|
void towire_test_enum(u8 **pptr, const enum test_enum test_enum);
|
|
|
|
enum test_enum fromwire_test_enum(const u8 **cursor, size_t *max);
|
2022-03-23 00:31:14 +01:00
|
|
|
bool printwire_test_enum(const char *fieldname, const u8 **cursor, size_t *max);
|
2019-07-23 22:53:44 +02:00
|
|
|
|
|
|
|
#endif /* LIGHTNING_TOOLS_TEST_ENUM_H */
|