From a2a2f1a78145c8d106b095a5c019ca251bf2923a Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Tue, 25 Jan 2022 22:46:09 -0600 Subject: [PATCH] Move variables out of the ifdef gsoap block, as they are used for Amcrest support, too --- src/zm_monitor.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zm_monitor.h b/src/zm_monitor.h index 7a4b7ad83..4ce0a9b08 100644 --- a/src/zm_monitor.h +++ b/src/zm_monitor.h @@ -438,11 +438,12 @@ protected: std::string diag_path_delta; //ONVIF -#ifdef WITH_GSOAP - struct soap *soap = nullptr; - bool ONVIF_Trigger_State; + bool ONVIF_Trigger_State; //Re-using some variables for Amcrest API support bool ONVIF_Healthy; bool ONVIF_Closes_Event; + +#ifdef WITH_GSOAP + struct soap *soap = nullptr; _tev__CreatePullPointSubscription request; _tev__CreatePullPointSubscriptionResponse response; _tev__PullMessages tev__PullMessages;