blob: 276d0257858599a924eb1cb08b08702fefe0d212 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 33454817880fa57b2226dd40b724e5c3d6074aca Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 2 Sep 2022 17:58:33 -0700
4Subject: [PATCH 4/4] Define missing prototype for functions
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 prnt/cupsext/cupsext.c | 1 +
9 protocol/hp_ipp.c | 4 ++--
10 2 files changed, 3 insertions(+), 2 deletions(-)
11
12--- a/prnt/cupsext/cupsext.c
13+++ b/prnt/cupsext/cupsext.c
14@@ -101,6 +101,11 @@ typedef int Py_ssize_t;
15 #define _STRINGIZE(x) #x
16 #define STRINGIZE(x) _STRINGIZE(x)
17
18+void _releaseCupsInstance(void);
19+int addCupsPrinter(char *name, char *device_uri, char *location, char *ppd_file, char *model, char *info);
20+int setDefaultCupsPrinter(char *pr_name);
21+int delCupsPrinter(char *pr_name);
22+int controlCupsPrinter(char *pr_name, int op);
23
24 //static http_t * http = NULL; /* HTTP object */
25
26--- a/protocol/hp_ipp.c
27+++ b/protocol/hp_ipp.c
28@@ -22,6 +22,7 @@ Boston, MA 02110-1301, USA.
29 #include <cups/cups.h>
30 #include <cups/language.h>
31 #include <cups/ppd.h>
32+#include <stdio.h>
33 #include <syslog.h>
34 #include <stdarg.h>
35 #include <string.h> /* strcasecmp */
36@@ -42,7 +43,7 @@ Boston, MA 02110-1301, USA.
37 #define STRINGIZE(x) _STRINGIZE(x)
38
39
40-http_t* acquireCupsInstance()
41+http_t* acquireCupsInstance(void)
42 {
43 if ( http == NULL)
44 {
45@@ -53,7 +54,7 @@ http_t* acquireCupsInstance()
46 }
47
48
49-void _releaseCupsInstance()
50+void _releaseCupsInstance(void)
51 {
52 if (http)
53 {