summaryrefslogtreecommitdiffstats
path: root/server.h
blob: 7c96e780152c07005b1784d704fe1d37b4ac93ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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