mistserver/src/controller/controller_storage.h
2014-10-02 16:12:19 +02:00

22 lines
623 B
C++

#include <string>
#include <mist/json.h>
#include <mist/config.h>
#include <mist/tinythread.h>
namespace Controller {
extern Util::Config conf;///< Global storage of configuration.
extern JSON::Value Storage; ///< Global storage of data.
extern tthread::mutex logMutex;///< Mutex for log thread.
extern tthread::mutex configMutex;///< Mutex for server config access.
/// Store and print a log message.
void Log(std::string kind, std::string message);
/// Write contents to Filename.
bool WriteFile(std::string Filename, std::string contents);
void handleMsg(void * err);
void writeConfig();
}