chiark / gitweb /
dgram compiles and works; dispatch()
[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                 subcmd  enum(Adns/_SubCommand, "adns subcommand")
27                 ...     obj
28
29 Table adns Adns_SubCommand
30         lookup
31                 rrtype  enum(AdnsTclRRTypeInfo/, "rrtype")
32                 domain  string
33                 ...     obj
34                 =>      obj
35         synch
36                 rrtype  enum(AdnsTclRRTypeInfo/, "rrtype")
37                 domain  string
38                 ...     obj
39                 =>      obj
40         asynch
41                 on_yes  obj
42                 on_no   obj
43                 on_fail obj
44                 xargs   obj
45                 rrtype  enum(AdnsTclRRTypeInfo/, "rrtype")
46                 domain  string
47                 ...     obj
48                 =>      iddata(&cht_adnstcl_queries)
49         asynch-cancel
50                 query   iddata(&cht_adnstcl_queries)
51         new-resolver
52                 ...     obj
53                 =>      iddata(&cht_adnstcl_resolvers)
54         set-default-resolver
55                 res     iddata(&cht_adnstcl_resolvers)
56         destroy-resolver
57                 res     iddata(&cht_adnstcl_resolvers)
58