Move main event base extern declaration to mdns_avahi.c where it's used

This commit is contained in:
Julien BLACHE 2009-05-05 16:08:49 +02:00
parent 524bdd3f0d
commit c85f9ed7dd
2 changed files with 4 additions and 3 deletions

View File

@ -56,7 +56,4 @@
#endif #endif
/* Event bases */
extern struct event_base *evbase_main;
#endif /* _DAAPD_H_ */ #endif /* _DAAPD_H_ */

View File

@ -37,6 +37,10 @@
#include "err.h" #include "err.h"
#include "mdns_avahi.h" #include "mdns_avahi.h"
/* Main event base, from main.c */
extern struct event_base *evbase_main;
static AvahiClient *mdns_client = NULL; static AvahiClient *mdns_client = NULL;
static AvahiEntryGroup *mdns_group = NULL; static AvahiEntryGroup *mdns_group = NULL;