You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2018/10/18 07:33:09 UTC
celix git commit: CELIX-454: Reverts wrong removal of common pubsub
header struct
Repository: celix
Updated Branches:
refs/heads/develop d11ecb9a6 -> 1ffdd947b
CELIX-454: Reverts wrong removal of common pubsub header struct
Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/1ffdd947
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/1ffdd947
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/1ffdd947
Branch: refs/heads/develop
Commit: 1ffdd947bb2e42d0838b46928461ae185a746cee
Parents: d11ecb9
Author: Pepijn Noltes <pe...@gmail.com>
Authored: Thu Oct 18 09:32:46 2018 +0200
Committer: Pepijn Noltes <pe...@gmail.com>
Committed: Thu Oct 18 09:32:46 2018 +0200
----------------------------------------------------------------------
bundles/pubsub/pubsub_spi/include/pubsub_common.h | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/celix/blob/1ffdd947/bundles/pubsub/pubsub_spi/include/pubsub_common.h
----------------------------------------------------------------------
diff --git a/bundles/pubsub/pubsub_spi/include/pubsub_common.h b/bundles/pubsub/pubsub_spi/include/pubsub_common.h
index 3e65cdb..ef4a486 100644
--- a/bundles/pubsub/pubsub_spi/include/pubsub_common.h
+++ b/bundles/pubsub/pubsub_spi/include/pubsub_common.h
@@ -30,5 +30,16 @@
#define PUBSUB_ANNOUNCE_ENDPOINT_LISTENER_SERVICE "pubsub_announce_endpoint_listener"
#define PUBSUB_DISCOVERED_ENDPOINT_LISTENER_SERVICE "pubsub_discovered_endpoint_listener"
+#define MAX_SCOPE_LEN 1024
+#define MAX_TOPIC_LEN 1024
+
+struct pubsub_msg_header{
+ char topic[MAX_TOPIC_LEN];
+ unsigned int type;
+ unsigned char major;
+ unsigned char minor;
+};
+typedef struct pubsub_msg_header pubsub_msg_header_t;
+
#endif /* PUBSUB_COMMON_H_ */