2019-12-28 12:16:32 +01:00
|
|
|
#ifndef API_H
|
|
|
|
#define API_H
|
|
|
|
|
2021-09-11 04:22:30 +02:00
|
|
|
#include <lua.h>
|
|
|
|
#include <lauxlib.h>
|
|
|
|
#include <lualib.h>
|
2019-12-28 12:16:32 +01:00
|
|
|
|
|
|
|
#define API_TYPE_FONT "Font"
|
2021-06-23 12:21:36 +02:00
|
|
|
#define API_TYPE_PROCESS "Process"
|
2022-03-06 06:59:22 +01:00
|
|
|
#define API_TYPE_DIRMONITOR "Dirmonitor"
|
2022-12-02 23:06:35 +01:00
|
|
|
#define API_TYPE_NATIVE_PLUGIN "NativePlugin"
|
2019-12-28 12:16:32 +01:00
|
|
|
|
2021-12-11 21:25:35 +01:00
|
|
|
#define API_CONSTANT_DEFINE(L, idx, key, n) (lua_pushnumber(L, n), lua_setfield(L, idx - 1, key))
|
|
|
|
|
2019-12-28 12:16:32 +01:00
|
|
|
void api_load_libs(lua_State *L);
|
|
|
|
|
|
|
|
#endif
|