2003-04-07 20:02:06 +00:00
|
|
|
#ifndef __ruamoko_plist_h
|
|
|
|
#define __ruamoko_plist_h
|
|
|
|
|
2020-03-03 06:24:41 +00:00
|
|
|
#include <qfile.h>
|
2010-11-24 04:12:41 +00:00
|
|
|
|
2012-12-18 06:54:30 +00:00
|
|
|
typedef struct plitem_s *plitem_t;
|
2004-11-11 22:42:00 +00:00
|
|
|
typedef enum {QFDictionary, QFArray, QFBinary, QFString} pltype_t; // possible types
|
2003-04-07 20:02:06 +00:00
|
|
|
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern plitem_t PL_GetFromFile (QFile file);
|
|
|
|
@extern plitem_t PL_GetPropertyList (string str);
|
|
|
|
@extern string PL_WritePropertyList (plitem_t pl);
|
|
|
|
@extern pltype_t PL_Type (plitem_t str);
|
2020-12-23 12:52:42 +00:00
|
|
|
@extern int PL_Line (plitem_t str);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern string PL_String (plitem_t str);
|
|
|
|
@extern plitem_t PL_ObjectForKey (plitem_t item, string key);
|
|
|
|
@extern plitem_t PL_RemoveObjectForKey (plitem_t item, string key);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern plitem_t PL_ObjectAtIndex (plitem_t item, int index);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern plitem_t PL_D_AllKeys (plitem_t item);
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern int PL_D_NumKeys (plitem_t item);
|
|
|
|
@extern int PL_D_AddObject (plitem_t dict, string key, plitem_t value);
|
|
|
|
@extern int PL_A_AddObject (plitem_t array_item, plitem_t item);
|
|
|
|
@extern int PL_A_NumObjects (plitem_t item);
|
|
|
|
@extern int PL_A_InsertObjectAtIndex (plitem_t array_item, plitem_t item, int index);
|
|
|
|
@extern plitem_t PL_RemoveObjectAtIndex (plitem_t array_item, int index);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern plitem_t PL_NewDictionary ();
|
|
|
|
@extern plitem_t PL_NewArray ();
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern plitem_t PL_NewData (void *data, int len);
|
2010-12-01 23:04:18 +00:00
|
|
|
@extern plitem_t PL_NewString (string str);
|
|
|
|
@extern void PL_Free (plitem_t pl);
|
2003-04-07 20:02:06 +00:00
|
|
|
|
|
|
|
#endif//__ruamoko_plist_h
|