diff options
Diffstat (limited to 'src/policy_manager/policy_manager.hpp')
-rw-r--r-- | src/policy_manager/policy_manager.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/policy_manager/policy_manager.hpp b/src/policy_manager/policy_manager.hpp index e3ee621..b191b10 100644 --- a/src/policy_manager/policy_manager.hpp +++ b/src/policy_manager/policy_manager.hpp @@ -27,6 +27,8 @@ extern "C" { } } // namespace stm +struct json_object; + class PolicyManager { public: @@ -58,10 +60,15 @@ private: int loadRoleDb(); const char* getStringFromJson(json_object* obj, const char* key); - int getIntFromJson(json_object* obj, const char* key); + int inputJsonFilie(const char* file, json_object** obj); void addStateToJson(const char* key, int is_changed, const char* state, json_object** json_out); std::vector<std::string> parseString(std::string str, char delimiter); std::string deleteSpace(std::string str); }; + +extern const char* getStringFromJson(json_object* obj, const char* key); +extern int getIntFromJson(json_object* obj, const char* key); + + #endif // TMCAGLWM_POLICY_MANAGER_HPP |