X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/3a9bc658f505e423b3be181948f1870a09915ea9..114e097d3658e41e7946b5d5ba1ad2ffdc7fe2d9:/projects/rlm_stg/stg_client.h?ds=sidebyside diff --git a/projects/rlm_stg/stg_client.h b/projects/rlm_stg/stg_client.h index 82d2287b..b90b0e60 100644 --- a/projects/rlm_stg/stg_client.h +++ b/projects/rlm_stg/stg_client.h @@ -65,15 +65,18 @@ public: Error(const std::string& message) : runtime_error(message) {} }; - typedef bool (*Callback)(void* data, const RESULT& result); + typedef bool (*Callback)(void* /*data*/, const RESULT& /*result*/, bool /*status*/); STG_CLIENT(const std::string& address, Callback callback, void* data); + STG_CLIENT(const STG_CLIENT& rhs); ~STG_CLIENT(); bool stop(); + bool connected() const; static STG_CLIENT* get(); static bool configure(const std::string& address, Callback callback, void* data); + static bool reconnect(); bool request(TYPE type, const std::string& userName, const std::string& password, const PAIRS& pairs);