mistserver/src/controller/controller_updater.h
2015-04-05 21:38:36 +02:00

21 lines
655 B
C++

/// \file controller_updater.cpp
/// Contains all code for the controller updater.
#include <string>
#ifndef SHARED_SECRET
#define SHARED_SECRET "empty"
#endif
namespace Controller {
extern bool restarting;///< Signals if the controller is shutting down (false) or restarting (true).
extern JSON::Value updates;
extern std::string uniqId;
std::string readFile(std::string filename);
bool writeFile(std::string filename, std::string & contents);
JSON::Value CheckUpdateInfo();
void CheckUpdates();
void updateComponent(const std::string & component, const std::string & md5sum, Socket::Connection & updrConn);
} //Controller namespace