1ptree_add_prop(3PICLTREE)PICL Plug-In Library Functionsptree_add_prop(3PICLTREE)
2
3
4
6 ptree_add_prop, ptree_delete_prop - add or delete a property
7
9 cc [ flag... ] file... -lpicltree [ library... ]
10 #include <picltree.h>
11
12 int ptree_add_prop(picl_nodehdl_t nodeh, picl_prophdl_t proph);
13
14
15 int ptree_delete_prop(picl_prophdl_t proph);
16
17
19 The ptree_add_prop() function adds the property specified by the handle
20 proph to the list of properties of the node specified by handle nodeh.
21
22
23 The ptree_delete_prop() function deletes the property from the property
24 list of the node. For a table property, the entire table is deleted.
25
27 Upon successful completion, 0 is returned. On failure, a non-negative
28 integer is returned to indicate an error.
29
30
31 PICL_STALEHANDLE is returned if the handle is no longer valid. This
32 occurs if the PICL tree was refreshed or reinitialized.
33
34
35 PICL_INVALIDHANDLE is returned if the specified handle never existed.
36
38 PICL_NOTTABLE Not a table
39
40
41 PICL_NOTPROP Not a property
42
43
44 PICL_INVALIDHANDLE Invalid handle
45
46
47 PICL_STALEHANDLE Stale handle
48
49
50 PICL_PROPEXISTS Property already exists
51
52
53 PICL_FAILURE General system failure
54
55
57 See attributes(5) for descriptions of the following attributes:
58
59
60
61
62 ┌─────────────────────────────┬─────────────────────────────┐
63 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
64 ├─────────────────────────────┼─────────────────────────────┤
65 │Interface Stability │Evolving │
66 ├─────────────────────────────┼─────────────────────────────┤
67 │MT-Level │MT-Safe │
68 └─────────────────────────────┴─────────────────────────────┘
69
71 ptree_create_prop(3PICLTREE), attributes(5)
72
73
74
75SunOS 5.11 25 Apr 2002 ptree_add_prop(3PICLTREE)