CAPS Universe documentation  1.0.4
All you need to know to be successful
libcapsppd-local.h
Go to the documentation of this file.
1#pragma once
2
3/*
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 * (c) 2018 Juergen Borleis <projects@caps-printing.org>
7 *
8 * This library is free software; you can redistribute it and/or modify it under
9 * the terms of the GNU Lesser General Public License as published by the Free
10 * Software Foundation; either version 2.1 of the License, or (at your option)
11 * any later version.
12 *
13 * This library is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
16 * details.
17 */
18#include <libcapsbase.h>
19#include <libcapstable.h>
20
21#ifdef DSO_HIDDEN
22# define DSO_VISIBLE __attribute__ ((visibility("default")))
23#else
24# define DSO_VISIBLE
25#endif /* DSO_HIDDEN */
26
28#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
29
31#define PPD_MAJOR_FORMAT 4
32#define PPD_MINOR_FORMAT 3
33
34#ifdef DEBUG
35# define caps_print_debug(fmt, ...) caps_print_debug_template(fmt, ##__VA_ARGS__)
36#else
37# define caps_print_debug(fmt, ...)
38#endif
39
44#ifdef ENABLE_NLS
45
46# ifndef PACKAGE
47# error "Missing 'PACKAGE' macro: include 'config.h' first"
48# endif /* PACKAGE */
49
50# define _(string) dgettext(PACKAGE, string)
51# include <libintl.h>
52
53#else /* ENABLE_NLS */
54
55# define _(string) (string)
56
57#endif /* ENABLE_NLS */
62#define NLS_(string) (string)
63
72};
73
84 FILE *ppd_file;
85 int fd;
86 const struct caps_ppd_base *cpb;
87};
88
Basic API for everything else of the CAPS universe.
Manage variable arrays.
Basic description of common features a printing device/printing driver can provide.
Definition: libcapsppd.h:322
Manage the content of a PPD file.
Definition: libcapsppd-local.h:70
struct caps_var_table vt
Definition: libcapsppd-local.h:71
Manage PPD information.
Definition: libcapsppd-local.h:82
const struct caps_ppd_base * cpb
Definition: libcapsppd-local.h:86
int fd
Definition: libcapsppd-local.h:85
struct caps_ppd_options_table * db
Definition: libcapsppd-local.h:83
FILE * ppd_file
Definition: libcapsppd-local.h:84
Variable table.
Definition: libcapstable.h:105