MCPcopy Create free account
hub / github.com/OpenPrinting/cups / init_data

Function init_data

tools/ipptool.c:2647–2662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2645 */
2646
2647static void
2648init_data(ipptool_test_t *data) /* I - Data */
2649{
2650 memset(data, 0, sizeof(ipptool_test_t));
2651
2652 data->output = IPPTOOL_OUTPUT_LIST;
2653 data->outfile = cupsFileStdout();
2654 data->family = AF_UNSPEC;
2655 data->def_transfer = IPPTOOL_TRANSFER_AUTO;
2656 data->def_version = 11;
2657 data->errors = cupsArrayNew3(NULL, NULL, NULL, 0, (cups_acopy_func_t)strdup, (cups_afree_func_t)free);
2658 data->pass = 1;
2659 data->prev_pass = 1;
2660 data->request_id = (CUPS_RAND() % 1000) * 137;
2661 data->show_header = 1;
2662}
2663
2664
2665/*

Callers 1

mainFunction · 0.85

Calls 2

cupsFileStdoutFunction · 0.85
cupsArrayNew3Function · 0.85

Tested by

no test coverage detected