qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acon...@apache.org
Subject qpid-proton git commit: PROTON-1619: restore pn_connection_driver_log functions, deprecated.
Date Mon, 16 Oct 2017 09:56:24 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master 1d1bf7fdd -> 1ad1e656f


PROTON-1619: restore pn_connection_driver_log functions, deprecated.

Preserve ABI compatibility with 0.17: restore but mark deprecated.


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

Branch: refs/heads/master
Commit: 1ad1e656f00333be9690995a8a8e45b83ce2a01c
Parents: 1d1bf7f
Author: Alan Conway <aconway@redhat.com>
Authored: Mon Oct 16 10:55:07 2017 +0100
Committer: Alan Conway <aconway@redhat.com>
Committed: Mon Oct 16 10:55:07 2017 +0100

----------------------------------------------------------------------
 proton-c/include/proton/connection_driver.h |  7 +++++++
 proton-c/src/core/connection_driver.c       | 15 +++++++++++++++
 2 files changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/1ad1e656/proton-c/include/proton/connection_driver.h
----------------------------------------------------------------------
diff --git a/proton-c/include/proton/connection_driver.h b/proton-c/include/proton/connection_driver.h
index 1ad4469..7bd32ef 100644
--- a/proton-c/include/proton/connection_driver.h
+++ b/proton-c/include/proton/connection_driver.h
@@ -251,6 +251,13 @@ PN_EXTERN pn_connection_driver_t* pn_event_batch_connection_driver(pn_event_batc
  */
 #define PN_TRANSPORT_READ_CLOSED PN_TRANSPORT_TAIL_CLOSED
 
+/**@deprecated Use pn_transport_log() */
+PN_EXTERN void pn_connection_driver_log(pn_connection_driver_t *d, const char *msg);
+/**@deprecated Use pn_transport_logf() */
+PN_EXTERN void pn_connection_driver_logf(pn_connection_driver_t *d, const char *fmt, ...);
+/**@deprecated Use pn_transport_vlogf() */
+PN_EXTERN void pn_connection_driver_vlogf(pn_connection_driver_t *d, const char *fmt, va_list
ap);
+
 /**
  * @}
  */

http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/1ad1e656/proton-c/src/core/connection_driver.c
----------------------------------------------------------------------
diff --git a/proton-c/src/core/connection_driver.c b/proton-c/src/core/connection_driver.c
index b60746b..da315f2 100644
--- a/proton-c/src/core/connection_driver.c
+++ b/proton-c/src/core/connection_driver.c
@@ -167,6 +167,21 @@ void pn_connection_driver_errorf(pn_connection_driver_t *d, const char
*name, co
   va_end(ap);
 }
 
+void pn_connection_driver_log(pn_connection_driver_t *d, const char *msg) {
+  pn_transport_log(d->transport, msg);
+}
+
+void pn_connection_driver_logf(pn_connection_driver_t *d, const char *fmt, ...) {
+  va_list ap;
+  va_start(ap, fmt);
+  pn_transport_vlogf(d->transport, fmt, ap);
+  va_end(ap);
+}
+
+void pn_connection_driver_vlogf(pn_connection_driver_t *d, const char *fmt, va_list ap) {
+  pn_transport_vlogf(d->transport, fmt, ap);
+}
+
 pn_connection_driver_t* pn_event_batch_connection_driver(pn_event_batch_t *batch) {
   return (batch->next_event == batch_next) ?
     (pn_connection_driver_t*)((char*)batch - offsetof(pn_connection_driver_t, batch)) :


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


Mime
View raw message