]> git.meshlink.io Git - catta/blobdiff - server.h
initial commit
[catta] / server.h
diff --git a/server.h b/server.h
new file mode 100644 (file)
index 0000000..7c96e78
--- /dev/null
+++ b/server.h
@@ -0,0 +1,33 @@
+#ifndef fooflxserverhfoo
+#define fooflxserverhfoo
+
+#include "flx.h"
+#include "iface.h"
+
+struct _flxEntry {
+    flxRecord rr;
+    gint id;
+    gint interface;
+
+    int unique;
+
+    struct _flxEntry *next, *prev;
+    struct _flxEntry *next_by_name, *prev_by_name;
+    struct _flxEntry *next_by_id, *prev_by_id;
+};
+
+typedef struct _flxEntry flxEntry;
+
+struct _flxServer {
+    GMainContext *context;
+    flxInterfaceMonitor *monitor;
+
+    gint current_id;
+    
+    GHashTable *rrset_by_id;
+    GHashTable *rrset_by_name;
+
+    flxEntry *entries;
+};
+
+#endif