]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
minor lua stuff
authorMiek Gieben <miekg@NLnetLabs.nl>
Wed, 27 Jul 2005 14:48:20 +0000 (14:48 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Wed, 27 Jul 2005 14:48:20 +0000 (14:48 +0000)
tests/lua-rns.c

index 6f76262343faebbdd2e0a59b975b1556d9326d92..be0e94b256573f4907ac5b8a75cadbd07f1325c7 100644 (file)
@@ -42,8 +42,17 @@ version(FILE *f, char *progname)
 }
 
 /*
- * Encapsulate our ldns function in a lua form
- * Start of Defintions
+=====================================================
+ Lua bindings for ldns
+=====================================================
+*/
+
+/*
+ * http://lua-users.org/wiki/UserDataWithPointerExample
+ * is the way to go here, as we do our own mem management
+ * in ldns
+ *
+ * Seems pretty straitforward
  */
 
 /* Test function which doesn't call ldns stuff yet */
@@ -71,11 +80,12 @@ lua_ldns_average(lua_State *L)
        return 2;
 }
 
-
 /*
- * End of Defintions
- * Encapsulate our ldns function in a lua form
- */
+=====================================================
+ Lua bindings for ldns
+=====================================================
+*/
+
 void
 register_ldns_functions(void)
 {