switching from BOOL to VARIANT_BOOL for compatibility
authorVolker Birk <vb@pep-project.org>
Mon, 22 Feb 2016 16:30:19 +0100
changeset 61d5bf2b6538f8
parent 60 a91c51e4f42b
child 62 e01f81c9c881
switching from BOOL to VARIANT_BOOL for compatibility
CpEpEngine.cpp
CpEpEngine.h
pEpCOMServerAdapter.idl
     1.1 --- a/CpEpEngine.cpp	Mon Feb 22 14:41:35 2016 +0100
     1.2 +++ b/CpEpEngine.cpp	Mon Feb 22 16:30:19 2016 +0100
     1.3 @@ -25,21 +25,21 @@
     1.4  
     1.5  #define FAIL(msg) error(msg)
     1.6  
     1.7 -STDMETHODIMP CpEpEngine::verbose_logging(BOOL enable)
     1.8 +STDMETHODIMP CpEpEngine::verbose_logging(VARIANT_BOOL enable)
     1.9  {
    1.10 -    verbose_mode = enable != FALSE;
    1.11 +    verbose_mode = enable != VARIANT_FALSE;
    1.12      return S_OK;
    1.13  }
    1.14  
    1.15 -STDMETHODIMP CpEpEngine::passive_mode(BOOL enable)
    1.16 +STDMETHODIMP CpEpEngine::passive_mode(VARIANT_BOOL enable)
    1.17  {
    1.18 -    ::config_passive_mode(get_session(), enable != FALSE);
    1.19 +    ::config_passive_mode(get_session(), enable != VARIANT_FALSE);
    1.20      return S_OK;
    1.21  }
    1.22  
    1.23 -STDMETHODIMP CpEpEngine::unencrypted_subject(BOOL enable)
    1.24 +STDMETHODIMP CpEpEngine::unencrypted_subject(VARIANT_BOOL enable)
    1.25  {
    1.26 -    ::config_unencrypted_subject(get_session(), enable != FALSE);
    1.27 +    ::config_unencrypted_subject(get_session(), enable != VARIANT_FALSE);
    1.28      return S_OK;
    1.29  }
    1.30  
     2.1 --- a/CpEpEngine.h	Mon Feb 22 14:41:35 2016 +0100
     2.2 +++ b/CpEpEngine.h	Mon Feb 22 16:30:19 2016 +0100
     2.3 @@ -128,12 +128,12 @@
     2.4  public:
     2.5      // runtime config of the adapter
     2.6  
     2.7 -    STDMETHOD(verbose_logging)(BOOL enable);
     2.8 +    STDMETHOD(verbose_logging)(VARIANT_BOOL enable);
     2.9      
    2.10      // runtime config of the engine
    2.11  
    2.12 -    STDMETHOD(passive_mode)(BOOL enable);
    2.13 -    STDMETHOD(unencrypted_subject)(BOOL enable);
    2.14 +    STDMETHOD(passive_mode)(VARIANT_BOOL enable);
    2.15 +    STDMETHOD(unencrypted_subject)(VARIANT_BOOL enable);
    2.16  
    2.17      // basic API
    2.18  
     3.1 --- a/pEpCOMServerAdapter.idl	Mon Feb 22 14:41:35 2016 +0100
     3.2 +++ b/pEpCOMServerAdapter.idl	Mon Feb 22 16:30:19 2016 +0100
     3.3 @@ -17,12 +17,12 @@
     3.4  interface IpEpEngine : IUnknown {
     3.5      // runtime config of the adapter
     3.6  
     3.7 -    HRESULT verbose_logging([in] BOOL enable);
     3.8 +    HRESULT verbose_logging([in] VARIANT_BOOL enable);
     3.9  
    3.10      // runtime config of the engine
    3.11  
    3.12 -    HRESULT passive_mode([in] BOOL enable);
    3.13 -    HRESULT unencrypted_subject([in] BOOL enable);
    3.14 +    HRESULT passive_mode([in] VARIANT_BOOL enable);
    3.15 +    HRESULT unencrypted_subject([in] VARIANT_BOOL enable);
    3.16  
    3.17      // basic API
    3.18