Debian Codegraph @

src/testpattern/printers.c

raw symbols SCIP
1 /*
2 *
3 * Dump the per-printer options for the OpenPrinting database
4 *
5 * Copyright 2000 Robert Krawitz ([email protected])
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the Free
9 * Software Foundation; either version 2 of the License, or (at your option)
10 * any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 * for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 */
20
21 #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:411:9`!
22 #include <config.h>cxx . . $ `<file>/config.h`/
23 #endif
24 #include <stdio.h>
25 #include <gutenprint/gutenprint.h>cxx . . $ `<file>/include/gutenprint/gutenprint.h`/
26 #include <string.h>
27
28 int
29 maincxx . . $ main(afcd3168fc1188a4).(int argc, char **argv)
30 {
31 int i;
32 (void)argc;
33 (void)argv;
34
35 stp_initcxx . . $ stp_init(b126dc7c1de90089).();
36 for (i = 0; i < stp_printer_model_countcxx . . $ stp_printer_model_count(b126dc7c1de90089).(); i++)
37 {
38 const stp_printer_tcxx . . $ stp_printer_t# *p = stp_get_printer_by_indexcxx . . $ stp_get_printer_by_index(2036101347f379c).(i);
39 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(stp_printer_get_familycxx . . $ stp_printer_get_family(b5d6ef9de7e317aa).(p), "ps") &&
40 strcmpcxx . . $ strcmp(5ae29d726ae57f88).(stp_printer_get_familycxx . . $ stp_printer_get_family(b5d6ef9de7e317aa).(p), "raw"))
41 printfcxx . . $ printf(581fddd72a8db8fc).("%d %s %s\n", stp_printer_get_modelcxx . . $ stp_printer_get_model(7a5f2d0743711567).(p),
42 stp_printer_get_familycxx . . $ stp_printer_get_family(b5d6ef9de7e317aa).(p), stp_printer_get_drivercxx . . $ stp_printer_get_driver(b5d6ef9de7e317aa).(p));
43 }
44 return 0;
45 }