PICL Plug-In Library Functions ptreeaddprop(3PICLTRE)
NAME
ptreeaddprop, ptreedeleteprop - add or delete a property
SYNOPSIS
cc [ flag... ] file... -lpicltree [ library... ]
#include
int ptreeaddprop(piclnodehdlt nodeh, piclprophdlt proph);
int ptreedeleteprop(piclprophdlt proph);
DESCRIPTION
The ptreeaddprop() function adds the property specified by
the handle proph to the list of properties of the node
specified by handle nodeh.
The ptreedeleteprop() function deletes the property from
the property list of the node. For a table property, the
entire table is deleted.
RETURN VALUES
Upon successful completion, 0 is returned. On failure, a
non-negative integer is returned to indicate an error.
PICLSTALEHANDLE is returned if the handle is no longer
valid. This occurs if the PICL tree was refreshed or reini-
tialized.
PICLINVALIDHANDLE is returned if the specified handle never
existed.
ERORS
PICLNOTABLE Not a table
PICLNOTPROP Not a property
PICLINVALIDHANDLE Invalid handle
PICLSTALEHANDLE Stale handle
PICLPROPEXISTS Property already exists
SunOS 5.11 Last change: 25 Apr 2002 1
PICL Plug-In Library Functions ptreeaddprop(3PICLTRE)
PICLFAILURE General system failure
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Evolving
MT-Level MT-Safe
SEE ALSO
ptreecreateprop(3PICLTRE), attributes(5)
SunOS 5.11 Last change: 25 Apr 2002 2
|