| 92 | */ |
| 93 | |
| 94 | static void * /* O - Return value (not used) */ |
| 95 | run_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 |
nothing calls this directly
no test coverage detected