• Home
  • Raw
  • Download

Lines Matching refs:num_dests

128   int         num_dests;                /* Number of 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);
267 int num_dests, /* I - Number of destinations */ in cupsAddDest() argument
280 if (!cupsGetDest(name, instance, num_dests, *dests)) in cupsAddDest()
282 if (instance && !cupsGetDest(name, NULL, num_dests, *dests)) in cupsAddDest()
283 return (num_dests); in cupsAddDest()
285 if ((dest = cups_add_dest(name, instance, &num_dests, dests)) == NULL) in cupsAddDest()
286 return (num_dests); in cupsAddDest()
292 parent = cupsGetDest(name, NULL, num_dests, *dests); in cupsAddDest()
318 return (num_dests); in cupsAddDest()
810 int num_dests, /* I - Number of destinations */ in cupsCopyDest() argument
823 if (!dest || num_dests < 0 || !dests) in cupsCopyDest()
824 return (num_dests); in cupsCopyDest()
830 if ((new_dest = cupsGetDest(dest->name, dest->instance, num_dests, in cupsCopyDest()
838 return (num_dests); 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()
869 return (num_dests); in cupsCopyDest()
1029 cupsFreeDests(int num_dests, /* I - Number of 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()
1061 int num_dests, /* I - Number of destinations */ in cupsGetDest() argument
1068 if (num_dests <= 0 || !dests) in cupsGetDest()
1077 while (num_dests > 0) in cupsGetDest()
1082 num_dests --; in cupsGetDest()
1092 match = cups_find_dest(name, instance, num_dests, dests, -1, &diff); in cupsGetDest()
1331 int num_dests = 0; /* Number of destinations */ in _cupsGetDests() local
1553 if ((dest = cups_add_dest(printer_name, NULL, &num_dests, dests)) != NULL) in _cupsGetDests()
1572 return (num_dests); in _cupsGetDests()
1677 data.num_dests = 0; in cupsGetDests2()
1703 if (data.num_dests > 0) in cupsGetDests2()
1705 num_reals = data.num_dests; in cupsGetDests2()
1744 if ((dest = cupsGetDest(name, instance, data.num_dests, data.dests)) != NULL) in cupsGetDests2()
1755 …data.num_dests = cups_get_dests(filename, NULL, NULL, user_default != NULL, data.num_dests, &data.… in cupsGetDests2()
1761 …data.num_dests = cups_get_dests(filename, NULL, NULL, user_default != NULL, data.num_dests, &data.… 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()
1806 if (data.num_dests > 0) in cupsGetDests2()
1809 DEBUG_printf(("1cupsGetDests2: Returning %d destinations.", data.num_dests)); in cupsGetDests2()
1811 return (data.num_dests); in cupsGetDests2()
1982 int num_dests, /* I - Number of destinations */ in cupsRemoveDest() argument
1993 if ((dest = cupsGetDest(name, instance, num_dests, *dests)) == NULL) in cupsRemoveDest()
1994 return (num_dests); in cupsRemoveDest()
2008 num_dests --; in cupsRemoveDest()
2012 if (i < num_dests) in cupsRemoveDest()
2013 memmove(dest, dest + 1, (size_t)(num_dests - i) * sizeof(cups_dest_t)); in cupsRemoveDest()
2015 return (num_dests); in cupsRemoveDest()
2029 int num_dests, /* I - Number of 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()
2066 cupsSetDests(int num_dests, /* I - Number of destinations */ in cupsSetDests() argument
2069 cupsSetDests2(CUPS_HTTP_DEFAULT, num_dests, dests); in cupsSetDests()
2084 int num_dests, /* I - Number of 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()
2545 int *num_dests, /* IO - Number of destinations */ in cups_add_dest() argument
2557 if (*num_dests == 0) in cups_add_dest()
2560 dest = realloc(*dests, sizeof(cups_dest_t) * (size_t)(*num_dests + 1)); in cups_add_dest()
2571 if (*num_dests == 0) in cups_add_dest()
2575 insert = cups_find_dest(name, instance, *num_dests, *dests, *num_dests - 1, in cups_add_dest()
2586 if (insert < *num_dests) in cups_add_dest()
2587 …memmove(*dests + insert + 1, *dests + insert, (size_t)(*num_dests - insert) * sizeof(cups_dest_t)); in cups_add_dest()
2589 (*num_dests) ++; in cups_add_dest()
3547 num_dests; /* Number of 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);
3985 int num_dests, /* I - Number of destinations */ argument
4008 (diff > 0 && prev == (num_dests - 1)))
4029 right = num_dests - 1;
4039 right = num_dests - 1;
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);
4170 int num_dests, /* I - Number of destinations */ argument
4183 …sts=%d, dests=%p)", filename, match_name, match_inst, user_default_set, num_dests, (void *)dests));
4190 return (num_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)
4311 for (i = 0; i < num_dests; i ++)
4324 return (num_dests);