diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-04-12 03:09:56 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-04-12 03:09:56 +0000 |
commit | a20c01bd12216d409e0dfc5d3bbacc940352bfce (patch) | |
tree | e91508f26882306be164889a6bacc3be3517814d /flx.h | |
parent | b1d2a6b958d8d7a8ecf79765bb93aa57583d93bd (diff) |
assorted work:
* new rr implementation: resource data is stored in parsed form now.
* make TXT and SRV functions variadic
* many other things
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@23 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'flx.h')
-rw-r--r-- | flx.h | 45 |
1 files changed, 37 insertions, 8 deletions
@@ -4,7 +4,6 @@ #include <stdio.h> #include <glib.h> -struct _flxServer; typedef struct _flxServer flxServer; #include "address.h" @@ -23,18 +22,14 @@ void flx_server_add( gboolean unique, flxRecord *r); -void flx_server_add_full( +void flx_server_add_ptr( flxServer *s, gint id, gint interface, guchar protocol, gboolean unique, const gchar *name, - guint16 class, - guint16 type, - gconstpointer data, - guint size, - guint32 ttl); + const gchar *dest); void flx_server_add_address( flxServer *s, @@ -52,7 +47,41 @@ void flx_server_add_text( guchar protocol, gboolean unique, const gchar *name, - const gchar *text); + ... /* text records, terminated by NULL */); + +void flx_server_add_text_va( + flxServer *s, + gint id, + gint interface, + guchar protocol, + gboolean unique, + const gchar *name, + va_list va); + +void flx_server_add_service( + flxServer *s, + gint id, + gint interface, + guchar protocol, + const gchar *type, + const gchar *name, + const gchar *domain, + const gchar *host, + guint16 port, + ... /* text records, terminated by NULL */); + +void flx_server_add_service_va( + flxServer *s, + gint id, + gint interface, + guchar protocol, + const gchar *type, + const gchar *name, + const gchar *domain, + const gchar *host, + guint16 port, + va_list va); + void flx_server_remove(flxServer *s, gint id); |