Inital commit. Meisten features sind implementiert und müssen getestet werden

This commit is contained in:
2020-07-15 10:49:03 +02:00
commit e1dcd55757
12 changed files with 632 additions and 0 deletions

35
src/thrawn_api.h Normal file
View File

@@ -0,0 +1,35 @@
#if !defined(THRAWN_API_H)
#define THRAWN_API_H
extern "C"
{
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
#include <vector>
#include <string>
#include "Service.h"
//Functions for LUA
int thrawn_log(lua_State* lua);
int thrawn_register_service(lua_State* lua);
int thrawn_subscribe(lua_State* lua);
int thrawn_publish(lua_State* lua);
int thrawn_create_topic_state(lua_State* lua);
int thrawn_topic_state_str(lua_State* lua);
int thrawn_topic_cache(lua_State* lua);
// Function in LUA
void call_thrawn_on_start(LuaService& service);
void call_thrawn_on_update(LuaService& service, TopicState state);
#endif // THRAWN_API_H