#include <uaserver_config.h>
#include <opcua_statuscodes.h>
#include <uabase_p_atomic.h>
#include <uaserver_browse.h>
#include <uaserver_translate.h>
#include <uaserver_basenode.h>
#include <uaserver_utilities.h>
#include "custom_provider_helper.h"
OPCUA_BEGIN_EXTERN_C
IFMETHODIMP(CustomProvider_BrowseAsync)(UaServer_ProviderBrowseContext *a_pBrowseCtx)
{
OpcUa_Int32 i;
OpcUa_BaseNode *pNode;
OpcUa_NodeId *pNodeId = OpcUa_Null;
OpcUa_InitializeStatus(OpcUa_Module_Server, "CustomProvider_BrowseAsync");
OpcUa_ReturnErrorIfArgumentNull(a_pBrowseCtx);
pReq = a_pBrowseCtx->pRequest;
pRes = a_pBrowseCtx->pResponse;
for (i = 0; i < pReq->NoOfNodesToBrowse; i++)
{
{
if (pNode != OpcUa_Null)
{
{
continue;
}
}
else
{
}
}
}
OpcUa_ReturnStatusCode;
OpcUa_BeginErrorHandling;
OpcUa_FinishErrorHandling;
}
IFMETHODIMP(CustomProvider_TranslateAsync)(UaServer_ProviderTranslateContext *a_pTranslateCtx)
{
OpcUa_UInt32 iNoOfStartingNodes, i;
OpcUa_NodeId *pStartingNode = OpcUa_Null;
for (i = 0; i < iNoOfStartingNodes; i++)
{
if (pNodeAddressSpace == &g_pCustomProvider->AddressSpace)
{
OpcUa_BaseNode *pNode = OpcUa_Null;
if (pNode != OpcUa_Null)
{
{
a_pTranslateCtx->TranslateResult = OpcUa_BadNotReadable;
continue;
}
}
}
}
return OpcUa_Good;
}
OPCUA_END_EXTERN_C