Lines Matching refs:dinfo
21 static void cups_create_localizations(http_t *http, cups_dinfo_t *dinfo);
38 cups_dinfo_t *dinfo, /* I - Destination information */ in cupsLocalizeDestMedia() argument
55 …info=%p, flags=%x, size=%p(\"%s\"))", (void *)http, (void *)dest, (void *)dinfo, flags, (void *)si… in cupsLocalizeDestMedia()
61 if (!http || !dest || !dinfo || !size) in cupsLocalizeDestMedia()
73 db = dinfo->ready_db; in cupsLocalizeDestMedia()
75 db = dinfo->media_db; in cupsLocalizeDestMedia()
102 if (!dinfo->localizations) in cupsLocalizeDestMedia()
103 cups_create_localizations(http, dinfo); in cupsLocalizeDestMedia()
108 if ((match = (_cups_message_t *)cupsArrayFind(dinfo->localizations, &key)) != NULL) in cupsLocalizeDestMedia()
119 if ((match = (_cups_message_t *)cupsArrayFind(dinfo->localizations, &key)) != NULL) in cupsLocalizeDestMedia()
166 …if ((lsource = cupsLocalizeDestValue(http, dest, dinfo, "media-source", mdb->source)) == mdb->sour… in cupsLocalizeDestMedia()
168 …if ((ltype = cupsLocalizeDestValue(http, dest, dinfo, "media-type", mdb->type)) == mdb->type && md… in cupsLocalizeDestMedia()
212 cupsArrayAdd(dinfo->localizations, match); in cupsLocalizeDestMedia()
234 cups_dinfo_t *dinfo, /* I - Destination information */ in cupsLocalizeDestOption() argument
242 …n(http=%p, dest=%p, dinfo=%p, option=\"%s\")", (void *)http, (void *)dest, (void *)dinfo, option)); in cupsLocalizeDestOption()
244 if (!http || !dest || !dinfo) in cupsLocalizeDestOption()
247 if (!dinfo->localizations) in cupsLocalizeDestOption()
248 cups_create_localizations(http, dinfo); in cupsLocalizeDestOption()
251 if ((match = (_cups_message_t *)cupsArrayFind(dinfo->localizations, &key)) != NULL) in cupsLocalizeDestOption()
274 cups_dinfo_t *dinfo, /* I - Destination information */ in cupsLocalizeDestValue() argument
284 …info=%p, option=\"%s\", value=\"%s\")", (void *)http, (void *)dest, (void *)dinfo, option, value)); in cupsLocalizeDestValue()
286 if (!http || !dest || !dinfo) in cupsLocalizeDestValue()
302 return (cupsLocalizeDestMedia(http, dest, dinfo, CUPS_MEDIA_FLAGS_DEFAULT, &size)); in cupsLocalizeDestValue()
305 if (!dinfo->localizations) in cupsLocalizeDestValue()
306 cups_create_localizations(http, dinfo); in cupsLocalizeDestValue()
310 if ((match = (_cups_message_t *)cupsArrayFind(dinfo->localizations, &key)) != NULL) in cupsLocalizeDestValue()
327 cups_dinfo_t *dinfo) /* I - Destination informations */ in cups_create_localizations() argument
348 if ((attr = ippFindAttribute(dinfo->attrs, "printer-strings-uri", in cups_create_localizations()
355 dinfo->localizations = _cupsMessageNew(NULL); in cups_create_localizations()
370 dinfo->localizations = _cupsMessageNew(NULL); in cups_create_localizations()
430 dinfo->localizations = _cupsMessageLoad(tempfile, _CUPS_MESSAGE_STRINGS); in cups_create_localizations()
434 cupsArrayCount(dinfo->localizations))); in cups_create_localizations()