summaryrefslogtreecommitdiffstats
path: root/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'server.h')
-rw-r--r--server.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/server.h b/server.h
new file mode 100644
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