header.h (417B)
1 #ifndef MINIROON_HEADER_H 2 #define MINIROON_HEADER_H 3 4 // implementation: 5 // {IMP} header.c 6 7 #include "errors.h" 8 #include "bytebuffer.h" 9 10 typedef struct miniroon_header_s { 11 bytebuffer id; 12 13 enum miniroon_version { 14 V0 = 0 15 } version; 16 17 enum miniroon_action { 18 REVOKE, INVOKE, INVOKE_ONCE 19 } action; 20 21 } miniroon_header; 22 23 miniroon_error parse_header(miniroon_header *header, const bytebuffer source); 24 25 #endif