Skip to content

Commit 4fb59f0

Browse files
committed
Rename network.h to dns_sd.h
The network.h header only contained function prototypes and structures related to DNS-SD. Since the DNS-SD code is in dns_sd.c, rename this header to dns_sd.h. Signed-off-by: Paul Cercueil <[email protected]>
1 parent f0b5bb6 commit 4fb59f0

File tree

7 files changed

+13
-14
lines changed

7 files changed

+13
-14
lines changed

dns_sd.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
* which is also LGPL 2.1 or later.
1212
*/
1313

14+
#include "debug.h"
15+
#include "dns_sd.h"
1416
#include "iio-lock.h"
1517
#include "iio-private.h"
16-
#include "network.h"
17-
18-
#include "debug.h"
1918

2019
/* Some functions for handling common linked list operations */
2120
static void dnssd_remove_node(struct dns_sd_discovery_data **ddata, int n)

network.h renamed to dns_sd.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
* Robin Getz
88
*/
99

10-
#ifndef __IIO_NET_PRIVATE_H
11-
#define __IIO_NET_PRIVATE_H
10+
#ifndef __IIO_DNS_SD_H
11+
#define __IIO_DNS_SD_H
1212

1313
#include "iio-config.h"
1414
#include <errno.h>
@@ -99,4 +99,4 @@ void port_knock_discovery_data(struct dns_sd_discovery_data **ddata);
9999
#define DEFAULT_TIMEOUT_MS 5000
100100
#define IIOD_PORT 30431
101101

102-
#endif /* __IIO_NET_PRIVATE_H */
102+
#endif /* __IIO_DNS_SD_H */

dns_sd_avahi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*/
1313

1414
#include "debug.h"
15+
#include "dns_sd.h"
1516
#include "iio-private.h"
16-
#include "network.h"
1717
#include "iio-lock.h"
1818

1919
#include <time.h>

dns_sd_bonjour.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
#include <CFNetwork/CFNetwork.h>
1111

12+
#include "debug.h"
13+
#include "dns_sd.h"
1214
#include "iio-lock.h"
1315
#include "iio-private.h"
14-
#include "network.h"
15-
#include "debug.h"
1616

1717
/*
1818
Implementation for DNS SD discovery for macOS using CFNetServices.

dns_sd_windows.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
#include <winsock2.h>
1515
#include <iphlpapi.h>
1616

17+
#include "debug.h"
18+
#include "dns_sd.h"
1719
#include "iio-private.h"
1820
#include "mdns.h"
19-
#include "network.h"
20-
#include "debug.h"
2121

2222
static int new_discovery_data(struct dns_sd_discovery_data** data)
2323
{

network.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
* Author: Paul Cercueil <[email protected]>
77
*/
88

9+
#include "debug.h"
10+
#include "dns_sd.h"
911
#include "iio-config.h"
1012
#include "iio-private.h"
11-
#include "network.h"
1213
#include "iio-lock.h"
1314
#include "iiod-client.h"
14-
#include "debug.h"
1515

1616
#define _STRINGIFY(x) #x
1717
#define STRINGIFY(x) _STRINGIFY(x)

utilities.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
/* Force the XSI version of strerror_r */
1010
#undef _GNU_SOURCE
1111

12+
#include "dns_sd.h"
1213
#include "iio-config.h"
1314
#include "iio-private.h"
14-
#include "network.h"
1515

1616
#include <errno.h>
1717
#include <locale.h>

0 commit comments

Comments
 (0)