Lines Matching refs:config
257 struct dpv_config *config; in main() local
264 if ((config = malloc(config_size)) == NULL) in main()
266 memset((void *)(config), '\0', config_size); in main()
275 if (config->aprompt == NULL) { in main()
276 config->aprompt = malloc(DPV_APROMPT_MAX); in main()
277 if (config->aprompt == NULL) in main()
280 snprintf(config->aprompt, DPV_APROMPT_MAX, "%s", in main()
284 if (config->backtitle != NULL) in main()
285 free((char *)config->backtitle); in main()
286 config->backtitle = malloc(strlen(optarg) + 1); in main()
287 if (config->backtitle == NULL) in main()
289 *(config->backtitle) = '\0'; in main()
290 strcat(config->backtitle, optarg); in main()
294 config->debug = debug; in main()
297 config->display_type = DPV_DISPLAY_DIALOG; in main()
303 config->status_solo = optarg; in main()
306 config->status_many = optarg; in main()
309 config->keep_tite = TRUE; in main()
315 config->label_size = in main()
317 if (config->label_size == 0 && errno == EINVAL) in main()
320 else if (config->label_size < -1) in main()
321 config->label_size = -1; in main()
328 config->output_type = DPV_OUTPUT_FILE; in main()
329 config->output = optarg; in main()
332 config->display_limit = in main()
334 if (config->display_limit == 0 && errno == EINVAL) in main()
337 else if (config->display_limit < 0) in main()
338 config->display_limit = -1; in main()
342 config->options |= DPV_NO_OVERRUN; in main()
345 if (config->pprompt == NULL) { in main()
346 config->pprompt = malloc(DPV_PPROMPT_MAX + 2); in main()
347 if (config->pprompt == NULL) in main()
351 snprintf(config->pprompt, DPV_PPROMPT_MAX, "%s", in main()
355 config->pbar_size = in main()
357 if (config->pbar_size == 0 && errno == EINVAL) in main()
360 else if (config->pbar_size < -1) in main()
361 config->pbar_size = -1; in main()
364 if (config->title != NULL) in main()
365 free(config->title); in main()
366 config->title = malloc(strlen(optarg) + 1); in main()
367 if (config->title == NULL) in main()
369 *(config->title) = '\0'; in main()
370 strcat(config->title, optarg); in main()
373 config->options |= DPV_TEST_MODE; in main()
376 config->status_updates_per_second = in main()
378 if (config->status_updates_per_second == 0 && in main()
384 config->options |= DPV_WIDE_MODE; in main()
388 config->output_type = DPV_OUTPUT_SHELL; in main()
389 config->output = optarg; in main()
392 config->display_type = DPV_DISPLAY_XDIALOG; in main()
449 if (config->display_type == DPV_DISPLAY_LIBDIALOG) { in main()
456 config->status_solo = LINE_STATUS_SOLO; in main()
457 config->status_many = LINE_STATUS_SOLO; in main()
458 config->action = operate_on_lines; in main()
460 config->status_solo = BYTE_STATUS_SOLO; in main()
461 config->status_many = BYTE_STATUS_SOLO; in main()
462 config->action = operate_on_bytes; in main()
468 if (dpv(config, file_list) != 0 && debug) in main()
471 if (!config->keep_tite) in main()