Fixed includes in header, added destroy fn, clarity tweaks

This commit is contained in:
_
2018-04-02 01:21:21 -07:00
parent f2c827ff6b
commit 54ef5e84db
2 changed files with 31 additions and 22 deletions

View File

@@ -2,17 +2,20 @@
#define DEVIL1PLD_H
#include <stdint.h>
#pragma pack(1)
struct PldHeader {
int32_t numOffset;
// array of numOffset elements
uint32_t *offsets; // <format=hex>
};
// input: a pld header struct.
void showpldh(struct PldHeader *);
// input: contents of the .pld file.
// allocates heap memory
struct PldHeader *getpldh(const char*);
// frees heap memory
void destroypldh(struct PldHeader*);
// input: a pld header struct.
void showpldh(struct PldHeader*);
#endif