summaryrefslogtreecommitdiffstats
path: root/avahi-client/client.h
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-14 10:56:45 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-14 10:56:45 +0000
commit9f0dd75f02f5eceb758436de07f18fcc892c12f0 (patch)
treeb497c0125794c37046a300faa730d5bea72188ba /avahi-client/client.h
parentfd709eb188a6ec65026c3dab3a08abaf252bac85 (diff)
* Add service browser support to C client API
* Small fix to avahi-common to get make distcheck further git-svn-id: file:///home/lennart/svn/public/avahi/trunk@317 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-client/client.h')
-rw-r--r--avahi-client/client.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/avahi-client/client.h b/avahi-client/client.h
index f3716eb..a242124 100644
--- a/avahi-client/client.h
+++ b/avahi-client/client.h
@@ -41,6 +41,8 @@ typedef struct _AvahiEntryGroup AvahiEntryGroup;
typedef struct _AvahiDomainBrowser AvahiDomainBrowser;
+typedef struct _AvahiServiceBrowser AvahiServiceBrowser;
+
typedef struct _AvahiServiceTypeBrowser AvahiServiceTypeBrowser;
/** States of a client object, note that AvahiServerStates are also emitted */
@@ -58,6 +60,9 @@ typedef void (*AvahiEntryGroupCallback) (AvahiEntryGroup *g, AvahiEntryGroupStat
/** The function prototype for the callback of an AvahiDomainBrowser */
typedef void (*AvahiDomainBrowserCallback) (AvahiDomainBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, char *domain, void *user_data);
+/** The function prototype for the callback of an AvahiServiceBrowser */
+typedef void (*AvahiServiceBrowserCallback) (AvahiServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, char *name, char *type, char *domain, void *user_data);
+
/** The function prototype for the callback of an AvahiServiceTypeBrowser */
typedef void (*AvahiServiceTypeBrowserCallback) (AvahiServiceTypeBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, char *type, char *domain, void *user_data);
@@ -136,6 +141,18 @@ AvahiServiceTypeBrowser* avahi_service_type_browser_new (
AvahiServiceTypeBrowserCallback callback,
void *user_data);
+/** Get the D-Bus path of an AvahiServiceBrowser object, for debugging purposes only. */
+char* avahi_service_browser_path (AvahiServiceBrowser *);
+
+/** Browse for services of a type on the local network */
+AvahiServiceBrowser* avahi_service_browser_new (
+ AvahiClient *client,
+ AvahiIfIndex interface,
+ AvahiProtocol protocol,
+ char *type,
+ char *domain,
+ AvahiServiceBrowserCallback callback,
+ void *user_data);
#ifndef DOXYGEN_SHOULD_SKIP_THIS
AVAHI_C_DECL_END