CAPS Universe documentation  1.0.4
All you need to know to be successful
management-printers-and-jobs.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) 2021 Jürgen 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 2.1 as published by the Free
10 * Software Foundation.
11 *
12 * This library is distributed in the hope that it will be useful, but WITHOUT
13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
15 * details.
16 */
17
28
34struct caps_job {
36 int fh;
37 char *parameter;
41 /* printing progression info */
45 /* management members */
46 LIST_FIELDS(struct caps_job, list);
47};
48
61 unsigned property;
69 /* Some fixed info about the printer */
71 char *name;
72 char *info;
73 char *location;
74 char *vendor;
75 char *model;
80 /* The state is a moving target */
86 /* management members */
87 LIST_FIELDS(struct caps_printer, list);
88};
int64_t caps_identifier
Definition: libcapsbase.h:323
#define LIST_FIELDS(t, name)
Definition: list.h:23
#define LIST_HEAD(t, name)
Definition: list.h:17
Some declarations used internally only.
Definition: management-printers-and-jobs.h:34
struct object_state_job state
Definition: management-printers-and-jobs.h:39
char * parameter
Definition: management-printers-and-jobs.h:37
struct object_progression_job progression
Definition: management-printers-and-jobs.h:43
caps_identifier id
Definition: management-printers-and-jobs.h:35
time_t last_report_time
Definition: management-printers-and-jobs.h:42
int fh
Definition: management-printers-and-jobs.h:36
Definition: management-printers-and-jobs.h:57
caps_identifier id
Definition: management-printers-and-jobs.h:58
struct caps_job * job_list
Definition: management-printers-and-jobs.h:84
char * name
Definition: management-printers-and-jobs.h:71
char * info
Definition: management-printers-and-jobs.h:72
char * location
Definition: management-printers-and-jobs.h:73
bool state_already_set
Definition: management-printers-and-jobs.h:81
bool info_already_set
Definition: management-printers-and-jobs.h:70
unsigned property
Definition: management-printers-and-jobs.h:61
char * model
Definition: management-printers-and-jobs.h:75
struct object_state_prn state
Definition: management-printers-and-jobs.h:82
struct caps_supported_mime_list document_format_supported
Definition: management-printers-and-jobs.h:76
char * vendor
Definition: management-printers-and-jobs.h:74
int ppd_file_handle
Definition: management-printers-and-jobs.h:78
Definition: libcapsppcommon.h:166
Print job progression information.
Definition: printing-coordinator-local.h:104
Print job state information for internal use.
Definition: printing-coordinator-local.h:93
Printer state information for internal use.
Definition: printing-coordinator-local.h:82