summaryrefslogtreecommitdiff
path: root/bjnp-commands.h
blob: 49dc2b36e34ff1effec6829843768852dc269dd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Low level TCP and UDP command function definitions for
 * bjnp backend for the Common UNIX Printing System (CUPS).
 * Copyright 2008-2014 by Louis Lagendijk
 *
 * This program 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; version 2 only.
 *
 * This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#ifndef _CUPS_BJNP_COMMANDS_H_
#define _CUPS_BJNP_COMMANDS_H_

/*
 * bjnp-commands.c
 */
void clear_cmd(bjnp_command_t *cmd);
int bjnp_printer_set_command_header(printer_t *printer, bjnp_command_t *cmd,
                            char cmd_code, int payload_len);
void bjnp_defaults_set_command_header(bjnp_command_t *cmd,
                            char cmd_code, int payload_len);
int get_printer_id(http_addr_t *addr, char *model, char *IEEE1284_id);
int bjnp_get_status(printer_t *printer, char *status_buf);
int bjnp_send_job_details(http_addr_t *addr, const char *user, const char *title);
int bjnp_send_close(printer_t *printer);
#endif