Skip to content

Commit

Permalink
mdns: Change "interface" to "iface"
Browse files Browse the repository at this point in the history
Windows doesn't like "interface", it has something defined to that.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Jul 8, 2023
1 parent 4e5a5cb commit aed4fb3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/gensio/gensio_mdns.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ int gensio_free_mdns(struct gensio_mdns *m,

GENSIOMDNS_DLL_PUBLIC
int gensio_mdns_add_service(struct gensio_mdns *m,
int interface, int ipdomain,
int iface, int ipdomain,
const char *name, const char *type,
const char *domain, const char *host,
int port, const char * const *txt,
Expand All @@ -74,15 +74,15 @@ enum gensio_mdns_data_state { GENSIO_MDNS_NEW_DATA, GENSIO_MDNS_DATA_GONE,

typedef void (*gensio_mdns_watch_cb)(struct gensio_mdns_watch *w,
enum gensio_mdns_data_state state,
int interface, int ipdomain,
int iface, int ipdomain,
const char *name, const char *type,
const char *domain, const char *host,
const struct gensio_addr *addr,
const char * const *txt, void *userdata);

GENSIOMDNS_DLL_PUBLIC
int gensio_mdns_add_watch(struct gensio_mdns *m,
int interface, int ipdomain,
int iface, int ipdomain,
const char *name, const char *type,
const char *domain, const char *host,
gensio_mdns_watch_cb callback, void *userdata,
Expand Down

0 comments on commit aed4fb3

Please sign in to comment.