ua_server_internal.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef UA_SERVER_INTERNAL_H_
  2. #define UA_SERVER_INTERNAL_H_
  3. #include "ua_server.h"
  4. #include "ua_nodestore.h"
  5. #include "ua_session_manager.h"
  6. #include "ua_securechannel_manager.h"
  7. /** Mapping of namespace-id and url to an external nodestore. For namespaces
  8. that have no mapping defined, the internal nodestore is used by default. */
  9. typedef struct UA_ExternalNamespace {
  10. UA_UInt16 index;
  11. UA_String url;
  12. UA_ExternalNodeStore externalNodeStore;
  13. } UA_ExternalNamespace;
  14. void UA_ExternalNamespace_init(UA_ExternalNamespace *ens);
  15. void UA_ExternalNamespace_deleteMembers(UA_ExternalNamespace *ens);
  16. struct UA_Server {
  17. UA_ApplicationDescription description;
  18. UA_Int32 endpointDescriptionsSize;
  19. UA_EndpointDescription *endpointDescriptions;
  20. UA_ByteString serverCertificate;
  21. UA_SecureChannelManager secureChannelManager;
  22. UA_SessionManager sessionManager;
  23. UA_Logger logger;
  24. UA_NodeStore *nodestore;
  25. UA_Int32 externalNamespacesSize;
  26. UA_ExternalNamespace *externalNamespaces;
  27. };
  28. UA_AddNodesResult
  29. UA_Server_addNodeWithSession(UA_Server *server, UA_Session *session, const UA_Node **node,
  30. const UA_ExpandedNodeId *parentNodeId, const UA_NodeId *referenceTypeId);
  31. UA_StatusCode
  32. UA_Server_addReferenceWithSession(UA_Server *server, UA_Session *session, const UA_AddReferencesItem *item);
  33. #endif /* UA_SERVER_INTERNAL_H_ */