ua_pubsub_manager.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  4. *
  5. * Copyright (c) 2017-2018 Fraunhofer IOSB (Author: Andreas Ebner)
  6. */
  7. #ifndef UA_PUBSUB_MANAGER_H_
  8. #define UA_PUBSUB_MANAGER_H_
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #include "ua_pubsub.h"
  13. #include "ua_server_pubsub.h"
  14. typedef struct UA_PubSubManager{
  15. //Connections and PublishedDataSets can exist alone (own lifecycle) -> top level components
  16. size_t connectionsSize;
  17. UA_PubSubConnection *connections;
  18. size_t publishedDataSetsSize;
  19. UA_PublishedDataSet *publishedDataSets;
  20. } UA_PubSubManager;
  21. void UA_PubSubManager_delete(UA_Server *server, UA_PubSubManager *pubSubManager);
  22. void UA_PubSubManager_generateUniqueNodeId(UA_Server *server, UA_NodeId *nodeId);
  23. UA_UInt32
  24. UA_PubSubConfigurationVersionTimeDifference(void);
  25. #ifdef __cplusplus
  26. } // extern "C"
  27. #endif
  28. #endif /* UA_PUBSUB_MANAGER_H_ */