chiark / gitweb /
adns compiles and does not work
[chiark-tcl.git] / base / tables-examples.tct
index 9165827456f282900c00e23fafc350860a70cfd6..696583a2fc139baafbc7556d1f203555d3f5d953 100644 (file)
@@ -19,6 +19,10 @@ Type ulong:                  uint32_t @
 Type long:                     long @
 Type string:                   const char *@
 
+Type adnsresults:              adns_answer *@
+Init adnsresults               @=0;
+Fini adnsresults               free(@);
+
 Type charfrom(const char *opts, const char *what):     int
 
 H-Include      "hbytes.h"
@@ -36,6 +40,37 @@ Table toplevel TopLevel_Command
        ulong
                subcmd  enum(ULong_SubCommand,"ulong subcommand")
                ...     obj
+       adns
+               subcmd  enum(Adns_SubCommand,"adns subcommand")
+               ...     obj
+
+Table adns Adns_SubCommand
+       lookup
+               rrtype  enum(AdnsTclRRTypeInfo, "rrtype")
+               domain  string
+               ...     obj
+               =>      obj
+       synch
+               rrtype  enum(AdnsTclRRTypeInfo, "rrtype")
+               domain  string
+               ...     obj
+               =>      obj
+       asynch
+               on_yes  obj
+               on_no   obj
+               on_fail obj
+               xargs   obj
+               rrtype  enum(AdnsTclRRTypeInfo, "rrtype")
+               domain  string
+               ...     obj
+               =>      iddata(&adnstcl_queries)
+       asynch-cancel
+               query   iddata(&adnstcl_queries)
+       new-resolver
+               ...     obj
+               =>      iddata(&adnstcl_resolvers)
+       destroy-resolver
+               res     iddata(&adnstcl_resolvers)
 
 Table maskmap MaskMap_SubCommand
        lookup