Repository: qpid-proton
Updated Branches:
  refs/heads/master f28b34e68 -> f1b9d008a


PROTON-1117: Add link.detach method to C++ binding


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/f1b9d008
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/f1b9d008
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/f1b9d008

Branch: refs/heads/master
Commit: f1b9d008a81d97504d07bbeb5a36238a1e90c372
Parents: f28b34e
Author: Clifford Jansen <[email protected]>
Authored: Fri Jan 29 00:03:16 2016 -0500
Committer: Clifford Jansen <[email protected]>
Committed: Fri Jan 29 00:03:16 2016 -0500

----------------------------------------------------------------------
 proton-c/bindings/cpp/include/proton/link.hpp | 5 +++++
 proton-c/bindings/cpp/src/link.cpp            | 4 ++++
 2 files changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/f1b9d008/proton-c/bindings/cpp/include/proton/link.hpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/include/proton/link.hpp 
b/proton-c/bindings/cpp/include/proton/link.hpp
index 1852c61..13b965e 100644
--- a/proton-c/bindings/cpp/include/proton/link.hpp
+++ b/proton-c/bindings/cpp/include/proton/link.hpp
@@ -62,6 +62,11 @@ class link : public object<pn_link_t> , public endpoint {
     /// handler::on_link_close.
     PN_CPP_EXTERN void close();
 
+    /// Suspend the link without closing it.  A suspended link may be
+    /// reopened with the same or different link options if supported by
+    /// the peer.
+    PN_CPP_EXTERN void detach();
+
     /// Return sender if this link is a sender, 0 if not.
     PN_CPP_EXTERN class sender sender();
 

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/f1b9d008/proton-c/bindings/cpp/src/link.cpp
----------------------------------------------------------------------
diff --git a/proton-c/bindings/cpp/src/link.cpp 
b/proton-c/bindings/cpp/src/link.cpp
index e79b932..c84d80f 100644
--- a/proton-c/bindings/cpp/src/link.cpp
+++ b/proton-c/bindings/cpp/src/link.cpp
@@ -41,6 +41,10 @@ void link::close() {
     pn_link_close(pn_object());
 }
 
+void link::detach() {
+    pn_link_detach(pn_object());
+}
+
 sender link::sender() {
     return pn_link_is_sender(pn_object()) ? proton::sender(pn_object()) : 
proton::sender();
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to