-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlunbound.d.tl
53 lines (46 loc) · 1.06 KB
/
lunbound.d.tl
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
local record lunbound
record ub_config
async : boolean
resolvconf : string | boolean
hoststxt : string | boolean
forward : { string } | string
trusted : { string } | string
trustfile : string
options : { string : string }
end
enum ub_state
"pending"
"ready"
"done"
"unknown"
end
record ub_result
qname : string
qtype : integer
qclass : integer
havedata : boolean
canonname : string
nxdomain : boolean
secure : boolean
bogus : string
rcode : integer
{ string }
n : integer
end
record ub_query
end
record ub_ctx
getfd : function (ub_ctx) : integer
resolve : function (ub_ctx, string, integer, integer) : ub_result, string
resolve_async : function (ub_ctx, function(ub_result, string), string, integer, integer) : ub_query, string
cancel : function (ub_ctx, ub_query) : boolean, string
process : function (ub_ctx) : integer
wait : function (ub_ctx) : integer
poll : function (ub_ctx) : boolean
end
new : function (ub_config) : ub_ctx
_VERSION : string
_LIBVER : string
config : ub_config
end
return lunbound