Home
last modified time | relevance | path

Searched refs:ppd (Results 1 – 25 of 50) sorted by relevance

12

/external/libcups/cups/
Dppd-mark.c31 static void ppd_debug_marked(ppd_file_t *ppd, const char *title);
33 # define ppd_debug_marked(ppd,title) argument
35 static void ppd_defaults(ppd_file_t *ppd, ppd_group_t *g);
36 static void ppd_mark_choices(ppd_file_t *ppd, const char *s);
37 static void ppd_mark_option(ppd_file_t *ppd, const char *option,
52 ppd_file_t *ppd, /* I - PPD file */ in cupsMarkOptions() argument
76 if (!ppd || num_options <= 0 || !options) in cupsMarkOptions()
79 ppd_debug_marked(ppd, "Before..."); in cupsMarkOptions()
97 !ppd->cache) in cupsMarkOptions()
103 ppd->cache = _ppdCacheCreateWithPPD(ppd); in cupsMarkOptions()
[all …]
Dppd-page.c32 ppdPageSize(ppd_file_t *ppd, /* I - PPD file record */ in ppdPageSize() argument
44 DEBUG_printf(("2ppdPageSize(ppd=%p, name=\"%s\")", ppd, name)); in ppdPageSize()
46 if (!ppd) in ppdPageSize()
54 if (!strncmp(name, "Custom.", 7) && ppd->variable_sizes) in ppdPageSize()
60 for (i = ppd->num_sizes, size = ppd->sizes; i > 0; i --, size ++) in ppdPageSize()
118 size->left = ppd->custom_margins[0]; in ppdPageSize()
119 size->bottom = ppd->custom_margins[1]; in ppdPageSize()
120 size->right = (float)(w - ppd->custom_margins[2]); in ppdPageSize()
121 size->top = (float)(l - ppd->custom_margins[3]); in ppdPageSize()
127 if ((coption = ppdFindCustomOption(ppd, "PageSize")) != NULL) in ppdPageSize()
[all …]
Dppd.c74 static ppd_attr_t *ppd_add_attr(ppd_file_t *ppd, const char *name,
78 static ppd_size_t *ppd_add_size(ppd_file_t *ppd, const char *name);
85 static void ppd_free_filters(ppd_file_t *ppd);
88 static ppd_coption_t *ppd_get_coption(ppd_file_t *ppd, const char *name);
92 static ppd_group_t *ppd_get_group(ppd_file_t *ppd, const char *name,
108 static int ppd_update_filters(ppd_file_t *ppd,
117 ppdClose(ppd_file_t *ppd) /* I - PPD file record */ in ppdClose() argument
132 if (!ppd) in ppdClose()
139 _cupsStrFree(ppd->lang_encoding); in ppdClose()
140 _cupsStrFree(ppd->nickname); in ppdClose()
[all …]
Dtestppd.c147 ppd_file_t *ppd; /* PPD file loaded from disk */ in main() local
189 if ((ppd = _ppdOpenFile("test.ppd", _PPD_LOCALIZATION_ALL)) != NULL) in main()
204 if ((attr = ppdFindAttr(ppd, "cupsTest", NULL)) == NULL) in main()
218 if ((attr = ppdFindNextAttr(ppd, "cupsTest", NULL)) == NULL) in main()
232 if ((attr = ppdFindAttr(ppd, "cupsTest", "Foo")) == NULL) in main()
246 if ((attr = ppdFindNextAttr(ppd, "cupsTest", "Foo")) != NULL) in main()
255 ppdMarkDefaults(ppd); in main()
257 if ((conflicts = ppdConflicts(ppd)) == 0) in main()
266 if ((s = ppdEmitString(ppd, PPD_ORDER_ANY, 0.0)) != NULL && in main()
283 ppdMarkOption(ppd, "PageSize", "Custom.400x500"); in main()
[all …]
Dppd-localize.c51 ppdLocalize(ppd_file_t *ppd) /* I - PPD file */ in ppdLocalize() argument
69 DEBUG_printf(("ppdLocalize(ppd=%p)", ppd)); in ppdLocalize()
71 if (!ppd) in ppdLocalize()
84 for (i = ppd->num_groups, group = ppd->groups; i > 0; i --, group ++) in ppdLocalize()
86 if ((locattr = _ppdLocalizedAttr(ppd, "Translation", group->name, in ppdLocalize()
92 if ((locattr = _ppdLocalizedAttr(ppd, "Translation", option->keyword, in ppdLocalize()
101 !ppdFindCustomOption(ppd, option->keyword)) in ppdLocalize()
102 locattr = _ppdLocalizedAttr(ppd, option->keyword, choice->choice, in ppdLocalize()
108 locattr = _ppdLocalizedAttr(ppd, ckeyword, "True", ll_CC); in ppdLocalize()
121 for (coption = (ppd_coption_t *)cupsArrayFirst(ppd->coptions); in ppdLocalize()
[all …]
Dppd-emit.c36 static void ppd_handle_media(ppd_file_t *ppd);
57 ppdCollect(ppd_file_t *ppd, /* I - PPD file data */ in ppdCollect() argument
61 return (ppdCollect2(ppd, section, 0.0, choices)); in ppdCollect()
76 ppdCollect2(ppd_file_t *ppd, /* I - PPD file data */ in ppdCollect2() argument
90 ppd, section, min_order, choices)); in ppdCollect2()
92 if (!ppd || !choices) in ppdCollect2()
106 (size_t)cupsArrayCount(ppd->marked))) == NULL) in ppdCollect2()
112 if ((orders = calloc(sizeof(float), (size_t)cupsArrayCount(ppd->marked))) == NULL) in ppdCollect2()
123 for (c = (ppd_choice_t *)cupsArrayFirst(ppd->marked); in ppdCollect2()
125 c = (ppd_choice_t *)cupsArrayNext(ppd->marked)) in ppdCollect2()
[all …]
Dppd.h368 extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _PPD_DEPRECAT…
370 extern void ppdClose(ppd_file_t *ppd) _PPD_DEPRECATED;
371 extern int ppdCollect(ppd_file_t *ppd, ppd_section_t section,
373 extern int ppdConflicts(ppd_file_t *ppd) _PPD_DEPRECATED;
374 extern int ppdEmit(ppd_file_t *ppd, FILE *fp,
376 extern int ppdEmitFd(ppd_file_t *ppd, int fd,
378 extern int ppdEmitJCL(ppd_file_t *ppd, FILE *fp, int job_id,
383 extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd,
386 extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword)
388 extern int ppdIsMarked(ppd_file_t *ppd, const char *keyword,
[all …]
Dppd-conflicts.c45 static void ppd_load_constraints(ppd_file_t *ppd);
46 static cups_array_t *ppd_test_constraints(ppd_file_t *ppd,
71 ppd_file_t *ppd, /* I - PPD file */ in cupsGetConflicts() argument
91 if (!ppd || !option || !choice || !options) in cupsGetConflicts()
98 active = ppd_test_constraints(ppd, option, choice, 0, NULL, in cupsGetConflicts()
118 else if ((marked = ppdFindMarkedChoice(ppd, in cupsGetConflicts()
170 ppd_file_t *ppd, /* I - PPD file */ in cupsResolveConflicts() argument
203 if (!ppd || !num_options || !options || (option == NULL) != (choice == NULL)) in cupsResolveConflicts()
223 cupsArraySave(ppd->sorted_attrs); in cupsResolveConflicts()
230 (active = ppd_test_constraints(ppd, NULL, NULL, num_newopts, newopts, in cupsResolveConflicts()
[all …]
Dtestpwg.c27 static int test_pagesize(_ppd_cache_t *pc, ppd_file_t *ppd,
29 static int test_ppd_cache(_ppd_cache_t *pc, ppd_file_t *ppd);
42 ppd_file_t *ppd; /* PPD file */ in main() local
62 if ((ppd = ppdOpenFile(ppdfile)) == NULL) in main()
78 if ((pc = _ppdCacheCreateWithPPD(ppd)) == NULL) in main()
86 status += test_ppd_cache(pc, ppd); in main()
352 ppd_file_t *ppd, /* I - PPD file */ in test_pagesize() argument
360 if (ppdPageSize(ppd, ppdsize)) in test_pagesize()
410 ppd_file_t *ppd) /* I - PPD file */ in test_ppd_cache() argument
460 strcmp(size2->map.ppd, size->map.ppd) || in test_ppd_cache()
[all …]
Dppd-attr.c29 ppdFindAttr(ppd_file_t *ppd, /* I - PPD file data */ in ppdFindAttr() argument
37 DEBUG_printf(("2ppdFindAttr(ppd=%p, name=\"%s\", spec=\"%s\")", ppd, name, in ppdFindAttr()
44 if (!ppd || !name || ppd->num_attrs == 0) in ppdFindAttr()
58 if ((attr = (ppd_attr_t *)cupsArrayFind(ppd->sorted_attrs, &key)) != NULL) in ppdFindAttr()
68 if ((attr = (ppd_attr_t *)cupsArrayNext(ppd->sorted_attrs)) != NULL && in ppdFindAttr()
86 ppdFindNextAttr(ppd_file_t *ppd, /* I - PPD file data */ in ppdFindNextAttr() argument
97 if (!ppd || !name || ppd->num_attrs == 0) in ppdFindNextAttr()
104 while ((attr = (ppd_attr_t *)cupsArrayNext(ppd->sorted_attrs)) != NULL) in ppdFindNextAttr()
116 cupsArrayIndex(ppd->sorted_attrs, cupsArrayCount(ppd->sorted_attrs)); in ppdFindNextAttr()
Dppd-cache.c41 static void pwg_unppdize_name(const char *ppd, char *name, size_t namesize,
55 ppd_file_t *ppd, /* I - PPD file */ in _cupsConvertOptions() argument
244 if ((choice = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL) in _cupsConvertOptions()
255 if ((choice = ppdFindMarkedChoice(ppd, "ColorModel")) != NULL) in _cupsConvertOptions()
277 else if ((choice = ppdFindMarkedChoice(ppd, "cupsPrintQuality")) != NULL) in _cupsConvertOptions()
289 else if (pc->sides_option && (choice = ppdFindMarkedChoice(ppd, pc->sides_option)) != NULL) in _cupsConvertOptions()
627 map->ppd = _cupsStrAlloc(ppd_keyword); in _ppdCacheCreateWithFile()
682 size->map.ppd = _cupsStrAlloc(ppd_keyword); in _ppdCacheCreateWithFile()
766 map->ppd = _cupsStrAlloc(ppd_keyword); in _ppdCacheCreateWithFile()
815 map->ppd = _cupsStrAlloc(ppd_keyword); in _ppdCacheCreateWithFile()
[all …]
DMakefile61 ppd.o \
62 ppd-attr.o \
63 ppd-cache.o \
64 ppd-conflicts.o \
65 ppd-custom.o \
66 ppd-emit.o \
67 ppd-localize.o \
68 ppd-mark.o \
69 ppd-page.o \
70 ppd-util.o \
[all …]
Dtestcache.c33 ppd_file_t *ppd; /* PPD file */ in main() local
49 if ((ppd = ppdOpenFile(ppdfile)) == NULL) in main()
61 if ((pc = _ppdCacheCreateWithPPD(ppd)) == NULL) in main()
70 ppdMarkDefaults(ppd); in main()
71 cupsMarkOptions(ppd, num_options, options); in main()
86 if ((ppd_bin = ppdFindMarkedChoice(ppd, "OutputBin")) != NULL && in main()
Dtestconflicts.c33 ppd_file_t *ppd; /* PPD file loaded from disk */ in main() local
50 if ((ppd = ppdOpenFile(argv[1])) == NULL) in main()
62 ppdMarkDefaults(ppd); in main()
72 if (!cupsResolveConflicts(ppd, option, choice, &num_options, &options)) in main()
115 ppdMarkOption(ppd, option, choice); in main()
116 if (cupsMarkOptions(ppd, num_options, options)) in main()
Dtestlang.c108 ppd_file_t *ppd; /* PPD file */ in main() local
112 if ((ppd = ppdOpenFile(argv[2])) == NULL) in main()
119 ppdLocalize(ppd); in main()
121 if ((option = ppdFindOption(ppd, "PageSize")) == NULL) in main()
141 ppdClose(ppd); in main()
DDependencies5 ../cups/cups.h file.h pwg.h thread-private.h ppd.h raster.h \
21 ../cups/cups.h file.h pwg.h thread-private.h backend.h ppd.h raster.h
140 ppd.o: ppd.c cups-private.h string-private.h ../config.h debug-private.h \
144 file.h pwg.h thread-private.h ppd-private.h ../cups/ppd.h raster.h
145 ppd-attr.o: ppd-attr.c cups-private.h string-private.h ../config.h \
149 ../cups/cups.h file.h pwg.h thread-private.h ppd-private.h \
150 ../cups/ppd.h raster.h
151 ppd-cache.o: ppd-cache.c cups-private.h string-private.h ../config.h \
155 ../cups/cups.h file.h pwg.h thread-private.h ppd-private.h \
156 ../cups/ppd.h raster.h
[all …]
Dbackend.c50 ppd_file_t *ppd; /* PPD file */ in cupsBackendDeviceURI() local
67 if ((ppd = ppdOpenFile(getenv("PPD"))) != NULL) in cupsBackendDeviceURI()
69 if ((ppdattr = ppdFindAttr(ppd, "cupsIPPFaxOut", NULL)) != NULL && in cupsBackendDeviceURI()
73 ppdClose(ppd); in cupsBackendDeviceURI()
/external/libcups/filter/
Dcommandtops.c26 static int auto_configure(ppd_file_t *ppd, const char *user);
27 static void begin_ps(ppd_file_t *ppd, const char *user);
28 static void end_ps(ppd_file_t *ppd);
29 static void print_self_test_page(ppd_file_t *ppd, const char *user);
30 static void report_levels(ppd_file_t *ppd, const char *user);
46 ppd_file_t *ppd; /* PPD file */ in main() local
70 if ((ppd = ppdOpenFile(getenv("PPD"))) == NULL) in main()
104 status |= auto_configure(ppd, argv[2]); in main()
106 print_self_test_page(ppd, argv[2]); in main()
108 report_levels(ppd, argv[2]); in main()
[all …]
Drastertolabel.c79 void Setup(ppd_file_t *ppd);
80 void StartPage(ppd_file_t *ppd, cups_page_header2_t *header);
81 void EndPage(ppd_file_t *ppd, cups_page_header2_t *header);
83 void OutputLine(ppd_file_t *ppd, cups_page_header2_t *header, unsigned y);
93 Setup(ppd_file_t *ppd) /* I - PPD file */ in Setup() argument
102 if (ppd) in Setup()
103 ModelNumber = ppd->model_number; in Setup()
155 StartPage(ppd_file_t *ppd, /* I - PPD file */ in StartPage() argument
206 if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && in StartPage()
249 if ((choice = ppdFindMarkedChoice(ppd, "zePrintRate")) != NULL && in StartPage()
[all …]
Dcommon.c50 ppd_file_t *ppd; /* PPD file */ in SetCommonOptions() local
59 ppd = ppdOpenFile(getenv("PPD")); in SetCommonOptions()
61 ppdMarkDefaults(ppd); in SetCommonOptions()
62 cupsMarkOptions(ppd, num_options, options); in SetCommonOptions()
64 if ((pagesize = ppdPageSize(ppd, NULL)) != NULL) in SetCommonOptions()
77 if (ppd != NULL) in SetCommonOptions()
79 ColorDevice = ppd->color_device; in SetCommonOptions()
80 LanguageLevel = ppd->language_level; in SetCommonOptions()
88 if (ppd && ppd->landscape > 0) in SetCommonOptions()
189 if (ppdIsMarked(ppd, "Duplex", "DuplexNoTumble") || in SetCommonOptions()
[all …]
Dpstops.c143 ppd_file_t *ppd, char *line,
146 ppd_file_t *ppd, char *line, ssize_t linelen,
149 ppd_file_t *ppd, char *line,
152 ppd_file_t *ppd, int number, char *line,
155 ppd_file_t *ppd, char *line,
158 ppd_file_t *ppd, char *line,
161 ppd_file_t *ppd, int number, char *line,
163 static void do_prolog(pstops_doc_t *doc, ppd_file_t *ppd);
164 static void do_setup(pstops_doc_t *doc, ppd_file_t *ppd);
170 static int include_feature(ppd_file_t *ppd, const char *line,
[all …]
Drastertohp.c50 void StartPage(ppd_file_t *ppd, cups_page_header2_t *header);
80 StartPage(ppd_file_t *ppd, /* I - PPD file */ in StartPage() argument
121 if (Duplex && ppd && ppd->model_number == 2) in StartPage()
133 if (!Duplex || (Page & 1) || (ppd && ppd->model_number == 2)) in StartPage()
207 (!ppd || ppd->model_number != 2 || header->HWResolution[0] == 600)) in StartPage()
211 if (!ppd || ppd->model_number != 2) in StartPage()
219 else if (!ppd || ppd->model_number != 2) in StartPage()
226 if (ppd && ppd->model_number == 2) in StartPage()
312 if (ppd) in StartPage()
314 10.0 * (ppd->sizes[0].length - ppd->sizes[0].top)); in StartPage()
[all …]
Drastertoepson.c75 void StartPage(const ppd_file_t *ppd, const cups_page_header2_t *header);
113 const ppd_file_t *ppd, /* I - PPD file */ in StartPage() argument
148 if (ppd && ppd->nickname && strstr(ppd->nickname, "OKIDATA") != NULL) in StartPage()
244 if (ppd) in StartPage()
245 t = (int)((ppd->sizes[1].length - ppd->sizes[1].top) * header->HWResolution[1] / 72.0); in StartPage()
978 ppd_file_t *ppd; /* PPD file */ in main() local
1050 ppd = ppdOpenFile(getenv("PPD")); in main()
1051 if (!ppd) in main()
1066 Model = ppd->model_number; in main()
1094 StartPage(ppd, &header); in main()
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_tpacket.c238 union frame_map ppd; in walk_v1_v2_rx() local
256 ppd.raw = ring->rd[frame_num].iov_base; in walk_v1_v2_rx()
260 test_payload((uint8_t *) ppd.raw + ppd.v1->tp_h.tp_mac, in walk_v1_v2_rx()
261 ppd.v1->tp_h.tp_snaplen); in walk_v1_v2_rx()
262 total_bytes += ppd.v1->tp_h.tp_snaplen; in walk_v1_v2_rx()
266 test_payload((uint8_t *) ppd.raw + ppd.v2->tp_h.tp_mac, in walk_v1_v2_rx()
267 ppd.v2->tp_h.tp_snaplen); in walk_v1_v2_rx()
268 total_bytes += ppd.v2->tp_h.tp_snaplen; in walk_v1_v2_rx()
275 __v1_v2_rx_user_ready(ppd.raw, ring->version); in walk_v1_v2_rx()
358 union frame_map ppd; in walk_v1_v2_tx() local
[all …]
/external/libcups/
DAndroid.mk29 cups/options.c cups/ppd.c cups/ppd-attr.c cups/ppd-cache.c \
30 cups/ppd-conflicts.c cups/ppd-custom.c cups/ppd-emit.c \
31 cups/ppd-localize.c cups/ppd-mark.c cups/ppd-page.c cups/ppd-util.c \

12