Debian Codegraph @

test/gen-printer-list.c

raw symbols SCIP
1 /*
2 *
3 * Test pattern generator for Gutenprint
4 *
5 * Copyright 2014 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 /*
22 * Generate list of printers for supported printer list
23 */
24
25 #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:411:9`!
26 #include <config.h>cxx . . $ `<file>/config.h`/
27 #endif
28 #include <stdio.h>
29 #include <gutenprint/gutenprint.h>cxx . . $ `<file>/include/gutenprint/gutenprint.h`/
30 #include <string.h>
31
32 int
33 maincxx . . $ main(afcd3168fc1188a4).(int argc, char **argv)
34 {
35 int i;
36
37 (void)argc;
38 (void)argv;
39
40 stp_initcxx . . $ stp_init(b126dc7c1de90089).();
41 for (i = 0; i < stp_printer_model_countcxx . . $ stp_printer_model_count(b126dc7c1de90089).(); i++)
42 {
43 const stp_printer_tcxx . . $ stp_printer_t# *p = stp_get_printer_by_indexcxx . . $ stp_get_printer_by_index(2036101347f379c).(i);
44 if (strcmpcxx . . $ strcmp(5ae29d726ae57f88).(stp_printer_get_familycxx . . $ stp_printer_get_family(b5d6ef9de7e317aa).(p), "ps") &&
45 strcmpcxx . . $ strcmp(5ae29d726ae57f88).(stp_printer_get_familycxx . . $ stp_printer_get_family(b5d6ef9de7e317aa).(p), "raw"))
46 printfcxx . . $ printf(581fddd72a8db8fc).("<tr><td>%s</td><td>%s</td><td>%s</td></tr>\n",
47 stp_printer_get_long_namecxx . . $ stp_printer_get_long_name(b5d6ef9de7e317aa).(p),
48 stp_printer_get_drivercxx . . $ stp_printer_get_driver(b5d6ef9de7e317aa).(p),
49 stp_printer_get_commentcxx . . $ stp_printer_get_comment(b5d6ef9de7e317aa).(p) ? stp_printer_get_commentcxx . . $ stp_printer_get_comment(b5d6ef9de7e317aa).(p) : "");
50 }
51 return 0;
52 }