summaryrefslogtreecommitdiffstats
path: root/avahi-core/core.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-05-19 21:49:28 +0000
committerLennart Poettering <lennart@poettering.net>2005-05-19 21:49:28 +0000
commit40cd1f60e9d84610401db992003a3b282de5fcae (patch)
tree89efee83decd4f4f47560991af97d270b15bd835 /avahi-core/core.h
parent42c5fff2020d36e23c8720bc02a87aa12a592dd6 (diff)
add a new structure for configuration AvahiServerConfig
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@76 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core/core.h')
-rw-r--r--avahi-core/core.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/avahi-core/core.h b/avahi-core/core.h
index 98f36b2..49b09b5 100644
--- a/avahi-core/core.h
+++ b/avahi-core/core.h
@@ -48,9 +48,23 @@ typedef enum {
typedef void (*AvahiEntryGroupCallback) (AvahiServer *s, AvahiEntryGroup *g, AvahiEntryGroupState state, gpointer userdata);
-AvahiServer *avahi_server_new(GMainContext *c);
+typedef struct AvahiServerConfig {
+ gboolean register_hinfo;
+ gboolean register_addresses;
+ gboolean use_ipv4;
+ gboolean use_ipv6;
+ gchar *host_name;
+ gchar *domain_name;
+ gboolean check_response_ttl;
+} AvahiServerConfig;
+
+AvahiServer *avahi_server_new(GMainContext *c, const AvahiServerConfig *sc);
void avahi_server_free(AvahiServer* s);
+AvahiServerConfig* avahi_server_config_init(AvahiServerConfig *c);
+AvahiServerConfig* avahi_server_config_copy(AvahiServerConfig *ret, const AvahiServerConfig *c);
+void avahi_server_config_free(AvahiServerConfig *c);
+
const gchar* avahi_server_get_domain(AvahiServer *s);
const gchar* avahi_server_get_host_name(AvahiServer *s);