summaryrefslogtreecommitdiff
path: root/src/l_crypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/l_crypt.c')
-rw-r--r--src/l_crypt.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/l_crypt.c b/src/l_crypt.c
new file mode 100644
index 0000000..bdccaf5
--- /dev/null
+++ b/src/l_crypt.c
@@ -0,0 +1,45 @@
+/*
+ * anylike
+ *
+ * anylike is a ...
+ *
+ *
+ * Copyright (C) 2009-2010 Markus Grueneis <gimpf@anylike.org>
+ * Christian Pointner <equinox@anylike.org>
+ *
+ * This file is part of anylike.
+ *
+ * anylike is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * any later version.
+ *
+ * anylike is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with anylike. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <lua50/lua.h>
+
+#include "l_crypt.h"
+
+static int l_crypt_test(lua_State *L) {
+ lua_pushstring(L, "crypt test called");
+ return 1;
+}
+
+static const struct luaL_reg cryptlib [] = {
+ { "test", l_crypt_test },
+ { NULL, NULL }
+};
+
+
+LUALIB_API int luaopen_crypt(lua_State *L)
+{
+ luaL_openlib(L, "crypt", cryptlib, 0);
+ return 1;
+}