X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=interpreters%2Fbocfel%2Fblorb.h;fp=interpreters%2Fbocfel%2Fblorb.h;h=654becc7fa1954e679d103ff6352122370bb9053;hb=3c59ba5eef5cb4d39c06eb7f523b9c3b026bdc9b;hp=0000000000000000000000000000000000000000;hpb=ed91d840318ed6ebfe3a5a77fa17114ddbf56640;p=projects%2Fchimara%2Fchimara.git 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