1ptree_walk_tree_by_class(P3IPCILCLPTlRuEgE-)In LibraryptFruenec_twiaolnks_tree_by_class(3PICLTREE)
2
3
4

NAME

6       ptree_walk_tree_by_class - walk subtree by class
7

SYNOPSIS

9       cc [ flag... ] file... -lpicltree [ library... ]
10       #include <picltree.h>
11
12       int ptree_walk_tree_by_class(picl_nodehdl_t rooth,
13            const char *classname, void *c_args,
14            int (*callback)(picl_nodehdl_t nodeh, void *c_args));
15
16

DESCRIPTION

18       The  ptree_walk_tree_by_class()  function  visits  all the nodes of the
19       subtree under the node specified by rooth. The PICL class name  of  the
20       visited node is compared with the class name specified by classname. If
21       the class names match, the callback function specified by  callback  is
22       called  with  the  matching  node  handle  and the argument provided in
23       c_args. If the class name specified in  classname  is  NULL,  then  the
24       callback function is invoked for all the nodes.
25
26
27       The  return  value  from  the  callback  function  is used to determine
28       whether to continue or terminate the tree walk. The  callback  function
29       returns PICL_WALK_CONTINUE or PICL_WALK_TERMINATE to continue or termi‐
30       nate the tree walk.
31

RETURN VALUES

33       Upon successful completion, 0 is returned. On failure,  a  non-negative
34       integer is returned to indicate an error.
35

ERRORS

37       PICL_NOTNODE          Not a node
38
39
40       PICL_INVALIDHANDLE    Invalid handle specified
41
42
43       PICL_STALEHANDLE      Stale handle specified
44
45
46       PICL_FAILURE          General system failure
47
48

ATTRIBUTES

50       See attributes(5) for descriptions of the following attributes:
51
52
53
54
55       ┌─────────────────────────────┬─────────────────────────────┐
56       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
57       ├─────────────────────────────┼─────────────────────────────┤
58       │Interface Stability          │Evolving                     │
59       ├─────────────────────────────┼─────────────────────────────┤
60       │MT-Level                     │MT-Safe                      │
61       └─────────────────────────────┴─────────────────────────────┘
62

SEE ALSO

64       ptree_get_propval_by_name(3PICLTREE), attributes(5)
65
66
67
68SunOS 5.11                        1 Aug 2000ptree_walk_tree_by_class(3PICLTREE)
Impressum