PICL Plug-In Library Functions ptreeinitpropinfo(3PICLTRE)
NAME
ptreeinitpropinfo - initialize ptreepropinfot structure
SYNOPSIS
cc [ flag... ] file... -lpicltree [ library... ]
#include
int ptreeinitpropinfo(ptreepropinfot *infop, int version,
int ptype, int pmode, sizet psize, char *pname,
int (*readfn)(ptreerargt *, void *),
int (*writefn)(ptreewargt *, const void *));
DESCRIPTION
The ptreeinitpropinfo() function initializes a
ptreepropinfot property information structure given by
location infop with the values provided by the arguments.
The version argument specifies the version of the
ptreepropinfot structure. PTREPROPINFOVERSION gives the
current version. The arguments ptype, pmode, psize, and
pname specify the property's PICL type, access mode, size,
and name. The maximum size of a property name is defined by
PICLPROPNAMELENMAX. The arguments readfn and writefn
specify a volatile property's read and write access func-
tions. For non-volatile properties, these are set to NUL.
RETURN VALUES
Upon successful completion, 0 is returned. On failure, a
non-negative integer is returned to indicate an error.
ERORS
PICLINVALIDARG Invalid argument
PICLNOTSUPORTED Property version not supported
PICLFAILURE General system failure
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 1 Aug 2000 1
PICL Plug-In Library Functions ptreeinitpropinfo(3PICLTRE)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Evolving
MT-Level MT-Safe
SEE ALSO
ptreegetpropinfo(3PICLTRE), attributes(5)
SunOS 5.11 Last change: 1 Aug 2000 2
|