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

Function create_requested_array

scheduler/ipp.c:5832–5866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5830 */
5831
5832static cups_array_t * /* O - Array of attributes or NULL */
5833create_requested_array(ipp_t *request) /* I - IPP request */
5834{
5835 cups_array_t *ra; /* Requested attributes array */
5836
5837
5838 /*
5839 * Create the array for standard attributes...
5840 */
5841
5842 ra = ippCreateRequestedArray(request);
5843
5844 /*
5845 * Add CUPS defaults as needed...
5846 */
5847
5848 if (cupsArrayFind(ra, "printer-defaults"))
5849 {
5850 /*
5851 * Include user-set defaults...
5852 */
5853
5854 char *name; /* Option name */
5855
5856 cupsArrayRemove(ra, "printer-defaults");
5857
5858 for (name = (char *)cupsArrayFirst(CommonDefaults);
5859 name;
5860 name = (char *)cupsArrayNext(CommonDefaults))
5861 if (!cupsArrayFind(ra, name))
5862 cupsArrayAdd(ra, name);
5863 }
5864
5865 return (ra);
5866}
5867
5868
5869/*

Callers 7

get_defaultFunction · 0.85
get_job_attrsFunction · 0.85
get_jobsFunction · 0.85
get_printer_attrsFunction · 0.85
get_printersFunction · 0.85
get_subscription_attrsFunction · 0.85
get_subscriptionsFunction · 0.85

Calls 6

ippCreateRequestedArrayFunction · 0.85
cupsArrayFindFunction · 0.85
cupsArrayRemoveFunction · 0.85
cupsArrayFirstFunction · 0.85
cupsArrayNextFunction · 0.85
cupsArrayAddFunction · 0.85

Tested by

no test coverage detected