diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-09-23 10:48:57 +0200 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-09-23 10:48:57 +0200 |
commit | 482aa906945b202640c9984bb98203a05b51759b (patch) | |
tree | 30be0d8cfa530cfbd5543cc4cf5418d2aa88ced5 /modules | |
parent | 4f9047d162e33af017977c39ee6ed5533ca1c0d1 (diff) |
avahi: two empty lines between functions
Diffstat (limited to 'modules')
-rw-r--r-- | modules/avahi/avahi.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/modules/avahi/avahi.c b/modules/avahi/avahi.c index 9bf4a8c..683358d 100644 --- a/modules/avahi/avahi.c +++ b/modules/avahi/avahi.c @@ -48,6 +48,7 @@ struct avahi_st { static struct avahi_st* avahi = NULL; + static void group_callback(AvahiEntryGroup* group, AvahiEntryGroupState state, void* userdata) { @@ -67,7 +68,8 @@ static void group_callback(AvahiEntryGroup* group, } } -static void create_services(AvahiClient* client) + +static void create_services(AvahiClient *client) { int err; char buf[128] = ""; @@ -127,6 +129,7 @@ static void create_services(AvahiClient* client) } } + static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void * userdata) { @@ -140,6 +143,7 @@ static void client_callback(AvahiClient *c, AvahiClientState state, } } + static void add_contact(const char* uri, const AvahiAddress *address, uint16_t port) { @@ -176,6 +180,7 @@ static void add_contact(const char* uri, } } + static void remove_contact_by_dname(const char* dname) { const struct list *lst; @@ -201,6 +206,7 @@ static void remove_contact_by_dname(const char* dname) warning("avahi: Could not remove contact %s\n", dname); } + static void resolve_callback( AvahiServiceResolver *r, AvahiIfIndex interface, @@ -281,12 +287,14 @@ static void browse_callback( } } + static void avahi_update(void* arg) { avahi_simple_poll_iterate(avahi->poll, 0); tmr_start(&avahi->poll_timer, 250, avahi_update, 0); } + static void destructor(void* arg) { struct avahi_st* a = arg; @@ -310,6 +318,7 @@ static void destructor(void* arg) } } + static int module_init(void) { int err; @@ -344,6 +353,7 @@ static int module_init(void) return 0; } + static int module_close(void) { debug("avahi: module_close\n"); @@ -353,6 +363,7 @@ static int module_close(void) return 0; } + const struct mod_export DECL_EXPORTS(avahi) = { "avahi", "application", |