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 #ifndef _PLIST_H
35 #define _PLIST_H
36
37 #ifndef NOINTNSACL
38 #define INTNSACL
39 #endif
40
41
42
43
44
45
46
47
48
49 #include "pool.h"
50
51 #include "../public/nsapi.h"
52 #include "plist_pvt.h"
53
54 #ifndef PUBLIC_NSACL_PLISTDEF_H
55 #include "plistdef.h"
56 #endif
57
58 #ifdef INTNSACL
59
60
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64
65 NSAPI_PUBLIC extern int PListAssignValue(
PList_t plist,
const char *pname,
66 const void *pvalue,
PList_t ptype);
67 NSAPI_PUBLIC extern PList_t PListCreate(
pool_handle_t *mempool,
68 int resvprop,
int maxprop,
int flags);
69 NSAPI_PUBLIC extern int PListDefProp(
PList_t plist,
int pindex,
70 const char *pname,
const int flags);
71 NSAPI_PUBLIC extern const void * PListDeleteProp(
PList_t plist,
int pindex,
const char *pname);
72 NSAPI_PUBLIC extern int PListFindValue(
PList_t plist,
73 const char *pname,
void **pvalue,
PList_t *type);
74 NSAPI_PUBLIC extern int PListInitProp(
PList_t plist,
int pindex,
const char *pname,
75 const void *pvalue,
PList_t ptype);
76 NSAPI_PUBLIC extern PList_t PListNew(
pool_handle_t *mempool);
77 NSAPI_PUBLIC extern void PListDestroy(
PList_t plist);
78 NSAPI_PUBLIC extern int PListGetValue(
PList_t plist,
79 int pindex,
void **pvalue,
PList_t *type);
80 NSAPI_PUBLIC extern int PListNameProp(
PList_t plist,
int pindex,
const char *pname);
81 NSAPI_PUBLIC extern int PListSetType(
PList_t plist,
int pindex,
PList_t type);
82 NSAPI_PUBLIC extern int PListSetValue(
PList_t plist,
83 int pindex,
const void *pvalue,
PList_t type);
84 NSAPI_PUBLIC extern void PListEnumerate(
PList_t plist,
PListFunc_t *user_func,
85 void *user_data);
86 NSAPI_PUBLIC extern PList_t
87 PListDuplicate(
PList_t plist,
pool_handle_t *new_mempool,
int flags);
88 NSAPI_PUBLIC extern pool_handle_t *PListGetPool(
PList_t plist);
89 NSAPI_PUBLIC extern int PListDefKey(
PList_t plist, pb_key *key,
const char *pname,
const int flags);
90 NSAPI_PUBLIC extern int PListInitKey(
PList_t plist, pb_key *key,
const void *pvalue,
PList_t ptype);
91
92 #ifdef __cplusplus
93 }
94 #endif
95
96 #endif
97
98 #endif
99