1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-07 22:34:18 +01:00

more code for proplist handling

This commit is contained in:
dan
2001-09-06 14:16:11 +00:00
parent e44cc81a03
commit 86f3e2fdb1
2 changed files with 294 additions and 31 deletions

View File

@@ -737,6 +737,46 @@ void WMEnqueueCoalesceNotification(WMNotificationQueue *queue,
unsigned coalesceMask);
/*......................................................................*/
/* Property Lists handling */
void WMSetPropListStringComparer(WMCompareDataProc *comparer);
WMPropList* WMCreatePropListString(char *str);
WMPropList* WMCreatePropListDataWithBytes(unsigned char *bytes,
unsigned int length);
WMPropList* WMCreatePropListDataWithBytesNoCopy(unsigned char *bytes,
unsigned int length,
WMFreeDataProc *destructor);
WMPropList* WMCreatePropListDataWithData(WMData *data);
WMPropList* WMCreatePropListArrayFromElements(WMPropList *elem, ...);
WMPropList* WMCreatePropListDictionaryFromEntries(WMPropList *key,
WMPropList *value, ...);
WMPropList* WMRetainPropList(WMPropList *plist);
void WMReleasePropList(WMPropList *plist);
Bool WMPropListIsString(WMPropList *plist);
Bool WMPropListIsData(WMPropList *plist);
Bool WMPropListIsArray(WMPropList *plist);
Bool WMPropListIsDictionary(WMPropList *plist);
Bool WMPropListIsSimple(WMPropList *plist);
Bool WMPropListIsCompound(WMPropList *plist);
Bool WMArePropListsEqual(WMPropList *plist, WMPropList *other);
/*......................................................................*/
WMUserDefaults* WMGetStandardUserDefaults(void);