Lines Matching defs:locator_info
40 typedef struct locator_info {
41 int (*locator_func)(picl_nodehdl_t, struct locator_info *);
58 change_locator_state(picl_nodehdl_t locator_node, locator_info_t *locator_info)
81 new_state = (locator_info->new_state) ? locator_info->on :
82 locator_info->off;
106 locator_info_t *locator_info)
121 if (strcmp(state, locator_info->on) == 0)
123 else if (strcmp(state, locator_info->off) == 0)
129 locator_info->name, display_state);
136 locator_info_t *locator_info = (locator_info_t *)arg;
162 if (strcmp(name, locator_info->name) != 0)
169 locator_info->on = locator_on;
171 locator_info->on = "ON";
180 locator_info->off = locator_off;
182 locator_info->off = "OFF";
187 locator_info->err = (locator_info->locator_func)(nodeh,
188 locator_info);
189 locator_info->found = 1;
197 locator_info_t locator_info = {0, 0, 0, 0, 0};
251 locator_info.locator_func = change_locator_state;
252 locator_info.new_state = 1;
254 locator_info.locator_func = change_locator_state;
255 locator_info.new_state = 0;
257 locator_info.locator_func = display_locator_state;
260 locator_info.name = locator_name;
262 err = picl_walk_tree_by_class(rooth, "led", &locator_info,
272 if (locator_info.found == 0) {
277 if (locator_info.err != PICL_SUCCESS)