1 #ifndef fooclientlookuphfoo 2 #define fooclientlookuphfoo 25 #include <avahi-common/cdecl.h> 30 #include <avahi-common/gccmacro.h> 123 typedef struct AvahiServiceTypeBrowser AvahiServiceTypeBrowser;
126 typedef void (*AvahiServiceTypeBrowserCallback) (
127 AvahiServiceTypeBrowser *b,
137 AvahiServiceTypeBrowser* avahi_service_type_browser_new (
143 AvahiServiceTypeBrowserCallback callback,
147 AvahiClient* avahi_service_type_browser_get_client (AvahiServiceTypeBrowser *);
150 int avahi_service_type_browser_free (AvahiServiceTypeBrowser *);
168 const char *host_name,
211 typedef struct AvahiHostNameResolver AvahiHostNameResolver;
214 typedef void (*AvahiHostNameResolverCallback) (
215 AvahiHostNameResolver *r,
225 AvahiHostNameResolver * avahi_host_name_resolver_new(
232 AvahiHostNameResolverCallback callback,
236 AvahiClient* avahi_host_name_resolver_get_client (AvahiHostNameResolver *);
239 int avahi_host_name_resolver_free(AvahiHostNameResolver *r);
242 typedef struct AvahiAddressResolver AvahiAddressResolver;
245 typedef void (*AvahiAddressResolverCallback) (
246 AvahiAddressResolver *r,
256 AvahiAddressResolver* avahi_address_resolver_new(
262 AvahiAddressResolverCallback callback,
266 AvahiClient* avahi_address_resolver_get_client (AvahiAddressResolver *);
269 int avahi_address_resolver_free(AvahiAddressResolver *r);
AvahiResolverEvent
Type of callback event when resolving.
struct AvahiClient AvahiClient
A connection context.
AvahiServiceBrowser * avahi_service_browser_new(AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *type, const char *domain, AvahiLookupFlags flags, AvahiServiceBrowserCallback callback, void *userdata)
Browse for services of a type on the network.
AvahiDomainBrowserType
The type of domain to browse for.
AvahiClient * avahi_service_browser_get_client(AvahiServiceBrowser *)
Get the parent client of an AvahiServiceBrowser object.
AvahiDomainBrowser * avahi_domain_browser_new(AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *domain, AvahiDomainBrowserType btype, AvahiLookupFlags flags, AvahiDomainBrowserCallback callback, void *userdata)
Browse for domains on the local network.
struct AvahiServiceBrowser AvahiServiceBrowser
A service browser object.
int AvahiIfIndex
Numeric network interface index.
Protocol (address family) independent address structure.
Implementation of a data type to store lists of strings.
Simplistic main loop abstraction.
void(* AvahiRecordBrowserCallback)(AvahiRecordBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, uint16_t clazz, uint16_t type, const void *rdata, size_t size, AvahiLookupResultFlags flags, void *userdata)
The function prototype for the callback of an AvahiRecordBrowser.
int AvahiProtocol
Protocol family specification, takes the values AVAHI_PROTO_INET, AVAHI_PROTO_INET6, AVAHI_PROTO_UNSPEC.
AvahiRecordBrowser * avahi_record_browser_new(AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, uint16_t clazz, uint16_t type, AvahiLookupFlags flags, AvahiRecordBrowserCallback callback, void *userdata)
Browse for records of a type on the local network.
AvahiServiceResolver * avahi_service_resolver_new(AvahiClient *client, AvahiIfIndex interface, AvahiProtocol protocol, const char *name, const char *type, const char *domain, AvahiProtocol aprotocol, AvahiLookupFlags flags, AvahiServiceResolverCallback callback, void *userdata)
Create a new service resolver object.
void(* AvahiServiceBrowserCallback)(AvahiServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AvahiLookupResultFlags flags, void *userdata)
The function prototype for the callback of an AvahiServiceBrowser.
AvahiClient * avahi_record_browser_get_client(AvahiRecordBrowser *)
Get the parent client of an AvahiRecordBrowser object.
AvahiClient * avahi_service_resolver_get_client(AvahiServiceResolver *)
Get the parent client of an AvahiServiceResolver object.
Definitions and functions to manipulate IP addresses.
AvahiClient * avahi_domain_browser_get_client(AvahiDomainBrowser *)
Get the parent client of an AvahiDomainBrowser object.
Linked list of strings that can contain any number of binary characters, including NUL bytes...
int avahi_service_browser_free(AvahiServiceBrowser *)
Cleans up and frees an AvahiServiceBrowser object.
AvahiLookupResultFlags
Some flags for lookup callback functions.
int avahi_record_browser_free(AvahiRecordBrowser *)
Cleans up and frees an AvahiRecordBrowser object.
struct AvahiDomainBrowser AvahiDomainBrowser
A domain browser object.
int avahi_domain_browser_free(AvahiDomainBrowser *)
Cleans up and frees an AvahiDomainBrowser object.
void(* AvahiServiceResolverCallback)(AvahiServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, void *userdata)
The function prototype for the callback of an AvahiServiceResolver.
void(* AvahiDomainBrowserCallback)(AvahiDomainBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *domain, AvahiLookupResultFlags flags, void *userdata)
The function prototype for the callback of an AvahiDomainBrowser.
struct AvahiRecordBrowser AvahiRecordBrowser
A record browser object.
Definitions and functions for the client API over D-Bus.
AvahiBrowserEvent
Type of callback event when browsing.
int avahi_service_resolver_free(AvahiServiceResolver *r)
Free a service resolver object.
AvahiLookupFlags
Some flags for lookup functions.
struct AvahiServiceResolver AvahiServiceResolver
A service resolver object.