7 This file is part of avahi.
9 avahi is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as
11 published by the Free Software Foundation; either version 2.1 of the
12 License, or (at your option) any later version.
14 avahi is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
17 Public License for more details.
19 You should have received a copy of the GNU Lesser General Public
20 License along with avahi; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
25 #include <avahi-common/cdecl.h>
29 /** States of an entry group object */
31 AVAHI_ENTRY_GROUP_UNCOMMITED = -1, /**< The group has not yet been commited, the user must still call avahi_entry_group_commit() */
32 AVAHI_ENTRY_GROUP_REGISTERING = 0, /**< The entries of the group are currently being registered */
33 AVAHI_ENTRY_GROUP_ESTABLISHED, /**< The entries have successfully been established */
34 AVAHI_ENTRY_GROUP_COLLISION /**< A name collision for one of the entries in the group has been detected, the entries have been withdrawn */
35 } AvahiEntryGroupState;
37 /** The type of domain to browse for */
39 AVAHI_DOMAIN_BROWSER_REGISTER, /**< Browse for a list of available registering domains */
40 AVAHI_DOMAIN_BROWSER_REGISTER_DEFAULT, /**< Browse for the default registering domain */
41 AVAHI_DOMAIN_BROWSER_BROWSE, /**< Browse for a list of available browsing domains */
42 AVAHI_DOMAIN_BROWSER_BROWSE_DEFAULT, /**< Browse for the default browsing domain */
43 AVAHI_DOMAIN_BROWSER_BROWSE_LEGACY, /**< Legacy browse domain - see DNS-SD spec for more information */
44 AVAHI_DOMAIN_BROWSER_MAX
45 } AvahiDomainBrowserType;
47 /** Type of callback event when browsing */
49 AVAHI_BROWSER_NEW = 0, /**< The object is new on the network */
50 AVAHI_BROWSER_REMOVE = -1 /**< The object has been removed from the network */
53 /** Type of callback event when resolving */
55 AVAHI_RESOLVER_FOUND = 0, /**< RR found, resolving successful */
56 AVAHI_RESOLVER_TIMEOUT = -1 /**< Noone responded within the timeout, resolving failed */
59 /** States of a server object */
61 AVAHI_SERVER_INVALID = -1, /**< Invalid state (initial) */
62 AVAHI_SERVER_REGISTERING = 0, /**< Host RRs are being registered */
63 AVAHI_SERVER_RUNNING, /**< All host RRs have been established */
64 AVAHI_SERVER_COLLISION /**< There is a collision with a host RR. All host RRs have been withdrawn, the user should set a new host name via avahi_server_set_host_name() */