}
/*
- * 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 */
return 2;
}
-
/*
- * End of Defintions
- * Encapsulate our ldns function in a lua form
- */
+=====================================================
+ Lua bindings for ldns
+=====================================================
+*/
+
void
register_ldns_functions(void)
{