summaryrefslogtreecommitdiffstats
path: root/avahi-client/client.h
diff options
context:
space:
mode:
authorTrent Lloyd <lathiat@bur.st>2005-08-11 15:10:55 +0000
committerTrent Lloyd <lathiat@bur.st>2005-08-11 15:10:55 +0000
commit98b772ffc6e06ca0e19c2d31326c281a77646367 (patch)
treeae314039b708640e62fbe3435bb40beb873c4865 /avahi-client/client.h
parentfde1c3d1a0156f0e06a819cc0958ec077a88c8c6 (diff)
* Add ServiceTypeBrowser support to C API
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@290 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-client/client.h')
-rw-r--r--avahi-client/client.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/avahi-client/client.h b/avahi-client/client.h
index 4e06762..a7ca4e7 100644
--- a/avahi-client/client.h
+++ b/avahi-client/client.h
@@ -39,6 +39,8 @@ typedef struct _AvahiEntryGroup AvahiEntryGroup;
typedef struct _AvahiDomainBrowser AvahiDomainBrowser;
+typedef struct _AvahiServiceTypeBrowser AvahiServiceTypeBrowser;
+
/** States of a client object, note that AvahiServerStates are also emitted */
typedef enum {
AVAHI_CLIENT_DISCONNECTED = 100, /**< Lost DBUS connection to the Avahi daemon */
@@ -54,6 +56,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 AvahiServiceTypeBrowser */
+typedef void (*AvahiServiceTypeBrowserCallback) (AvahiServiceTypeBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, char *type, char *domain, void *user_data);
+
/** Creates a new client instance */
AvahiClient* avahi_client_new (AvahiClientCallback callback, void *user_data);
@@ -117,6 +122,19 @@ AvahiDomainBrowser* avahi_domain_browser_new (AvahiClient *client,
AvahiDomainBrowserCallback callback,
void *user_data);
+/** Get the D-Bus path of an AvahiServiceTypeBrowser object, for debugging purposes only. */
+char* avahi_service_type_browser_path (AvahiServiceTypeBrowser *);
+
+/** Browse for service types on the local network */
+AvahiServiceTypeBrowser* avahi_service_type_browser_new (
+ AvahiClient *client,
+ AvahiIfIndex interface,
+ AvahiProtocol protocol,
+ char *domain,
+ AvahiServiceTypeBrowserCallback callback,
+ void *user_data);
+
+
#ifndef DOXYGEN_SHOULD_SKIP_THIS
AVAHI_C_DECL_END
#endif