Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions camera-1.0-0.rockspec

This file was deleted.

8 changes: 6 additions & 2 deletions opencv/opencv.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
#include <luaT.h>
#include <TH.h>

#include "lauxlib.h"
#include "lualib.h"

#include <dirent.h>
#include <errno.h>
#include <time.h>
Expand Down Expand Up @@ -132,14 +135,15 @@ static int l_releaseCam (lua_State *L) {
}

// Register functions
static const struct luaL_reg opencv [] = {
static const struct luaL_Reg opencv [] = { // replace luaL_reg with luaL_Reg
{"initCam", l_initCam},
{"grabFrame", l_grabFrame},
{"releaseCam", l_releaseCam},
{NULL, NULL} /* sentinel */
};

int luaopen_libcamopencv (lua_State *L) {
luaL_openlib(L, "libcamopencv", opencv, 0);
// luaL_openlib(L, "libcamopencv", opencv, 0);
luaL_newlib(L, opencv); // luaL_openlib is deprecated; use luaL_newlib to register libraries
return 1;
}