Lines Matching refs:NULL

44 	if (tmp != NULL) {
45 if (tmp->attributes != NULL)
54 if (printers != NULL) {
57 for (i = 0; printers[i] != NULL; i++)
87 papi_attribute_t **request = NULL, **op = NULL, **response = NULL;
88 void *iter = NULL;
90 if ((svc == NULL) || (printers == NULL))
94 if (svc->connection == NULL)
99 ipp_initialize_operational_attributes(svc, &op, NULL, -1);
101 if (requested_attrs != NULL) {
104 for (i = 0; requested_attrs[i] != NULL; i++)
115 op = NULL;
120 NULL, &op)) {
121 printer_t *p = NULL;
123 if ((p = calloc(1, sizeof (*p))) == NULL)
127 op = NULL;
143 printer_t *p = NULL;
144 papi_attribute_t **request = NULL, **op = NULL, **response = NULL;
146 if ((svc == NULL) || (name == NULL) || (printer == NULL))
150 if (svc->connection == NULL)
154 if ((*printer = p = calloc(1, sizeof (*p))) == NULL)
161 if (requested_attrs != NULL) {
164 for (i = 0; requested_attrs[i] != NULL; i++)
175 op = NULL;
176 papiAttributeListGetCollection(response, NULL,
190 papi_attribute_t **request = NULL, **op = NULL, **response = NULL;
192 if ((svc == NULL) || (name == NULL))
196 if (svc->connection == NULL)
231 NULL, OPID_ENABLE_PRINTER));
238 NULL, OPID_RESUME_PRINTER));
273 printer_t *p = NULL;
274 papi_attribute_t **request = NULL, **op = NULL, **response = NULL;
276 if ((svc == NULL) || (name == NULL) || (printer == NULL))
280 if (svc->connection == NULL)
284 if ((*printer = p = calloc(1, sizeof (*p))) == NULL)
300 op = NULL;
301 papiAttributeListGetCollection(response, NULL,
313 NULL, OPID_CUPS_DELETE_PRINTER));
322 papi_attribute_t **request = NULL, **op = NULL, **response = NULL;
323 void *iter = NULL;
326 if ((svc == NULL) || (name == NULL))
330 if (svc->connection == NULL)
344 op = NULL;
349 NULL, &op)) {
350 job_t *j = NULL;
352 if ((j = calloc(1, sizeof (*j))) == NULL)
356 op = NULL;
371 papi_attribute_t **request = NULL, **op = NULL, **response = NULL;
372 void *iter = NULL;
374 if ((svc == NULL) || (name == NULL))
378 if (svc->connection == NULL)
386 if (requested_attrs != NULL) {
389 for (i = 0; requested_attrs[i] != NULL; i++)
400 op = NULL;
405 NULL, &op)) {
406 job_t *j = NULL;
408 if ((j = calloc(1, sizeof (*j))) == NULL)
412 op = NULL;
423 papi_attribute_t **result = NULL;
426 if (p != NULL)