#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <time.h>
#include <avahi-client/client.h>
#include <avahi-client/lookup.h>
#include <avahi-common/simple-watch.h>
#include <avahi-common/malloc.h>
#include <avahi-common/error.h>
Go to the source code of this file.
|
static void | browse_callback (AvahiServiceBrowser *b, AvahiIfIndex interface, AvahiProtocol protocol, AvahiBrowserEvent event, const char *name, const char *type, const char *domain, AVAHI_GCC_UNUSED AvahiLookupResultFlags flags, void *userdata) |
|
static void | client_callback (AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void *userdata) |
|
int | main (AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) |
|
static void | resolve_callback (AvahiServiceResolver *r, AVAHI_GCC_UNUSED AvahiIfIndex interface, AVAHI_GCC_UNUSED AvahiProtocol protocol, AvahiResolverEvent event, const char *name, const char *type, const char *domain, const char *host_name, const AvahiAddress *address, uint16_t port, AvahiStringList *txt, AvahiLookupResultFlags flags, AVAHI_GCC_UNUSED void *userdata) |
|
static void browse_callback |
( |
AvahiServiceBrowser * |
b, |
|
|
AvahiIfIndex |
interface, |
|
|
AvahiProtocol |
protocol, |
|
|
AvahiBrowserEvent |
event, |
|
|
const char * |
name, |
|
|
const char * |
type, |
|
|
const char * |
domain, |
|
|
AVAHI_GCC_UNUSED AvahiLookupResultFlags |
flags, |
|
|
void * |
userdata |
|
) |
| |
|
static |
static void client_callback |
( |
AvahiClient * |
c, |
|
|
AvahiClientState |
state, |
|
|
AVAHI_GCC_UNUSED void * |
userdata |
|
) |
| |
|
static |
int main |
( |
AVAHI_GCC_UNUSED int |
argc, |
|
|
AVAHI_GCC_UNUSED char * |
argv[] |
|
) |
| |
static void resolve_callback |
( |
AvahiServiceResolver * |
r, |
|
|
AVAHI_GCC_UNUSED AvahiIfIndex |
interface, |
|
|
AVAHI_GCC_UNUSED AvahiProtocol |
protocol, |
|
|
AvahiResolverEvent |
event, |
|
|
const char * |
name, |
|
|
const char * |
type, |
|
|
const char * |
domain, |
|
|
const char * |
host_name, |
|
|
const AvahiAddress * |
address, |
|
|
uint16_t |
port, |
|
|
AvahiStringList * |
txt, |
|
|
AvahiLookupResultFlags |
flags, |
|
|
AVAHI_GCC_UNUSED void * |
userdata |
|
) |
| |
|
static |
AvahiSimplePoll* simple_poll = NULL |
|
static |