<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Fix various missing prototypes.

--- hplip-3.17.11/io/hpmud/jd.c	2017-11-23 12:10:34.000000000 +0000
+++ hplip-3.17.11/io/hpmud/jd.c	2025-07-04 19:11:24.161372784 +0100
@@ -31,6 +31,7 @@
 #endif
 
 #include &lt;signal.h&gt;
+#include &lt;stdlib.h&gt;
 #include "hpmud.h"
 #include "hpmudi.h"
 
--- hplip-3.17.11/protocol/discovery/mdns.c	2017-11-23 12:10:09.000000000 +0000
+++ hplip-3.17.11/protocol/discovery/mdns.c	2025-07-04 19:08:00.006686609 +0100
@@ -24,9 +24,12 @@
  Author: Sanjay Kumar
  \*****************************************************************************/
 
-//#include &lt;stdio.h&gt;
+#include &lt;stdio.h&gt;
+#include &lt;ctype.h&gt;
+#include &lt;stdlib.h&gt;
 #include &lt;string.h&gt;
 #include &lt;syslog.h&gt;
+#include &lt;unistd.h&gt;
 #include &lt;sys/socket.h&gt;
 #include &lt;netinet/in.h&gt;
 #include &lt;netdb.h&gt;
--- hplip-3.17.11/protocol/hp_ipp.h	2017-11-23 12:10:09.000000000 +0000
+++ hplip-3.17.11/protocol/hp_ipp.h	2025-07-04 19:19:20.811166886 +0100
@@ -149,8 +149,12 @@
 
 
 http_t*    acquireCupsInstance();
+void _releaseCupsInstance();
 const char *getCupsErrorString(int status);
 void freePrinterList(printer_t *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);
  
 static ssize_t raw_ipp_response_read_callback(raw_ipp  *raw_buffer,ipp_uchar_t *buffer,size_t length);
 static ssize_t raw_ipp_request_callback(volatile raw_ipp  *raw_buffer, ipp_uchar_t *buffer, size_t length);
@@ -161,6 +165,7 @@
 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     controlCupsPrinter(char *pr_name, int op);
 int     getCupsPrinters(printer_t **printer_list);
 
 HPIPP_RESULT parseResponseHeader(char* header, int *content_length, int *chunked, int* header_size);
--- hplip-3.17.11/scan/sane/bb_ledm.c	2017-11-23 12:10:13.000000000 +0000
+++ hplip-3.17.11/scan/sane/bb_ledm.c	2025-07-04 19:09:04.815560018 +0100
@@ -16,6 +16,7 @@
 # include &lt;string.h&gt;
 # include &lt;fcntl.h&gt;
 # include &lt;math.h&gt;
+# include &lt;unistd.h&gt;
 # include "sane.h"
 # include "saneopts.h"
 # include "hpmud.h"
--- hplip-3.17.11/scan/sane/hpaio.c	2017-11-23 12:10:13.000000000 +0000
+++ hplip-3.17.11/scan/sane/hpaio.c	2025-07-04 19:18:01.107265151 +0100
@@ -46,6 +46,7 @@
 #include "sclpml.h"
 #include "escl.h"
 #include "io.h"
+#include "mdns.h"
 
 #define DEBUG_DECLARE_ONLY
 #include "sanei_debug.h"
--- hplip-3.17.11/scan/sane/http.c	2017-11-23 12:10:13.000000000 +0000
+++ hplip-3.17.11/scan/sane/http.c	2025-07-04 19:09:29.121507974 +0100
@@ -36,6 +36,7 @@
 #include &lt;string.h&gt;
 #include &lt;syslog.h&gt;
 #include &lt;ctype.h&gt;
+#include &lt;unistd.h&gt;
 #include "hpmud.h"
 #include "http.h"
 
--- hplip-3.17.11/scan/sane/ledmi.h	2017-11-23 12:10:13.000000000 +0000
+++ hplip-3.17.11/scan/sane/ledmi.h	2025-07-04 19:10:57.162012606 +0100
@@ -161,7 +161,7 @@
 int bb_open(struct ledm_session*);
 int bb_close(struct ledm_session*);
 int bb_get_parameters(struct ledm_session*, SANE_Parameters*, int);
-int bb_is_paper_in_adf();         /* 0 = no paper in adf, 1 = paper in adf, -1 = error */
+int bb_is_paper_in_adf(struct ledm_session*);         /* 0 = no paper in adf, 1 = paper in adf, -1 = error */
 SANE_Status bb_start_scan(struct ledm_session*);
 int bb_get_image_data(struct ledm_session*, int); 
 int bb_end_page(struct ledm_session*, int);
--- hplip-3.17.11/scan/sane/sclpml.c	2017-11-23 12:10:13.000000000 +0000
+++ hplip-3.17.11/scan/sane/sclpml.c	2025-07-04 19:09:55.948948868 +0100
@@ -30,6 +30,7 @@
 #include &lt;unistd.h&gt;
 #include &lt;fcntl.h&gt;
 #include &lt;string.h&gt;
+#include &lt;sys/time.h&gt;
 #include "sane.h"
 #include "saneopts.h"
 #include "common.h"
</pre></body></html>