You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2020/08/04 18:57:55 UTC

[qpid-dispatch] 09/32: Dataplane: Added setter for dynamic in qdr_terminus_t

This is an automated email from the ASF dual-hosted git repository.

tross pushed a commit to branch dev-protocol-adaptors
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git

commit 6ea13c06c6d4921d9454f4f6fff3318b8c1a361f
Author: Ted Ross <tr...@apache.org>
AuthorDate: Tue Jun 2 16:19:40 2020 -0400

    Dataplane: Added setter for dynamic in qdr_terminus_t
---
 include/qpid/dispatch/protocol_adaptor.h | 9 +++++++++
 src/router_core/terminus.c               | 6 ++++++
 2 files changed, 15 insertions(+)

diff --git a/include/qpid/dispatch/protocol_adaptor.h b/include/qpid/dispatch/protocol_adaptor.h
index b96dc41..9920aba 100644
--- a/include/qpid/dispatch/protocol_adaptor.h
+++ b/include/qpid/dispatch/protocol_adaptor.h
@@ -537,6 +537,15 @@ bool qdr_terminus_is_anonymous(qdr_terminus_t *term);
 bool qdr_terminus_is_coordinator(qdr_terminus_t *term);
 
 /**
+ * qdr_terminus_set_dynamic
+ *
+ * Set this terminus to be dynamic.
+ *
+ * @param term A qdr_terminus pointer returned by qdr_terminus()
+ */
+void qdr_terminus_set_dynamic(qdr_terminus_t *term);
+
+/**
  * qdr_terminus_is_dynamic
  *
  * Indicate whether this terminus represents a dynamic endpoint.
diff --git a/src/router_core/terminus.c b/src/router_core/terminus.c
index b6bb209..9674987 100644
--- a/src/router_core/terminus.c
+++ b/src/router_core/terminus.c
@@ -299,6 +299,12 @@ bool qdr_terminus_is_coordinator(qdr_terminus_t *term)
 }
 
 
+void qdr_terminus_set_dynamic(qdr_terminus_t *term)
+{
+    term->dynamic = true;
+}
+
+
 bool qdr_terminus_is_dynamic(qdr_terminus_t *term)
 {
     return term->dynamic;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org