MCPcopy Create free account
hub / github.com/OpenPrinting/cups / ppdFindCustomOption

Function ppdFindCustomOption

cups/ppd-custom.c:29–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 */
28
29ppd_coption_t * /* O - Custom option or NULL */
30ppdFindCustomOption(ppd_file_t *ppd, /* I - PPD file */
31 const char *keyword)/* I - Custom option name */
32{
33 ppd_coption_t key; /* Custom option search key */
34
35
36 if (!ppd)
37 return (NULL);
38
39 strlcpy(key.keyword, keyword, sizeof(key.keyword));
40 return ((ppd_coption_t *)cupsArrayFind(ppd->coptions, &key));
41}
42
43
44/*

Callers 12

mainFunction · 0.85
do_set_optionsFunction · 0.85
get_option_valueFunction · 0.85
list_groupFunction · 0.85
check_translationsFunction · 0.85
ppd_mark_optionFunction · 0.85
ppdPageSizeFunction · 0.85
ppdLocalizeFunction · 0.85
mainFunction · 0.85
_ppdOpenFunction · 0.85
ppd_get_coptionFunction · 0.85
ppdEmitStringFunction · 0.85

Calls 1

cupsArrayFindFunction · 0.85

Tested by 2

check_translationsFunction · 0.68
mainFunction · 0.68