Skip to content

Commit

Permalink
Rename network.h to dns_sd.h
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
pcercuei committed Apr 13, 2021
1 parent f0b5bb6 commit 4fb59f0
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 14 deletions.
5 changes: 2 additions & 3 deletions dns_sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
* which is also LGPL 2.1 or later.
*/

#include "debug.h"
#include "dns_sd.h"
#include "iio-lock.h"
#include "iio-private.h"
#include "network.h"

#include "debug.h"

/* Some functions for handling common linked list operations */
static void dnssd_remove_node(struct dns_sd_discovery_data **ddata, int n)
Expand Down
6 changes: 3 additions & 3 deletions network.h → dns_sd.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Robin Getz
*/

#ifndef __IIO_NET_PRIVATE_H
#define __IIO_NET_PRIVATE_H
#ifndef __IIO_DNS_SD_H
#define __IIO_DNS_SD_H

#include "iio-config.h"
#include <errno.h>
Expand Down Expand Up @@ -99,4 +99,4 @@ void port_knock_discovery_data(struct dns_sd_discovery_data **ddata);
#define DEFAULT_TIMEOUT_MS 5000
#define IIOD_PORT 30431

#endif /* __IIO_NET_PRIVATE_H */
#endif /* __IIO_DNS_SD_H */
2 changes: 1 addition & 1 deletion dns_sd_avahi.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*/

#include "debug.h"
#include "dns_sd.h"
#include "iio-private.h"
#include "network.h"
#include "iio-lock.h"

#include <time.h>
Expand Down
4 changes: 2 additions & 2 deletions dns_sd_bonjour.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

#include <CFNetwork/CFNetwork.h>

#include "debug.h"
#include "dns_sd.h"
#include "iio-lock.h"
#include "iio-private.h"
#include "network.h"
#include "debug.h"

/*
Implementation for DNS SD discovery for macOS using CFNetServices.
Expand Down
4 changes: 2 additions & 2 deletions dns_sd_windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
#include <winsock2.h>
#include <iphlpapi.h>

#include "debug.h"
#include "dns_sd.h"
#include "iio-private.h"
#include "mdns.h"
#include "network.h"
#include "debug.h"

static int new_discovery_data(struct dns_sd_discovery_data** data)
{
Expand Down
4 changes: 2 additions & 2 deletions network.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* Author: Paul Cercueil <[email protected]>
*/

#include "debug.h"
#include "dns_sd.h"
#include "iio-config.h"
#include "iio-private.h"
#include "network.h"
#include "iio-lock.h"
#include "iiod-client.h"
#include "debug.h"

#define _STRINGIFY(x) #x
#define STRINGIFY(x) _STRINGIFY(x)
Expand Down
2 changes: 1 addition & 1 deletion utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
/* Force the XSI version of strerror_r */
#undef _GNU_SOURCE

#include "dns_sd.h"
#include "iio-config.h"
#include "iio-private.h"
#include "network.h"

#include <errno.h>
#include <locale.h>
Expand Down

0 comments on commit 4fb59f0

Please sign in to comment.