summaryrefslogtreecommitdiffstats
path: root/flx.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-01-21 00:16:08 +0000
committerLennart Poettering <lennart@poettering.net>2005-01-21 00:16:08 +0000
commit0781d5363fb6fd723a2316fc7558aef6439b2f71 (patch)
treef6a942889c55230611d4472c21a7075a7c2fc609 /flx.h
parentd6e2dbabccb08970da991e6d2b0fda7a56d83e6f (diff)
massive work
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@8 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'flx.h')
-rw-r--r--flx.h83
1 files changed, 41 insertions, 42 deletions
diff --git a/flx.h b/flx.h
index dad707e..331dd26 100644
--- a/flx.h
+++ b/flx.h
@@ -8,59 +8,58 @@ struct _flxServer;
typedef struct _flxServer flxServer;
#include "address.h"
-
-typedef struct {
- gchar *name;
- guint16 type;
- guint16 class;
- gpointer data;
- guint16 size;
- guint32 ttl;
-} flxRecord;
-
-typedef struct {
- gchar *name;
- guint16 type;
- guint16 class;
-} flxQuery;
+#include "rr.h"
flxServer *flx_server_new(GMainContext *c);
void flx_server_free(flxServer* s);
gint flx_server_get_next_id(flxServer *s);
-void flx_server_add_rr(flxServer *s, gint id, gint interface, guchar protocol, const flxRecord *rr);
-void flx_server_add(flxServer *s, gint id, gint interface, guchar protocol, const gchar *name, guint16 type, gconstpointer data, guint size);
-void flx_server_add_address(flxServer *s, gint id, gint interface, guchar protocol, const gchar *name, flxAddress *a);
-void flx_server_add_text(flxServer *s, gint id, gint interface, guchar protocol, const gchar *name, const gchar *text);
+void flx_server_add(
+ flxServer *s,
+ gint id,
+ gint interface,
+ guchar protocol,
+ gboolean unique,
+ flxRecord *r);
+
+void flx_server_add_full(
+ flxServer *s,
+ gint id,
+ gint interface,
+ guchar protocol,
+ gboolean unique,
+ const gchar *name,
+ guint16 class,
+ guint16 type,
+ gconstpointer data,
+ guint size,
+ guint32 ttl);
+
+void flx_server_add_address(
+ flxServer *s,
+ gint id,
+ gint interface,
+ guchar protocol,
+ gboolean unique,
+ const gchar *name,
+ flxAddress *a);
+
+void flx_server_add_text(
+ flxServer *s,
+ gint id,
+ gint interface,
+ guchar protocol,
+ gboolean unique,
+ const gchar *name,
+ const gchar *text);
void flx_server_remove(flxServer *s, gint id);
-const flxRecord *flx_server_iterate(flxServer *s, gint id, void **state);
+void flx_server_send_query(flxServer *s, gint interface, guchar protocol, flxKey *k);
-flxRecord *flx_record_copy_normalize(flxRecord *ret_dest, const flxRecord*src);
+const flxRecord *flx_server_iterate(flxServer *s, gint id, void **state);
void flx_server_dump(flxServer *s, FILE *f);
-struct _flxLocalAddrSource;
-typedef struct _flxLocalAddrSource flxLocalAddrSource;
-
-enum {
- FLX_DNS_TYPE_A = 0x01,
- FLX_DNS_TYPE_NS = 0x02,
- FLX_DNS_TYPE_CNAME = 0x05,
- FLX_DNS_TYPE_SOA = 0x06,
- FLX_DNS_TYPE_PTR = 0x0C,
- FLX_DNS_TYPE_HINFO = 0x0D,
- FLX_DNS_TYPE_MX = 0x0F,
- FLX_DNS_TYPE_TXT = 0x10,
- FLX_DNS_TYPE_AAAA = 0x1C,
-};
-
-enum {
- FLX_DNS_CLASS_IN = 0x01
-};
-
-#define FLX_DEFAULT_TTL (120*60)
-
#endif