26 #include <sys/types.h>
28 #include <avahi-common/cdecl.h>
51 #define AVAHI_ADDRESS_STR_MAX 40
54 #define AVAHI_IF_VALID(ifindex) (((ifindex) >= 0) || ((ifindex) == AVAHI_IF_UNSPEC))
57 #define AVAHI_PROTO_VALID(protocol) (((protocol) == AVAHI_PROTO_INET) || ((protocol) == AVAHI_PROTO_INET6) || ((protocol) == AVAHI_PROTO_UNSPEC))
101 char* avahi_reverse_lookup_name(
const AvahiAddress *a,
char *ret_s,
size_t length);
uint32_t address
Address data in network byte order.
uint8_t address[16]
Address data.
int AvahiIfIndex
Numeric network interface index.
Protocol (address family) independent address structure.
AvahiProtocol proto
Address family.
int AvahiProtocol
Protocol family specification, takes the values AVAHI_PROTO_INET, AVAHI_PROTO_INET6, AVAHI_PROTO_UNSPEC.
AvahiIPv6Address ipv6
Address when IPv6.
char * avahi_address_snprint(char *ret_s, size_t length, const AvahiAddress *a)
Convert the specified address *a to a human readable character string, use AVAHI_ADDRESS_STR_MAX to a...
struct AvahiAddress AvahiAddress
Protocol (address family) independent address structure.
uint8_t data[1]
Type-independent data field.
struct AvahiIPv4Address AvahiIPv4Address
An IPv4 address.
AvahiAddress * avahi_address_parse(const char *s, AvahiProtocol af, AvahiAddress *ret_addr)
Convert the specified human readable character string to an address structure.
int avahi_address_cmp(const AvahiAddress *a, const AvahiAddress *b)
Compare two addresses.
struct AvahiIPv6Address AvahiIPv6Address
An IPv6 address.
AvahiIPv4Address ipv4
Address when IPv4.
Unspecified/all interface(s)
int avahi_proto_to_af(AvahiProtocol proto)
Map AVAHI_PROTO_xxx constants to Unix AF_xxx constants.
Unspecified/all protocol(s)
const char * avahi_proto_to_string(AvahiProtocol proto)
Return a textual representation of the specified protocol number.
AvahiProtocol avahi_af_to_proto(int af)
Map Unix AF_xxx constants to AVAHI_PROTO_xxx constants.