X-Git-Url: https://git.stderr.nl/gitweb?p=projects%2Fchimara%2Fchimara.git;a=blobdiff_plain;f=interpreters%2Fbocfel%2Fblorb.h;fp=interpreters%2Fbocfel%2Fblorb.h;h=654becc7fa1954e679d103ff6352122370bb9053;hp=0000000000000000000000000000000000000000;hb=aa30979369091c96bca34499c28cb01bc16efb1d;hpb=61180dab8f5c29f5a29b83fcb7d62942f7a741d1 diff --git a/interpreters/bocfel/blorb.h b/interpreters/bocfel/blorb.h new file mode 100644 index 0000000..654becc --- /dev/null +++ b/interpreters/bocfel/blorb.h @@ -0,0 +1,29 @@ +#ifndef ZTERP_BLORB_H +#define ZTERP_BLORB_H + +#include +#include + +#include "io.h" + +#define BLORB_PICT 0x50696374 +#define BLORB_SND 0x536e6420 +#define BLORB_EXEC 0x45786563 + +typedef struct zterp_blorb zterp_blorb; + +typedef struct +{ + uint32_t usage; + int number; + uint32_t type; + char name[5]; + uint32_t offset; + uint32_t size; +} zterp_blorb_chunk; + +zterp_blorb *zterp_blorb_parse(zterp_io *); +void zterp_blorb_free(zterp_blorb *); +const zterp_blorb_chunk *zterp_blorb_find(zterp_blorb *, uint32_t, int); + +#endif