Lines Matching refs:resp
76 int (*func)(Action *a, int status, char *resp);
124 static int cb_default(Action *a, int status, char *resp)
127 fprintf(stderr,"FAILED (%s)\n", resp);
225 static int cb_check(Action *a, int status, char *resp, int invert)
233 fprintf(stderr,"FAILED (%s)\n", resp);
247 yes = match(resp, value, count);
258 fprintf(stderr,"Device %s is '%s'.\n", a->cmd + 7, resp);
268 static int cb_require(Action *a, int status, char *resp)
270 return cb_check(a, status, resp, 0);
273 static int cb_reject(Action *a, int status, char *resp)
275 return cb_check(a, status, resp, 1);
291 static int cb_display(Action *a, int status, char *resp)
294 fprintf(stderr, "%s FAILED (%s)\n", a->cmd, resp);
297 fprintf(stderr, "%s: %s\n", (char*) a->data, resp);
310 static int cb_save(Action *a, int status, char *resp)
313 fprintf(stderr, "%s FAILED (%s)\n", a->cmd, resp);
316 strncpy(a->data, resp, a->size);
329 static int cb_do_nothing(Action *a __unused, int status __unused, char *resp __unused)
370 char resp[FB_RESPONSE_SZ+1];
376 resp[FB_RESPONSE_SZ] = 0;
395 status = fb_command_response(usb, a->cmd, resp);
396 status = a->func(a, status, status ? fb_get_error() : resp);