summaryrefslogtreecommitdiff
path: root/src/lua5/imlua_capture.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua5/imlua_capture.c')
-rw-r--r--src/lua5/imlua_capture.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/lua5/imlua_capture.c b/src/lua5/imlua_capture.c
index 59ec0fb..3029cd5 100644
--- a/src/lua5/imlua_capture.c
+++ b/src/lua5/imlua_capture.c
@@ -2,7 +2,7 @@
* \brief IM Lua 5 Binding
*
* See Copyright Notice in im_lib.h
- * $Id: imlua_capture.c,v 1.2 2009/08/12 04:09:17 scuri Exp $
+ * $Id: imlua_capture.c,v 1.3 2010/04/25 21:51:29 scuri Exp $
*/
#include <string.h>
@@ -68,7 +68,7 @@ static int imluaVideoCaptureDeviceDesc (lua_State *L)
}
/*****************************************************************************\
- im.VideoCaptureDeviceDesc(device)
+ im.VideoCaptureReloadDevices()
\*****************************************************************************/
static int imluaVideoCaptureReloadDevices (lua_State *L)
{
@@ -77,6 +77,16 @@ static int imluaVideoCaptureReloadDevices (lua_State *L)
}
/*****************************************************************************\
+ im.VideoCaptureReleaseDevices()
+\*****************************************************************************/
+static int imluaVideoCaptureReleaseDevices (lua_State *L)
+{
+ (void)L;
+ imVideoCaptureReleaseDevices();
+ return 0;
+}
+
+/*****************************************************************************\
im.VideoCaptureCreate()
\*****************************************************************************/
static int imluaVideoCaptureCreate (lua_State *L)
@@ -381,6 +391,7 @@ static const luaL_reg imcapture_lib[] = {
{"VideoCaptureDeviceCount", imluaVideoCaptureDeviceCount},
{"VideoCaptureDeviceDesc", imluaVideoCaptureDeviceDesc},
{"VideoCaptureReloadDevices", imluaVideoCaptureReloadDevices},
+ {"VideoCaptureReleaseDevices", imluaVideoCaptureReleaseDevices},
{"VideoCaptureCreate", imluaVideoCaptureCreate},
{"VideoCaptureDestroy", imluaVideoCaptureDestroy},
{NULL, NULL}