summaryrefslogtreecommitdiff
path: root/src/lua5/imlua_wmv.c
blob: d715b373f622be8f89b86c642e47062863b24f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/** \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);
}