CAPS Universe documentation  1.0.4
All you need to know to be successful
hl2-series.h
Go to the documentation of this file.
1#pragma once
2/*
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 *
5 * (c) 2022 Juergen Borleis <projects@caps-printing.org>
6 *
7 * This program is free software; you can redistribute it and/or modify it under
8 * 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#include <libcapsbase.h>
13#include <libcapsppd-api.h>
14#include <libcapsdriver.h>
15
16#include "hl-series.h"
17
32struct hl2_drv {
33 /* must be the first one */
34 struct hl_drv base;
35 struct hl_job_options job_options;
36};
37
43static inline struct hl2_drv *to_hl2_drv(void *d) { return (struct hl2_drv *)d; }
44
49
#define __nonnull(params)
Definition: libcapsbase.h:84
struct caps_ppd_base * hl21_driver_submodule_init(struct hl2_drv *t1)
Definition: brother-hl21.c:178
static struct hl2_drv * to_hl2_drv(void *d)
Definition: hl2-series.h:43
const struct caps_ppd_media_margins hl_group2_printable_margins
Definition: hl-margins.c:108
struct caps_ppd_base * hl20_driver_submodule_init(struct hl2_drv *t1)
Definition: brother-hl20.c:137
const struct caps_ppd_media_margins hl_group1_printable_margins
Definition: hl-margins.c:89
const struct caps_ppd_media_size hl_group2_printable_media
Definition: hl-margins.c:59
const struct caps_ppd_media_size hl_group1_printable_media
Definition: hl-margins.c:30
Basic API for everything else of the CAPS universe.
Generic printer driver specific API to simplify drivers.
API declaration to read-in external PPD files and handle PPD file creation on-the-fly.
Basic description of common features a printing device/printing driver can provide.
Definition: libcapsppd.h:322
Definition to calculate the printable area on all printing media.
Definition: libcapsppd.h:255
Definition of the min/max printing medium the manual feed can handle.
Definition: libcapsppd.h:242
Definition: hl2-series.h:32
struct hl_drv base
Definition: hl2-series.h:34
struct hl_job_options job_options
Definition: hl2-series.h:35