chiark / gitweb /
Add a few assertions about *_LLEN in adns.c.
[chiark-tcl.git] / adns / adns.tct
1 # adns binding for Tcl
2 # Copyright 2006 Ian Jackson
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 2 of the
7 # License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
17 # 02110-1301, USA.
18
19
20 Type adnsresults:               adns_answer *@
21 Init adnsresults                @=0;
22 Fini adnsresults                free(@);
23
24 Table *adnstoplevel TopLevel_Command
25         adns
26                 dispatch(Adns/_SubCommand, "adns subcommand")
27
28 Table adns Adns_SubCommand
29         lookup
30                 rrtype  enum(AdnsTclRRTypeInfo/, "rrtype")
31                 domain  string
32                 ...     obj
33                 =>      obj
34         synch
35                 rrtype  enum(AdnsTclRRTypeInfo/, "rrtype")
36                 domain  string
37                 ...     obj
38                 =>      obj
39         asynch
40                 on_yes  obj
41                 on_no   obj
42                 on_fail obj
43                 xargs   obj
44                 rrtype  enum(AdnsTclRRTypeInfo/, "rrtype")
45                 domain  string
46                 ...     obj
47                 =>      iddata(&cht_adnstcl_queries)
48         asynch-cancel
49                 query   iddata(&cht_adnstcl_queries)
50         new-resolver
51                 ...     obj
52                 =>      iddata(&cht_adnstcl_resolvers)
53         set-default-resolver
54                 res     iddata(&cht_adnstcl_resolvers)
55         destroy-resolver
56                 res     iddata(&cht_adnstcl_resolvers)
57