mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-12-03 01:22:51 +00:00
27 lines
1.2 KiB
C
27 lines
1.2 KiB
C
#ifndef __ruamoko_plist_h
|
|
#define __ruamoko_plist_h
|
|
|
|
struct plitem_s {integer [2] dummy;};
|
|
#define PL_TEST(item) (item.dummy[0] || item.dummy[1])
|
|
typedef struct plitem_s plitem_t;
|
|
typedef enum {QFDictionary, QFArray, QFBinary, QFString} pltype_t; // possible types
|
|
|
|
@extern plitem_t (string str) PL_GetPropertyList;
|
|
@extern string (plitem_t pl) PL_WritePropertyList;
|
|
@extern pltype_t (plitem_t str) PL_Type;
|
|
@extern string (plitem_t str) PL_String;
|
|
@extern plitem_t (plitem_t item, string key) PL_ObjectForKey;
|
|
@extern plitem_t (plitem_t item, integer index) PL_ObjectAtIndex;
|
|
@extern plitem_t (plitem_t item) PL_D_AllKeys;
|
|
@extern integer (plitem_t item) PL_D_NumKeys;
|
|
@extern integer (plitem_t dict, string key, plitem_t value) PL_D_AddObject;
|
|
@extern integer (plitem_t array_item, plitem_t item) PL_A_AddObject;
|
|
@extern integer (plitem_t item) PL_A_NumObjects;
|
|
@extern integer (plitem_t array_item, plitem_t item, integer index) PL_A_InsertObjectAtIndex;
|
|
@extern plitem_t () PL_NewDictionary;
|
|
@extern plitem_t () PL_NewArray;
|
|
@extern plitem_t (void []data, integer len) PL_NewData;
|
|
@extern plitem_t (string str) PL_NewString;
|
|
@extern void (plitem_t pl) PL_Free;
|
|
|
|
#endif//__ruamoko_plist_h
|