Defines | Functions | Variables
zeroconf_avahi.c File Reference
#include "stdafx.h"
#include "csocket.h"
#include "csocketevents.h"
#include "cphidgetlist.h"
#include "cphidgetmanager.h"
#include "cphidgetdictionary.h"
#include "cphidgetsbc.h"
#include "zeroconf.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"
#include "avahi-common/domain.h"
Include dependency graph for zeroconf_avahi.c:

Go to the source code of this file.

Defines

#define avahi_client_errno_ptr   avahi_client_errno
#define avahi_client_free_ptr   avahi_client_free
#define avahi_client_get_version_string_ptr   avahi_client_get_version_string
#define avahi_client_new_ptr   avahi_client_new
#define avahi_free_ptr   avahi_free
#define avahi_record_browser_free_ptr   avahi_record_browser_free
#define avahi_record_browser_new_ptr   avahi_record_browser_new
#define avahi_service_browser_free_ptr   avahi_service_browser_free
#define avahi_service_browser_new_ptr   avahi_service_browser_new
#define avahi_service_name_join_ptr   avahi_service_name_join
#define avahi_service_resolver_free_ptr   avahi_service_resolver_free
#define avahi_service_resolver_new_ptr   avahi_service_resolver_new
#define avahi_simple_poll_free_ptr   avahi_simple_poll_free
#define avahi_simple_poll_get_ptr   avahi_simple_poll_get
#define avahi_simple_poll_iterate_ptr   avahi_simple_poll_iterate
#define avahi_simple_poll_new_ptr   avahi_simple_poll_new
#define avahi_simple_poll_quit_ptr   avahi_simple_poll_quit
#define avahi_strerror_ptr   avahi_strerror
#define avahi_string_list_get_next_ptr   avahi_string_list_get_next
#define avahi_string_list_get_pair_ptr   avahi_string_list_get_pair

Functions

int cancelPendingZeroconfLookups (CPhidgetRemoteHandle networkInfo)
static void client_callback (AvahiClient *c, AvahiClientState state, AVAHI_GCC_UNUSED void *userdata)
int dns_callback_thread (void *ptr)
void DNSServiceBrowse_Phidget_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)
void DNSServiceBrowse_SBC_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)
void DNSServiceBrowse_ws_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)
void DNSServiceResolve_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, void *userdata)
void DNSServiceResolve_Phidget_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, void *userdata)
void DNSServiceResolve_SBC_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, void *userdata)
int getZeroconfHostPort (CPhidgetRemoteHandle networkInfo)
int InitializeZeroconf ()
void PhidFromTXT (CPhidgetHandle phid, AvahiStringList *txt)
int refreshZeroconfPhidget (CPhidgetHandle phid)
int refreshZeroconfSBC (CPhidgetSBCHandle sbc)
void SBCFromTXT (CPhidgetSBCHandle sbc, AvahiStringList *txt)
int UninitializeZeroconf ()
static int UninitializeZeroconf1 (int lock)

Variables

voidavahiLibHandle = NULL
static AvahiClientclient = NULL
int Dns_sdInitialized = FALSE
pthread_t dns_thread = (pthread_t)NULL
const char * dnssd_txt_ver = "1"
static AvahiSimplePollsimple_poll = NULL
int stopBrowsing = FALSE
static AvahiServiceBrowserzeroconf_browse_phidget_ref = NULL
static AvahiServiceBrowserzeroconf_browse_sbc_ref = NULL
static AvahiServiceBrowserzeroconf_browse_ws_ref = NULL

Define Documentation

Definition at line 107 of file zeroconf_avahi.c.

Definition at line 105 of file zeroconf_avahi.c.

Definition at line 113 of file zeroconf_avahi.c.

Definition at line 104 of file zeroconf_avahi.c.

#define avahi_free_ptr   avahi_free

Definition at line 114 of file zeroconf_avahi.c.

Definition at line 102 of file zeroconf_avahi.c.

Definition at line 101 of file zeroconf_avahi.c.

Definition at line 98 of file zeroconf_avahi.c.

Definition at line 97 of file zeroconf_avahi.c.

Definition at line 103 of file zeroconf_avahi.c.

Definition at line 100 of file zeroconf_avahi.c.

Definition at line 99 of file zeroconf_avahi.c.

Definition at line 111 of file zeroconf_avahi.c.

Definition at line 109 of file zeroconf_avahi.c.

Definition at line 110 of file zeroconf_avahi.c.

Definition at line 108 of file zeroconf_avahi.c.

Definition at line 112 of file zeroconf_avahi.c.

Definition at line 106 of file zeroconf_avahi.c.

Definition at line 115 of file zeroconf_avahi.c.

Definition at line 116 of file zeroconf_avahi.c.


Function Documentation

Definition at line 780 of file zeroconf_avahi.c.

static void client_callback ( AvahiClient c,
AvahiClientState  state,
AVAHI_GCC_UNUSED void userdata 
) [static]

Definition at line 158 of file zeroconf_avahi.c.

int dns_callback_thread ( void ptr)

Definition at line 140 of file zeroconf_avahi.c.

void DNSServiceBrowse_Phidget_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 
)

Definition at line 500 of file zeroconf_avahi.c.

void DNSServiceBrowse_SBC_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 
)

Definition at line 629 of file zeroconf_avahi.c.

void DNSServiceBrowse_ws_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 
)

Definition at line 718 of file zeroconf_avahi.c.

void DNSServiceResolve_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,
void userdata 
)

Definition at line 321 of file zeroconf_avahi.c.

void DNSServiceResolve_Phidget_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,
void userdata 
)

Definition at line 437 of file zeroconf_avahi.c.

void DNSServiceResolve_SBC_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,
void userdata 
)

Definition at line 355 of file zeroconf_avahi.c.

Definition at line 785 of file zeroconf_avahi.c.

Definition at line 840 of file zeroconf_avahi.c.

Definition at line 197 of file zeroconf_avahi.c.

Definition at line 835 of file zeroconf_avahi.c.

Definition at line 830 of file zeroconf_avahi.c.

Definition at line 278 of file zeroconf_avahi.c.

Definition at line 1033 of file zeroconf_avahi.c.

static int UninitializeZeroconf1 ( int  lock) [static]

Definition at line 987 of file zeroconf_avahi.c.


Variable Documentation

Definition at line 137 of file zeroconf_avahi.c.

AvahiClient* client = NULL [static]

Definition at line 129 of file zeroconf_avahi.c.

int Dns_sdInitialized = FALSE

Definition at line 125 of file zeroconf_avahi.c.

pthread_t dns_thread = (pthread_t)NULL

Definition at line 135 of file zeroconf_avahi.c.

const char* dnssd_txt_ver = "1"

Definition at line 123 of file zeroconf_avahi.c.

AvahiSimplePoll* simple_poll = NULL [static]

Definition at line 128 of file zeroconf_avahi.c.

int stopBrowsing = FALSE

Definition at line 126 of file zeroconf_avahi.c.

Definition at line 133 of file zeroconf_avahi.c.

Definition at line 131 of file zeroconf_avahi.c.

Definition at line 132 of file zeroconf_avahi.c.



pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22