miniroon-header.h (367B)
1 #ifndef MINIROON_MINIROON_HEADER_H 2 #define MINIROON_MINIROON_HEADER_H 3 4 #include "bytebuffer.h" 5 6 typedef struct miniroon_header_s { 7 bytebuffer id; 8 9 enum miniroon_version { 10 V0 = 0 11 } version; 12 13 enum miniroon_action { 14 REVOKE, INVOKE, INVOKE_ONCE 15 } action; 16 17 } miniroon_header; 18 19 void parse_header(miniroon_header *header, const bytebuffer source); 20 21 #endif