-
Notifications
You must be signed in to change notification settings - Fork 27
/
SerializePrxToXml.h
41 lines (35 loc) · 1.14 KB
/
SerializePrxToXml.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/***************************************************************
* PRXTool : Utility for PSP executables.
* (c) TyRaNiD 2k5
*
* SerializePrxToXml.h - Definition of a class to serialize a
* PRX to an XML file.
***************************************************************/
#ifndef __SERIALIZEPRXTOXML_H__
#define __SERIALIZEPRXTOXML_H__
#include <stdio.h>
#include "SerializePrx.h"
class CSerializePrxToXml : public CSerializePrx
{
FILE *m_fpOut;
virtual bool StartFile();
virtual bool EndFile();
virtual bool StartPrx(const char *szFilename, const PspModule *mod, u32 iSMask);
virtual bool EndPrx();
virtual bool StartSects();
virtual bool SerializeSect(int num, ElfSection §);
virtual bool EndSects();
virtual bool StartImports();
virtual bool SerializeImport(int num, const PspLibImport *imp);
virtual bool EndImports();
virtual bool StartExports();
virtual bool SerializeExport(int num, const PspLibExport *exp);
virtual bool EndExports();
virtual bool StartRelocs();
virtual bool SerializeReloc(int count, const ElfReloc *rel);
virtual bool EndRelocs();
public:
CSerializePrxToXml(FILE *fpOut);
~CSerializePrxToXml();
};
#endif