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/go1 Commit: 1ad1e656f00333be9690995a8a8e45b83ce2a01c Parents: 1d1bf7f Author: Alan Conway <acon...@redhat.com> Authored: Mon Oct 16 10:55:07 2017 +0100 Committer: Alan Conway <acon...@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-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org