From 18838e644f1149db333c5ee441e025ba4b89283f Mon Sep 17 00:00:00 2001 From: Clemens Fries Date: Sat, 18 Jul 2015 23:33:23 +0200 Subject: Moved code and documentation from landfill to tidy repository. --- src/rastertoql570.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/rastertoql570.h (limited to 'src/rastertoql570.h') diff --git a/src/rastertoql570.h b/src/rastertoql570.h new file mode 100644 index 0000000..7e1fe2d --- /dev/null +++ b/src/rastertoql570.h @@ -0,0 +1,32 @@ +/* rastertoql570.c: a CUPS driver for the QL-570 label printer + * + * Copyright (C) 2015 Clemens Fries + * + * This file is part of rastertoql570. + * + * rastertoql570 is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * rastertoql570 is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with rastertoql570. If not, see . + */ + +#ifndef _RASTERTOQL570_H +#define _RASTERTOQL570_H + +bool backchannel_read_status(ql_status*); +bool init(ql_status*, FILE*); +bool request_status(ql_status*, FILE*); +void wait_for_page_end(); +bool handle_status(ql_status*); +void print_blank_lines(uint32_t count, size_t buffer_size, FILE *device); +void handle_page(cups_raster_t*, cups_page_header2_t, ql_status, unsigned int, FILE*); + +#endif -- cgit