summaryrefslogtreecommitdiffstats
path: root/avahi-client/browser.c
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-12 04:49:23 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-12 04:49:23 +0000
commitf8c479234af6b676027df4fb6b38ce8e22949049 (patch)
tree525343662616f78699bc46dc4faa4bbe3f3a55c1 /avahi-client/browser.c
parentbca16ea33da4246188a710dcb07bb6b352ca9cf4 (diff)
* Rename various data structures to prevent a namespace conflict with avahi-core
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@304 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-client/browser.c')
-rw-r--r--avahi-client/browser.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/avahi-client/browser.c b/avahi-client/browser.c
index 3e30110..54ae7c4 100644
--- a/avahi-client/browser.c
+++ b/avahi-client/browser.c
@@ -40,11 +40,11 @@
#include "client.h"
#include "internal.h"
-/* AvahiDomainBrowser */
+/* AvahiClientDomainBrowser */
-AvahiDomainBrowser* avahi_domain_browser_new (AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, char *domain, AvahiDomainBrowserType btype, AvahiDomainBrowserCallback callback, void *user_data)
+AvahiClientDomainBrowser* avahi_domain_browser_new (AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, char *domain, AvahiDomainBrowserType btype, AvahiClientDomainBrowserCallback callback, void *user_data)
{
- AvahiDomainBrowser *tmp = NULL;
+ AvahiClientDomainBrowser *tmp = NULL;
DBusMessage *message = NULL, *reply;
DBusError error;
char *path;
@@ -71,13 +71,13 @@ AvahiDomainBrowser* avahi_domain_browser_new (AvahiClient *client, AvahiIfIndex
if (dbus_error_is_set (&error) || path == NULL)
goto dbus_error;
- tmp = malloc (sizeof (AvahiDomainBrowser));
+ tmp = malloc (sizeof (AvahiClientDomainBrowser));
tmp->client = client;
tmp->callback = callback;
tmp->user_data = user_data;
tmp->path = strdup (path);
- AVAHI_LLIST_PREPEND(AvahiDomainBrowser, domain_browsers, client->domain_browsers, tmp);
+ AVAHI_LLIST_PREPEND(AvahiClientDomainBrowser, domain_browsers, client->domain_browsers, tmp);
return tmp;
@@ -89,7 +89,7 @@ dbus_error:
}
char*
-avahi_domain_browser_path (AvahiDomainBrowser *b)
+avahi_domain_browser_path (AvahiClientDomainBrowser *b)
{
return b->path;
}
@@ -97,7 +97,7 @@ avahi_domain_browser_path (AvahiDomainBrowser *b)
DBusHandlerResult
avahi_domain_browser_event (AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message)
{
- AvahiDomainBrowser *n, *db = NULL;
+ AvahiClientDomainBrowser *n, *db = NULL;
DBusError error;
const char *path;
char *domain;
@@ -137,10 +137,10 @@ out:
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
-/* AvahiServiceTypeBrowser */
-AvahiServiceTypeBrowser* avahi_service_type_browser_new (AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, char *domain, AvahiServiceTypeBrowserCallback callback, void *user_data)
+/* AvahiClientServiceTypeBrowser */
+AvahiClientServiceTypeBrowser* avahi_service_type_browser_new (AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, char *domain, AvahiClientServiceTypeBrowserCallback callback, void *user_data)
{
- AvahiServiceTypeBrowser *tmp = NULL;
+ AvahiClientServiceTypeBrowser *tmp = NULL;
DBusMessage *message = NULL, *reply;
DBusError error;
char *path;
@@ -169,13 +169,13 @@ AvahiServiceTypeBrowser* avahi_service_type_browser_new (AvahiClient *client, Av
if (dbus_error_is_set (&error) || path == NULL)
goto dbus_error;
- tmp = malloc (sizeof (AvahiServiceTypeBrowser));
+ tmp = malloc (sizeof (AvahiClientServiceTypeBrowser));
tmp->client = client;
tmp->callback = callback;
tmp->user_data = user_data;
tmp->path = strdup (path);
- AVAHI_LLIST_PREPEND(AvahiServiceTypeBrowser, service_type_browsers, client->service_type_browsers, tmp);
+ AVAHI_LLIST_PREPEND(AvahiClientServiceTypeBrowser, service_type_browsers, client->service_type_browsers, tmp);
return tmp;
@@ -187,7 +187,7 @@ dbus_error:
}
char*
-avahi_service_type_browser_path (AvahiServiceTypeBrowser *b)
+avahi_service_type_browser_path (AvahiClientServiceTypeBrowser *b)
{
return b->path;
}
@@ -195,7 +195,7 @@ avahi_service_type_browser_path (AvahiServiceTypeBrowser *b)
DBusHandlerResult
avahi_service_type_browser_event (AvahiClient *client, AvahiBrowserEvent event, DBusMessage *message)
{
- AvahiServiceTypeBrowser *n, *db = NULL;
+ AvahiClientServiceTypeBrowser *n, *db = NULL;
DBusError error;
const char *path;
char *domain, *type;