ACThirdPartyAppIdContextSwap::~ACThirdPartyAppIdContextSwap()
{
+ const AppIdContext& ctxt = inspector.get_ctxt();
+ std::string file_path = ctxt.get_tp_appid_ctxt()->get_user_config();
+ ctxt.get_odp_ctxt().get_app_info_mgr().dump_appid_configurations(file_path);
LogMessage("== third-party configuration swap complete\n");
}
int tinit() override { return 0; }
bool tfini(bool, bool) override { return false; }
+ const string& get_user_config() const override { return user_config; }
+
+private:
+ const string user_config = "";
};
class ThirdPartyAppIdSessionImpl : public ThirdPartyAppIdSession
static void set_tp_reload_in_progress(bool value) { tp_reload_in_progress = value; }
static bool get_tp_reload_in_progress() { return tp_reload_in_progress; }
+ virtual const std::string& get_user_config() const = 0;
+
protected:
const uint32_t api_version;
const std::string name;