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

Function httpSetDefaultField

cups/http.c:2581–2595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2579 */
2580
2581void
2582httpSetDefaultField(http_t *http, /* I - HTTP connection */
2583 http_field_t field, /* I - Field index */
2584 const char *value)/* I - Value */
2585{
2586 DEBUG_printf(("httpSetDefaultField(http=%p, field=%d(%s), value=\"%s\")", (void *)http, field, http_fields[field], value));
2587
2588 if (!http || field <= HTTP_FIELD_UNKNOWN || field >= HTTP_FIELD_MAX)
2589 return;
2590
2591 if (http->default_fields[field])
2592 free(http->default_fields[field]);
2593
2594 http->default_fields[field] = value ? strdup(value) : NULL;
2595}
2596
2597
2598/*

Callers 3

do_monitor_printer_stateFunction · 0.85
do_testsFunction · 0.85
cupsdAcceptClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected