|
|
@ -327,12 +327,12 @@ static int drawPage(lua_State *L) {
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static const struct luaL_reg djvu_func[] = {
|
|
|
|
static const struct luaL_Reg djvu_func[] = {
|
|
|
|
{"openDocument", openDocument},
|
|
|
|
{"openDocument", openDocument},
|
|
|
|
{NULL, NULL}
|
|
|
|
{NULL, NULL}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static const struct luaL_reg djvudocument_meth[] = {
|
|
|
|
static const struct luaL_Reg djvudocument_meth[] = {
|
|
|
|
{"openPage", openPage},
|
|
|
|
{"openPage", openPage},
|
|
|
|
{"getPages", getNumberOfPages},
|
|
|
|
{"getPages", getNumberOfPages},
|
|
|
|
{"getTOC", getTableOfContent},
|
|
|
|
{"getTOC", getTableOfContent},
|
|
|
@ -341,7 +341,7 @@ static const struct luaL_reg djvudocument_meth[] = {
|
|
|
|
{NULL, NULL}
|
|
|
|
{NULL, NULL}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static const struct luaL_reg djvupage_meth[] = {
|
|
|
|
static const struct luaL_Reg djvupage_meth[] = {
|
|
|
|
{"getSize", getPageSize},
|
|
|
|
{"getSize", getPageSize},
|
|
|
|
{"getUsedBBox", getUsedBBox},
|
|
|
|
{"getUsedBBox", getUsedBBox},
|
|
|
|
{"close", closePage},
|
|
|
|
{"close", closePage},
|
|
|
|