Implements DB interoperability b/w ntopng and nProbe

This commit is contained in:
Simone Mainardi 2017-08-11 16:51:10 +02:00
parent e0d7ac9ade
commit a86f3dd36e
10 changed files with 117 additions and 11 deletions

View file

@ -495,7 +495,8 @@ class NetworkInterface {
void getFlowsStatus(lua_State *vm);
void startDBLoop() { if(db) db->startDBLoop(); };
inline bool createDBSchema() {if(db) {return db->createDBSchema();} return false;};
inline bool createDBSchema() { if(db) { return db->createDBSchema(); } return false; };
inline bool createNprobeDBView() { if(db) { return db->createNprobeDBView(); } return false; };
#ifdef NTOPNG_PRO
inline void getFlowDevices(lua_State *vm) {
if(flow_interfaces_stats) flow_interfaces_stats->luaDeviceList(vm); else lua_newtable(vm);