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

Function run_query

cups/testthreads.c:94–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 */
93
94static void * /* O - Return value (not used) */
95run_query(cups_dest_t *dest) /* I - Destination to query */
96{
97 http_t *http; /* Connection to destination */
98 cups_dinfo_t *dinfo; /* Destination info */
99 unsigned dflags = CUPS_DEST_FLAGS_NONE;
100 /* Destination flags */
101
102
103 if ((http = cupsConnectDest(dest, dflags, 300, NULL, NULL, 0, NULL, NULL)) == NULL)
104 {
105 printf("testthreads: Unable to connect to destination \"%s\": %s\n", dest->name, cupsLastErrorString());
106 return (NULL);
107 }
108
109 if ((dinfo = cupsCopyDestInfo(http, dest)) == NULL)
110 {
111 printf("testdest: Unable to get information for destination \"%s\": %s\n", dest->name, cupsLastErrorString());
112 return (NULL);
113 }
114
115 printf("\n%s:\n", dest->name);
116
117 show_supported(http, dest, dinfo, NULL, NULL);
118
119 return (NULL);
120}
121
122
123

Callers

nothing calls this directly

Calls 4

cupsConnectDestFunction · 0.85
cupsLastErrorStringFunction · 0.85
cupsCopyDestInfoFunction · 0.85
show_supportedFunction · 0.70

Tested by

no test coverage detected