clightning-dumpkeys

dump clightning output descriptors
git clone git://jb55.com/clightning-dumpkeys
Log | Files | Refs | README | LICENSE

short_types.h (544B)


      1 
      2 #ifndef DK_SHORT_TYPES_H
      3 #define DK_SHORT_TYPES_H
      4 
      5 #include <stdint.h>
      6 
      7 typedef uint64_t u64;
      8 typedef int64_t s64;
      9 typedef uint32_t u32;
     10 typedef int32_t s32;
     11 typedef uint16_t u16;
     12 typedef int16_t s16;
     13 typedef uint8_t u8;
     14 typedef int8_t s8;
     15 
     16 #define WALLY_OK      0 /** Success */
     17 #define WALLY_ERROR  -1 /** General error */
     18 #define WALLY_EINVAL -2 /** Invalid argument */
     19 #define WALLY_ENOMEM -3 /** malloc() failed */
     20 
     21 
     22 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
     23 
     24 #define streq(a, b) strcmp(a, b) == 0
     25 
     26 #endif /* DK_SHORT_TYPES_H */