2018-04-02 02:51:12 +05:30
|
|
|
#ifndef DEVIL1PLD_H
|
|
|
|
#define DEVIL1PLD_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
struct PldHeader {
|
|
|
|
int32_t numOffset;
|
|
|
|
// array of numOffset elements
|
|
|
|
uint32_t *offsets; // <format=hex>
|
|
|
|
};
|
|
|
|
|
2018-04-02 12:15:30 +05:30
|
|
|
// input: contents of the .pld file.
|
2018-04-02 13:51:21 +05:30
|
|
|
// allocates heap memory
|
2018-04-02 12:15:30 +05:30
|
|
|
struct PldHeader *getpldh(const char*);
|
|
|
|
|
2018-04-02 13:51:21 +05:30
|
|
|
// frees heap memory
|
|
|
|
void destroypldh(struct PldHeader*);
|
|
|
|
|
|
|
|
// input: a pld header struct.
|
|
|
|
void showpldh(struct PldHeader*);
|
|
|
|
|
2018-04-02 02:51:12 +05:30
|
|
|
#endif
|