]> git.meshlink.io Git - catta/blob - server.h
initial commit
[catta] / server.h
1 #ifndef fooflxserverhfoo
2 #define fooflxserverhfoo
3
4 #include "flx.h"
5 #include "iface.h"
6
7 struct _flxEntry {
8     flxRecord rr;
9     gint id;
10     gint interface;
11
12     int unique;
13
14     struct _flxEntry *next, *prev;
15     struct _flxEntry *next_by_name, *prev_by_name;
16     struct _flxEntry *next_by_id, *prev_by_id;
17 };
18
19 typedef struct _flxEntry flxEntry;
20
21 struct _flxServer {
22     GMainContext *context;
23     flxInterfaceMonitor *monitor;
24
25     gint current_id;
26     
27     GHashTable *rrset_by_id;
28     GHashTable *rrset_by_name;
29
30     flxEntry *entries;
31 };
32
33 #endif