src/server/util/plist.h

changeset 24
1a7853a4257e
parent 14
b8bf95b39952
equal deleted inserted replaced
23:a2c8fc23c90e 24:1a7853a4257e
45 * 45 *
46 * This type defines a handle for a property list. 46 * This type defines a handle for a property list.
47 */ 47 */
48 48
49 #include "pool.h" 49 #include "pool.h"
50 #include "mps/nspr.h" 50 //include "mps/nspr.h"
51 #include "../public/nsapi.h" 51 #include "../public/nsapi.h"
52 #include "plist_pvt.h" 52 #include "plist_pvt.h"
53 53
54 #ifndef PUBLIC_NSACL_PLISTDEF_H 54 #ifndef PUBLIC_NSACL_PLISTDEF_H
55 #include "plistdef.h" 55 #include "plistdef.h"
56 #endif /* !PUBLIC_NSACL_PLISTDEF_H */ 56 #endif /* !PUBLIC_NSACL_PLISTDEF_H */
57 57
58 #ifdef INTNSACL 58 #ifdef INTNSACL
59 59
60 /* Functions in plist.c */ 60 /* Functions in plist.c */
61 NSPR_BEGIN_EXTERN_C 61 #ifdef __cplusplus
62 extern "C" {
63 #endif
62 64
63 NSAPI_PUBLIC extern int PListAssignValue(PList_t plist, const char *pname, 65 NSAPI_PUBLIC extern int PListAssignValue(PList_t plist, const char *pname,
64 const void *pvalue, PList_t ptype); 66 const void *pvalue, PList_t ptype);
65 NSAPI_PUBLIC extern PList_t PListCreate(pool_handle_t *mempool, 67 NSAPI_PUBLIC extern PList_t PListCreate(pool_handle_t *mempool,
66 int resvprop, int maxprop, int flags); 68 int resvprop, int maxprop, int flags);
85 PListDuplicate(PList_t plist, pool_handle_t *new_mempool, int flags); 87 PListDuplicate(PList_t plist, pool_handle_t *new_mempool, int flags);
86 NSAPI_PUBLIC extern pool_handle_t *PListGetPool(PList_t plist); 88 NSAPI_PUBLIC extern pool_handle_t *PListGetPool(PList_t plist);
87 NSAPI_PUBLIC extern int PListDefKey(PList_t plist, pb_key *key, const char *pname, const int flags); 89 NSAPI_PUBLIC extern int PListDefKey(PList_t plist, pb_key *key, const char *pname, const int flags);
88 NSAPI_PUBLIC extern int PListInitKey(PList_t plist, pb_key *key, const void *pvalue, PList_t ptype); 90 NSAPI_PUBLIC extern int PListInitKey(PList_t plist, pb_key *key, const void *pvalue, PList_t ptype);
89 91
90 NSPR_END_EXTERN_C 92 #ifdef __cplusplus
93 }
94 #endif
91 95
92 #endif /* INTNSACL */ 96 #endif /* INTNSACL */
93 97
94 #endif /* _PLIST_H */ 98 #endif /* _PLIST_H */

mercurial