Lines Matching defs:node
1030 list_cb(hp_node_t node, void *arg)
1035 for (parent = hp_parent(node); parent; parent = hp_parent(parent))
1039 switch (hp_type(node)) {
1041 (void) printf("%s\n", hp_name(node));
1045 (void) printf("[%s]", hp_name(node));
1046 (void) printf(" (%s)", state_itoa(hp_state(node)));
1051 (void) printf("<%s>", hp_name(node));
1052 (void) printf(" (%s)", state_itoa(hp_state(node)));
1057 (void) printf("{ %s }\n", hp_usage(node));
1072 list_long_cb(hp_node_t node, void *arg)
1077 if (hp_type(node) != HP_NODE_USAGE) {
1078 if (hp_path(node, path, connection) != 0)
1083 switch (hp_type(node)) {
1086 (void) printf(" (%s)", state_itoa(hp_state(node)));
1091 (void) printf(" (%s)", state_itoa(hp_state(node)));
1095 (void) printf(" { %s }", hp_usage(node));
1112 error_cb(hp_node_t node, void *arg)
1119 if (((child = hp_child(node)) != NULL) &&
1121 if (hp_path(node, path, connection) == 0)
1126 if ((hp_type(node) == HP_NODE_USAGE) &&
1127 ((usage_str = hp_usage(node)) != NULL))