2018-03-22 10:45:27 +01:00
|
|
|
From 6dd5de8c21284530a7d9716b979812446cc4eb79 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Martin Wilck <mwilck@suse.com>
|
|
|
|
Date: Wed, 21 Mar 2018 23:56:05 +0100
|
|
|
|
Subject: [PATCH] hplip: misc missing #includes and definitions
|
|
|
|
|
|
|
|
---
|
|
|
|
protocol/discovery/mdns.c | 1 +
|
|
|
|
protocol/discovery/mdns.h | 1 +
|
|
|
|
scan/sane/hpaio.c | 1 +
|
|
|
|
scan/sane/http.c | 1 +
|
|
|
|
4 files changed, 4 insertions(+)
|
|
|
|
|
2018-08-30 01:07:45 +02:00
|
|
|
Index: b/protocol/discovery/mdns.c
|
|
|
|
===================================================================
|
2018-03-22 10:45:27 +01:00
|
|
|
--- a/protocol/discovery/mdns.c
|
|
|
|
+++ b/protocol/discovery/mdns.c
|
2018-08-30 01:07:45 +02:00
|
|
|
@@ -37,6 +37,7 @@
|
|
|
|
#include <arpa/inet.h>
|
2018-03-22 10:45:27 +01:00
|
|
|
#include "mdns.h"
|
|
|
|
#include <unistd.h>
|
|
|
|
+#include <ctype.h>
|
|
|
|
|
|
|
|
/* Convert "www.google.com" to "3www6google3com". */
|
2018-08-30 01:07:45 +02:00
|
|
|
static int mdns_convert_name_to_dns(const char *name, int name_size, char *dns_name)
|
|
|
|
Index: b/protocol/discovery/mdns.h
|
|
|
|
===================================================================
|
2018-03-22 10:45:27 +01:00
|
|
|
--- a/protocol/discovery/mdns.h
|
|
|
|
+++ b/protocol/discovery/mdns.h
|
2018-08-30 01:07:45 +02:00
|
|
|
@@ -100,5 +100,6 @@ static void mdns_parse_respponse(unsign
|
|
|
|
static void mdns_rr_cleanup(DNS_RECORD *rr);
|
|
|
|
static DNS_RECORD *mdns_read_responses(int udp_socket, int mode);
|
|
|
|
static unsigned char* mdns_readMDL(unsigned char *p, unsigned char *normalized_mdl, int len);
|
2018-03-22 10:45:27 +01:00
|
|
|
+int mdns_probe_nw_scanners(char* uris_buf, int buf_size, int *count);
|
|
|
|
#endif // _DISCOVERY_MDNS_H
|
|
|
|
|
2018-08-30 01:07:45 +02:00
|
|
|
Index: b/scan/sane/hpaio.c
|
|
|
|
===================================================================
|
2018-03-22 10:45:27 +01:00
|
|
|
--- a/scan/sane/hpaio.c
|
|
|
|
+++ b/scan/sane/hpaio.c
|
|
|
|
@@ -46,6 +46,7 @@
|
|
|
|
#include "sclpml.h"
|
|
|
|
#include "escl.h"
|
|
|
|
#include "io.h"
|
|
|
|
+#include "mdns.h"
|
|
|
|
|
|
|
|
#define DEBUG_DECLARE_ONLY
|
|
|
|
#include "sanei_debug.h"
|
2018-08-30 01:07:45 +02:00
|
|
|
Index: b/scan/sane/http.c
|
|
|
|
===================================================================
|
2018-03-22 10:45:27 +01:00
|
|
|
--- a/scan/sane/http.c
|
|
|
|
+++ b/scan/sane/http.c
|
|
|
|
@@ -33,6 +33,7 @@
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
+#include <unistd.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <syslog.h>
|
|
|
|
#include <ctype.h>
|