summaryrefslogtreecommitdiff
path: root/bjnp-commands.h
diff options
context:
space:
mode:
authorTill Kamppeter <till.kamppeter@gmail.com>2016-02-13 22:22:24 -0200
committerTill Kamppeter <till.kamppeter@gmail.com>2016-02-13 22:22:24 -0200
commitaa40a1e8fe0c4ed29d21c5f79e682ac7bef1c33f (patch)
tree66996e1a8b1ad790b09c0890ac7986873b7d435a /bjnp-commands.h
parent879e6db06338166657609930768f76d8d7e7afbb (diff)
Imported Upstream version 2.0
Diffstat (limited to 'bjnp-commands.h')
-rw-r--r--bjnp-commands.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/bjnp-commands.h b/bjnp-commands.h
new file mode 100644
index 0000000..49dc2b3
--- /dev/null
+++ b/bjnp-commands.h
@@ -0,0 +1,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
+