add xml
This commit is contained in:
parent
56405d6241
commit
bcefd78599
9 changed files with 102 additions and 4 deletions
|
|
@ -15,5 +15,6 @@
|
|||
#include <GearSrc/Resource.h>
|
||||
#include <GearSrc/Endian.h>
|
||||
#include <GearSrc/SkyBox.h>
|
||||
#include <GearSrc/XML.h>
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -7,6 +7,10 @@
|
|||
#include <stdarg.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifdef _GEARSRC
|
||||
#include <xemil.h>
|
||||
#endif
|
||||
|
||||
#if defined(_GEARSRC) && defined(_WIN32)
|
||||
#define GSDECL extern __declspec(dllexport)
|
||||
#elif defined(_WIN32)
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ typedef struct _GSFile* GSFile;
|
|||
typedef struct _GSResource* GSResource;
|
||||
typedef struct _GSGL* GSGL;
|
||||
typedef struct _GSSkyBox* GSSkyBox;
|
||||
typedef xemil_t* GSXML;
|
||||
#else
|
||||
typedef void* GSClient;
|
||||
typedef void* GSServer;
|
||||
|
|
@ -56,6 +57,7 @@ typedef void* GSFile;
|
|||
typedef void* GSResource;
|
||||
typedef void* GSGL;
|
||||
typedef void* GSSkyBox;
|
||||
typedef void* GSXML;
|
||||
#endif
|
||||
typedef float GSNumber;
|
||||
typedef GSNumber GSVector2[2];
|
||||
|
|
@ -72,6 +74,7 @@ typedef void (*GSSleepCallback)(int ms);
|
|||
struct _GSResourceKV {
|
||||
char* key;
|
||||
GSResource value;
|
||||
GSXML xml;
|
||||
};
|
||||
|
||||
#ifdef _GEARSRC
|
||||
|
|
|
|||
18
engine/include/GearSrc/XML.h
Normal file
18
engine/include/GearSrc/XML.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef __GEARSRC_XML_H__
|
||||
#define __GEARSRC_XML_H__
|
||||
|
||||
#include <GearSrc/MachDep.h>
|
||||
#include <GearSrc/TypeDefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
GSDECL GSXML GSXMLOpen(GSEngine engine, const char* path);
|
||||
GSDECL void GSXMLClose(GSXML xml);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue