summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorroot <[email protected]>2024-11-01 03:10:48 +0000
committerroot <[email protected]>2024-11-04 03:40:39 +0000
commitdd9443aedf1367dd98e73d16cc675dc87642c927 (patch)
tree23eaaa71305496abf3e1606febf1e66f36feb0d5 /include
parenta4157944287874d60378e4e48b9415eb44f0b0e2 (diff)
session_flags adapt stellar 2.0(rebase develop-2.0)
Diffstat (limited to 'include')
-rw-r--r--include/stellar/session_flags.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/stellar/session_flags.h b/include/stellar/session_flags.h
index 2aeace8..e5e17bb 100644
--- a/include/stellar/session_flags.h
+++ b/include/stellar/session_flags.h
@@ -1,11 +1,6 @@
#pragma once
-#include <stddef.h>
-#include <stdint.h>
-
-#define MESSAGE_MAGIC 0x12345678
-
-#define SESSION_FLAGS_MESSAGE_TOPIC "TOPIC_SESSION_FLAGS"
+#include "stellar/session.h"
enum
{
@@ -46,10 +41,16 @@ enum
#define SESSION_FLAGS_BIDIRECTIONAL (SESSION_FLAGS_START << session_flags_bidirectional_mask)
#define SESSION_FLAGS_TUNNELING (SESSION_FLAGS_START << session_flags_tunneling_mask)
+#define MESSAGE_MAGIC 0x12345678
struct session_flags_message
{
int magic;
uint64_t flags;
uint32_t array_num;
uint32_t *packet_sequence_array;
-}; \ No newline at end of file
+};
+
+
+void session_flags_topic_free(void *msg, void *msg_free_arg);
+int stellar_session_flags_create_topic(struct stellar_module_manager *mod_mgr);
+int stellar_session_flags_subscribe(struct stellar_module_manager *mod_mgr, on_msg_cb_func *cb, void *args); \ No newline at end of file