• Home
  • Raw
  • Download

Lines Matching refs:dests

129   cups_dest_t *dests;                   /* Destinations */  member
155 int *num_dests, cups_dest_t **dests);
235 int num_dests, cups_dest_t *dests, int prev,
242 int num_dests, cups_dest_t **dests);
268 cups_dest_t **dests) /* IO - Destinations */ in cupsAddDest() argument
277 if (!name || !dests) in cupsAddDest()
280 if (!cupsGetDest(name, instance, num_dests, *dests)) in cupsAddDest()
282 if (instance && !cupsGetDest(name, NULL, num_dests, *dests)) in cupsAddDest()
285 if ((dest = cups_add_dest(name, instance, &num_dests, dests)) == NULL) in cupsAddDest()
292 parent = cupsGetDest(name, NULL, num_dests, *dests); in cupsAddDest()
811 cups_dest_t **dests) /* IO - Destination array */ in cupsCopyDest() argument
823 if (!dest || num_dests < 0 || !dests) in cupsCopyDest()
831 *dests)) != NULL) in cupsCopyDest()
850 new_dest = cups_add_dest(dest->name, dest->instance, &num_dests, dests); in cupsCopyDest()
855 return (cupsRemoveDest(dest->name, dest->instance, num_dests, dests)); in cupsCopyDest()
1030 cups_dest_t *dests) /* I - Destinations */ in cupsFreeDests() argument
1036 if (num_dests == 0 || dests == NULL) in cupsFreeDests()
1039 for (i = num_dests, dest = dests; i > 0; i --, dest ++) in cupsFreeDests()
1047 free(dests); in cupsFreeDests()
1062 cups_dest_t *dests) /* I - Destinations */ in cupsGetDest() argument
1068 if (num_dests <= 0 || !dests) in cupsGetDest()
1079 if (dests->is_default) in cupsGetDest()
1080 return (dests); in cupsGetDest()
1083 dests ++; in cupsGetDest()
1092 match = cups_find_dest(name, instance, num_dests, dests, -1, &diff); in cupsGetDest()
1095 return (dests + match); in cupsGetDest()
1327 cups_dest_t **dests, /* IO - Destinations */ in _cupsGetDests() argument
1380 …dests=%p, type=%x, mask=%x)", (void *)http, op, ippOpString(op), name, (void *)dests, type, mask)); in _cupsGetDests()
1553 if ((dest = cups_add_dest(printer_name, NULL, &num_dests, dests)) != NULL) in _cupsGetDests()
1600 cupsGetDests(cups_dest_t **dests) /* O - Destinations */ in cupsGetDests() argument
1602 return (cupsGetDests2(CUPS_HTTP_DEFAULT, dests)); in cupsGetDests()
1631 cups_dest_t **dests) /* O - Destinations */ in cupsGetDests2() argument
1646 DEBUG_printf(("cupsGetDests2(http=%p, dests=%p)", (void *)http, (void *)dests)); in cupsGetDests2()
1652 if (!dests) in cupsGetDests2()
1667 *dests = NULL; in cupsGetDests2()
1678 data.dests = NULL; in cupsGetDests2()
1709 memcpy(reals, data.dests, (size_t)num_reals * sizeof(cups_dest_t)); in cupsGetDests2()
1744 if ((dest = cupsGetDest(name, instance, data.num_dests, data.dests)) != NULL) in cupsGetDests2()
1755 …um_dests = cups_get_dests(filename, NULL, NULL, user_default != NULL, data.num_dests, &data.dests); in cupsGetDests2()
1761 …um_dests = cups_get_dests(filename, NULL, NULL, user_default != NULL, data.num_dests, &data.dests); in cupsGetDests2()
1776 if ((dest = cupsGetDest(NULL, NULL, data.num_dests, data.dests)) != NULL) in cupsGetDests2()
1789 data.num_dests = cupsRemoveDest(dest->name, dest->instance, data.num_dests, &data.dests); in cupsGetDests2()
1804 *dests = data.dests; in cupsGetDests2()
1983 cups_dest_t **dests) /* IO - Destinations */ in cupsRemoveDest() argument
1993 if ((dest = cupsGetDest(name, instance, num_dests, *dests)) == NULL) in cupsRemoveDest()
2010 i = (int)(dest - *dests); in cupsRemoveDest()
2030 cups_dest_t *dests) /* I - Destinations */ in cupsSetDefaultDest() argument
2040 if (!name || num_dests <= 0 || !dests) in cupsSetDefaultDest()
2048 for (i = num_dests, dest = dests; i > 0; i --, dest ++) in cupsSetDefaultDest()
2067 cups_dest_t *dests) /* I - Destinations */ in cupsSetDests() argument
2069 cupsSetDests2(CUPS_HTTP_DEFAULT, num_dests, dests); in cupsSetDests()
2085 cups_dest_t *dests) /* I - Destinations */ in cupsSetDests2() argument
2108 if (!num_dests || !dests) in cupsSetDests2()
2184 for (i = num_dests, dest = dests; i > 0; i --, dest ++) in cupsSetDests2()
2288 if ((dest = cupsGetDest(NULL, NULL, num_dests, dests)) != NULL) in cupsSetDests2()
2546 cups_dest_t **dests) /* IO - Destinations */ in cups_add_dest() argument
2560 dest = realloc(*dests, sizeof(cups_dest_t) * (size_t)(*num_dests + 1)); in cups_add_dest()
2565 *dests = dest; in cups_add_dest()
2575 insert = cups_find_dest(name, instance, *num_dests, *dests, *num_dests - 1, in cups_add_dest()
2587 …memmove(*dests + insert + 1, *dests + insert, (size_t)(*num_dests - insert) * sizeof(cups_dest_t)); in cups_add_dest()
2595 dest = *dests + insert; in cups_add_dest()
3548 cups_dest_t *dests = NULL, /* Destinations */ local
3620 num_dests = _cupsGetDests(http, IPP_OP_CUPS_GET_PRINTERS, NULL, &dests, type, mask);
3643 if ((dest = cupsGetDest(name, instance, num_dests, dests)) != NULL)
3647 for (i = num_dests, dest = dests;
3693 cupsFreeDests(num_dests, dests);
3986 cups_dest_t *dests, /* I - Destinations */ argument
4006 if ((diff = cups_compare_dests(&key, dests + prev)) == 0 ||
4045 diff = cups_compare_dests(&key, dests + current);
4062 if ((diff = cups_compare_dests(&key, dests + left)) <= 0)
4066 diff = cups_compare_dests(&key, dests + right);
4096 data->num_dests = cupsRemoveDest(dest->name, dest->instance, data->num_dests, &data->dests);
4104 data->num_dests = cupsCopyDest(dest, data->num_dests, &data->dests);
4171 cups_dest_t **dests) /* IO - Destinations */ argument
4183 …sts=%d, dests=%p)", filename, match_name, match_inst, user_default_set, num_dests, (void *)dests));
4263 dest = *dests;
4265 else if (cupsGetDest(name, NULL, num_dests, *dests) == NULL)
4276 num_dests = cupsAddDest(name, instance, num_dests, dests);
4278 if ((dest = cupsGetDest(name, instance, num_dests, *dests)) == NULL)
4312 (*dests)[i].is_default = 0;