1ptree_create_and_add_propP(I3CPLICPLlTuRgE-EI)n LibrarpytrFeuen_cctrieoantse_and_add_prop(3PICLTREE)
2
3
4

NAME

6       ptree_create_and_add_prop  - create and add property to node and return
7       property handle
8

SYNOPSIS

10       cc [ flag... ] file... -lpicltree [ library... ]
11       #include <picltree.h>
12
13       int ptree_create_and_add_prop(picl_nodehdl_t nodeh,
14            ptree_propinfo_t *infop, void *vbuf, picl_prophdl_t *proph);
15
16

DESCRIPTION

18       The ptree_create_and_add_prop() function creates a property  using  the
19       property  information  specified in infop and the value buffer vbuf and
20       adds the property to the node specified by nodeh. If proph is not NULL,
21       the handle of the property added to the node is returned in proph.
22

RETURN VALUES

24       Upon  successful  completion, 0 is returned. On failure, a non-negative
25       integer is returned to indicate an error.
26
27
28       PICL_STALEHANDLE is returned if the handle is  no  longer  valid.  This
29       occurs if the PICL tree was refreshed or reinitialized.
30
31
32       PICL_INVALIDHANDLE is returned if the specified handle never existed.
33

ERRORS

35       PICL_NOTSUPPORTED     Property version not supported
36
37
38       PICL_VALUETOOBIG      Value exceeds maximum size
39
40
41       PICL_NOTPROP          Not a property
42
43
44       PICL_NOTTABLE         Not a table
45
46
47       PICL_PROPEXISTS       Property already exists
48
49
50       PICL_RESERVEDNAME     Property name is reserved
51
52
53       PICL_INVREFERENCE     Invalid reference property value
54
55
56       PICL_INVALIDHANDLE    Invalid handle
57
58
59       PICL_STALEHANDLE      Stale handle
60
61
62       PICL_FAILURE          General system failure
63
64

ATTRIBUTES

66       See attributes(5) for descriptions of the following attributes:
67
68
69
70
71       ┌─────────────────────────────┬─────────────────────────────┐
72       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
73       ├─────────────────────────────┼─────────────────────────────┤
74       │Interface Stability          │Evolving                     │
75       ├─────────────────────────────┼─────────────────────────────┤
76       │MT-Level                     │MT-Safe                      │
77       └─────────────────────────────┴─────────────────────────────┘
78

SEE ALSO

80       ptree_create_prop(3PICLTREE), ptree_add_prop(3PICLTREE), attributes(5)
81
82
83
84SunOS 5.11                        1 Aug 200p0tree_create_and_add_prop(3PICLTREE)
Impressum