4becc237ee
- photocard.py: fixed broken import statement (bsc#1071255) * added photocard-fix-import-error-for-pcardext.patch * spec file: fixed dependency for dbus-1-python (Leap42.2) - Use python3 on tumbleweed and SLE15/Leap15 (bsc#1071255) * add pcardext-python3-fixes.patch * add hplip-misc-missing-includes-and-definitions.patch * hp_ipp.h-add-missing-prototypes.patch * spec file: replace "/usr/bin/env python" and "/usr/bin/python" with desired interpreter * spec file: add py2/py3 selection macros * spec file: dropped python-openssl build dependency (not needed anymore) OBS-URL: https://build.opensuse.org/request/show/589977 OBS-URL: https://build.opensuse.org/package/show/Printing/hplip?expand=0&rev=151
37 lines
1.3 KiB
Diff
37 lines
1.3 KiB
Diff
From e69884e9581d3c6013389ac0efa4e3778dbbee68 Mon Sep 17 00:00:00 2001
|
|
From: Martin Wilck <mwilck@suse.com>
|
|
Date: Wed, 21 Mar 2018 23:56:41 +0100
|
|
Subject: [PATCH] hp_ipp.h: add missing prototypes
|
|
|
|
---
|
|
protocol/hp_ipp.h | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/protocol/hp_ipp.h b/protocol/hp_ipp.h
|
|
index 3853f8432dae..24daf8b37a9a 100644
|
|
--- a/protocol/hp_ipp.h
|
|
+++ b/protocol/hp_ipp.h
|
|
@@ -149,6 +149,7 @@ int auth_cancel_req = 0; // 0--> authentication cancel is not requested,
|
|
|
|
|
|
http_t* acquireCupsInstance();
|
|
+void _releaseCupsInstance();
|
|
const char *getCupsErrorString(int status);
|
|
void freePrinterList(printer_t *list);
|
|
|
|
@@ -162,6 +163,11 @@ ipp_t * usbDoRequest(ipp_t *request, char* device_uri);
|
|
ipp_t * networkDoRequest(ipp_t *request, char* device_uri);
|
|
ipp_t * getDeviceStatusAttributes(char* device_uri, int *count);
|
|
int getCupsPrinters(printer_t **printer_list);
|
|
+int addCupsPrinter(char *name, char *device_uri, char *location, char *ppd_file,
|
|
+ char *model, char *info);
|
|
+int delCupsPrinter(char *pr_name);
|
|
+int setDefaultCupsPrinter(char *pr_name);
|
|
+int controlCupsPrinter(char *pr_name, int op);
|
|
|
|
HPIPP_RESULT parseResponseHeader(char* header, int *content_length, int *chunked, int* header_size);
|
|
HPIPP_RESULT prepend_http_header(raw_ipp *raw_request);
|
|
--
|
|
2.16.1
|
|
|