From 8b5cd6ffd9137b14b7ed678f10a551e3911e4a40 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 13 Aug 2005 22:04:21 +0000 Subject: Rename some server side objects/symbols so that they do not conflict with the same things on the client side. i.e. AvahiEntryGroup -> AvahiSEntryGroup git-svn-id: file:///home/lennart/svn/public/avahi/trunk@310 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/conformance-test.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'avahi-core/conformance-test.c') diff --git a/avahi-core/conformance-test.c b/avahi-core/conformance-test.c index ebf9083..b786e85 100644 --- a/avahi-core/conformance-test.c +++ b/avahi-core/conformance-test.c @@ -39,7 +39,7 @@ #include "log.h" static char *name = NULL; -static AvahiEntryGroup *group = NULL; +static AvahiSEntryGroup *group = NULL; static int try = 0; static AvahiServer *avahi = NULL; @@ -52,7 +52,7 @@ static int dump_timeout(void* data) { return 1; } -static void entry_group_callback(AvahiServer *s, AvahiEntryGroup *g, AvahiEntryGroupState state, void* userdata); +static void entry_group_callback(AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, void* userdata); static void create_service(const char *t) { char *n; @@ -64,12 +64,12 @@ static void create_service(const char *t) { name = n; if (group) - avahi_entry_group_reset(group); + avahi_s_entry_group_reset(group); else - group = avahi_entry_group_new(avahi, entry_group_callback, NULL); + group = avahi_s_entry_group_new(avahi, entry_group_callback, NULL); avahi_server_add_service(avahi, group, 0, AF_UNSPEC, name, "_http._tcp", NULL, NULL, 80, "foo", NULL); - avahi_entry_group_commit(group); + avahi_s_entry_group_commit(group); try++; } @@ -84,7 +84,7 @@ static int rename_timeout(void* data) { return 1; } -static void entry_group_callback(AvahiServer *s, AvahiEntryGroup *g, AvahiEntryGroupState state, void* userdata) { +static void entry_group_callback(AvahiServer *s, AvahiSEntryGroup *g, AvahiEntryGroupState state, void* userdata) { if (state == AVAHI_ENTRY_GROUP_COLLISION) create_service(NULL); else if (state == AVAHI_ENTRY_GROUP_ESTABLISHED) { @@ -120,7 +120,7 @@ int main(int argc, char *argv[]) { g_main_loop_unref(loop); if (group) - avahi_entry_group_free(group); + avahi_s_entry_group_free(group); avahi_server_free(avahi); avahi_glib_poll_free(glib_poll); -- cgit