Exemplo n.º 1
0
/*============================================================================
 * OpcUa_ProxyStub_GetConfigString
 *===========================================================================*/
OpcUa_StringA OPCUA_DLLCALL OpcUa_ProxyStub_GetConfigString()
{
    if(OpcUa_ProxyStub_g_uNoOfInits == 0)
    {
        return (OpcUa_StringA)"ProxyStub not initialized!";
    }
    else
    {
        if(OpcUa_IsBad(OpcUa_ProxyStub_UpdateConfigString()))
        {
            return (OpcUa_StringA)"Could not update ConfigString!";
        }
        else
        {
            return OpcUa_ProxyStub_g_pConfigString;
        }
    }
}
Exemplo n.º 2
0
/*============================================================================
 * OpcUa_ProxyStub_GetConfigString
 *===========================================================================*/
OpcUa_StringA OPCUA_DLLCALL OpcUa_ProxyStub_GetConfigString()
{
#if OPCUA_USE_SYNCHRONISATION
    if(OpcUa_ProxyStub_g_hGlobalsMutex == OpcUa_Null)
    {
        return (OpcUa_StringA)"ProxyStub not initialized!";
    }
    else
#endif /* OPCUA_USE_SYNCHRONISATION */
    {
        if(OpcUa_IsBad(OpcUa_ProxyStub_UpdateConfigString()))
        {
            return (OpcUa_StringA)"Could not update ConfigString!";
        }
        else
        {
            return OpcUa_ProxyStub_g_pConfigString;
        }
    }
}