Debian Codegraph @

include/public/nsacl/plistdef.h

raw
1 /** BEGIN COPYRIGHT BLOCK
2 * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
3 * Copyright (C) 2005 Red Hat, Inc.
4 * All rights reserved.
5 *
6 * License: GPL (version 3 or any later version).
7 * See LICENSE for details.
8 * END COPYRIGHT BLOCK **/
9
10 #ifdef HAVE_CONFIG_H
11 #include <config.h>
12 #endif
13
14 #ifndef PUBLIC_NSACL_PLISTDEF_H
15 #define PUBLIC_NSACL_PLISTDEF_H
16
17 /*
18 * File: plistdef.h
19 *
20 * Description:
21 *
22 * This file defines the interface to property lists. Property
23 * lists are a generalization of parameter blocks (pblocks).
24 */
25
26 #ifndef PUBLIC_NSAPI_H
27 #include "public/nsapi.h"
28 #endif /* !PUBLIC_NSAPI_H */
29
30 typedef struct PListStruct_s *PList_t;
31
32 /* Define error codes returned from property list routines */
33
34 #define ERRPLINVPI -1 /* invalid property index */
35 #define ERRPLEXIST -2 /* property already exists */
36 #define ERRPLFULL -3 /* property list is full */
37 #define ERRPLNOMEM -4 /* insufficient dynamic memory */
38 #define ERRPLUNDEF -5 /* undefined property name */
39
40 #define PLFLG_OLD_MPOOL 0 /* use the plist memory pool */
41 #define PLFLG_NEW_MPOOL 1 /* use the input memory pool */
42 #define PLFLG_IGN_RES 2 /* ignore the reserved properties */
43 #define PLFLG_USE_RES 3 /* use the reserved properties */
44
45 #ifdef __cplusplus
46 typedef void(PListFunc_t)(char *, const void *, void *);
47 #else
48 typedef void(PListFunc_t)(void);
49 #endif
50
51 #ifndef INTNSACL
52 #define PListAssignValue (*__nsacl_table->f_PListAssignValue)
53 #define PListCreate (*__nsacl_table->f_PListCreate)
54 #define PListDefProp (*__nsacl_table->f_PListDefProp)
55 #define PListDeleteProp (*__nsacl_table->f_PListDeleteProp)
56 #define PListFindValue (*__nsacl_table->f_PListFindValue)
57 #define PListInitProp (*__nsacl_table->f_PListInitProp)
58 #define PListNew (*__nsacl_table->f_PListNew)
59 #define PListDestroy (*__nsacl_table->f_PListDestroy)
60 #define PListGetValue (*__nsacl_table->f_PListGetValue)
61 #define PListNameProp (*__nsacl_table->f_PListNameProp)
62 #define PListSetType (*__nsacl_table->f_PListSetType)
63 #define PListSetValue (*__nsacl_table->f_PListSetValue)
64 #define PListEnumerate (*__nsacl_table->f_PListEnumerate)
65 #define PListDuplicate (*__nsacl_table->f_PListDuplicate)
66 #define PListGetPool (*__nsacl_table->f_PListGetPool)
67
68 #endif /* !INTNSACL */
69
70 #endif /* !PUBLIC_NSACL_PLISTDEF_H */