summaryrefslogtreecommitdiff
path: root/im/src/lua5/imlua_wmv.c
diff options
context:
space:
mode:
Diffstat (limited to 'im/src/lua5/imlua_wmv.c')
-rwxr-xr-xim/src/lua5/imlua_wmv.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/im/src/lua5/imlua_wmv.c b/im/src/lua5/imlua_wmv.c
new file mode 100755
index 0000000..7f61030
--- /dev/null
+++ b/im/src/lua5/imlua_wmv.c
@@ -0,0 +1,44 @@
+/** \file
+ * \brief wmv format Lua 5 Binding
+ *
+ * See Copyright Notice in cd.h
+ */
+
+#include <stdlib.h>
+#include <stdio.h>
+
+#include "im_format_wmv.h"
+
+#include <lua.h>
+#include <lauxlib.h>
+
+
+static int imlua_FormatRegisterWMV(lua_State *L)
+{
+ (void)L;
+ imFormatRegisterWMV();
+ return 0;
+}
+
+static const struct luaL_reg imlib[] = {
+ {"FormatRegisterWMV", imlua_FormatRegisterWMV},
+ {NULL, NULL},
+};
+
+
+static int imlua_wmv_open (lua_State *L)
+{
+ imFormatRegisterWMV();
+ luaL_register(L, "im", imlib); /* leave "im" table at the top of the stack */
+ return 1;
+}
+
+int luaopen_imlua_wmv(lua_State* L)
+{
+ return imlua_wmv_open(L);
+}
+
+int luaopen_imlua_wmv51(lua_State* L)
+{
+ return imlua_wmv_open(L);
+}