summaryrefslogtreecommitdiffstats
path: root/avahi-core/conformance-test.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-08-13 22:04:21 +0000
committerLennart Poettering <lennart@poettering.net>2005-08-13 22:04:21 +0000
commit8b5cd6ffd9137b14b7ed678f10a551e3911e4a40 (patch)
tree58574af05d4632561961d3df07cc0a3052211be8 /avahi-core/conformance-test.c
parent7f5fd7ab759d8881e04f9edf31decdb000498fd1 (diff)
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
Diffstat (limited to 'avahi-core/conformance-test.c')
-rw-r--r--avahi-core/conformance-test.c14
1 files changed, 7 insertions, 7 deletions
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);