1ptree_init_propinfo(3PICLPTIRCELE)Plug-In Library Funcpttiroenes_init_propinfo(3PICLTREE)
2
3
4
6 ptree_init_propinfo - initialize ptree_propinfo_t structure
7
9 cc [ flag... ] file... -lpicltree [ library... ]
10 #include <picltree.h>
11
12 int ptree_init_propinfo(ptree_propinfo_t *infop, int version,
13 int ptype, int pmode, size_t psize, char *pname,
14 int (*readfn)(ptree_rarg_t *, void *),
15 int (*writefn)(ptree_warg_t *, const void *));
16
17
19 The ptree_init_propinfo() function initializes a ptree_propinfo_t prop‐
20 erty information structure given by location infop with the values pro‐
21 vided by the arguments.
22
23
24 The version argument specifies the version of the ptree_propinfo_t
25 structure. PTREE_PROPINFO_VERSION gives the current version. The argu‐
26 ments ptype, pmode, psize, and pname specify the property's PICL type,
27 access mode, size, and name. The maximum size of a property name is
28 defined by PICL_PROPNAMELEN_MAX. The arguments readfn and writefn spec‐
29 ify a volatile property's read and write access functions. For non-
30 volatile properties, these are set to NULL.
31
33 Upon successful completion, 0 is returned. On failure, a non-negative
34 integer is returned to indicate an error.
35
37 PICL_INVALIDARG Invalid argument
38
39
40 PICL_NOTSUPPORTED Property version not supported
41
42
43 PICL_FAILURE General system failure
44
45
47 See attributes(5) for descriptions of the following attributes:
48
49
50
51
52 ┌─────────────────────────────┬─────────────────────────────┐
53 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
54 ├─────────────────────────────┼─────────────────────────────┤
55 │Interface Stability │Evolving │
56 ├─────────────────────────────┼─────────────────────────────┤
57 │MT-Level │MT-Safe │
58 └─────────────────────────────┴─────────────────────────────┘
59
61 ptree_get_propinfo(3PICLTREE), attributes(5)
62
63
64
65SunOS 5.11 1 Aug 2000 ptree_init_propinfo(3PICLTREE)