From: Miek Gieben Date: Wed, 27 Jul 2005 14:48:20 +0000 (+0000) Subject: minor lua stuff X-Git-Tag: release-0.70~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7273b99d64ecda136b1eb804a7c5f7b3385128c5;p=thirdparty%2Fldns.git minor lua stuff --- diff --git a/tests/lua-rns.c b/tests/lua-rns.c index 6f762623..be0e94b2 100644 --- a/tests/lua-rns.c +++ b/tests/lua-rns.c @@ -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) {