From aa972430720163a8d81babdfae08b5bab5d139c3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 12 Jul 2017 12:15:36 +0200 Subject: [PATCH] CCBC-803: make new functions public --- include/libcouchbase/couchbase.h | 2 ++ src/handler.cc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/libcouchbase/couchbase.h b/include/libcouchbase/couchbase.h index a42f9a04..35f87607 100644 --- a/include/libcouchbase/couchbase.h +++ b/include/libcouchbase/couchbase.h @@ -3703,6 +3703,7 @@ void lcb_histogram_print(lcb_HISTOGRAM* hg, FILE* stream); * * @return the pointer to string or NULL if context wasn't specified. */ +LIBCOUCHBASE_API const char * lcb_resp_get_error_context(int cbtype, const lcb_RESPBASE *rb); @@ -3716,6 +3717,7 @@ lcb_resp_get_error_context(int cbtype, const lcb_RESPBASE *rb); * * @return the pointer to string or NULL if ref wasn't specified. */ +LIBCOUCHBASE_API const char * lcb_resp_get_error_ref(int cbtype, const lcb_RESPBASE *rb); diff --git a/src/handler.cc b/src/handler.cc index b909dea0..68ee2d16 100644 --- a/src/handler.cc +++ b/src/handler.cc @@ -1018,6 +1018,7 @@ lcb_resp_get_mutation_token(int cbtype, const lcb_RESPBASE *rb) X(UNLOCK) \ +LIBCOUCHBASE_API const char * lcb_resp_get_error_context(int cbtype, const lcb_RESPBASE *rb) { @@ -1031,6 +1032,7 @@ lcb_resp_get_error_context(int cbtype, const lcb_RESPBASE *rb) return NULL; } +LIBCOUCHBASE_API const char * lcb_resp_get_error_ref(int cbtype, const lcb_RESPBASE *rb) {