forked from yaosj2k/dnsforwarder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhcontext.h
More file actions
executable file
·35 lines (24 loc) · 764 Bytes
/
hcontext.h
File metadata and controls
executable file
·35 lines (24 loc) · 764 Bytes
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
34
35
#ifndef HCONTEXT_H_INCLUDED
#define HCONTEXT_H_INCLUDED
#include "bst.h"
#include "iheader.h"
#include "oo.h"
typedef struct _HostsContext HostsContext;
struct _HostsContext
{
Bst t;
int (*Add)(HostsContext *c,
IHeader *Original, /* Entity followed */
const char *RecursedDomain,
uint16_t NewIdentifier
);
int (*FindAndRemove)(HostsContext *c,
/* Entity followed */
IHeader *Input,
/* Entity followed */
IHeader *Output
);
void (*Swep)(HostsContext *c);
};
int HostsContext_Init(HostsContext *c);
#endif // HCONTEXT_H_INCLUDED