X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Ferror.hpp;h=252101aca05e06f6db137f172ee3a832757ac18a;hb=d63f10a9af5e838f2accccc686372b6d44227057;hp=c3c83fade2c3a16f9d7a54385e69b0e0d5522dbc;hpb=f0b9c972a973d997db6660680938dd5acb2baa46;p=m6w6%2Flibmemcached diff --git a/libmemcached/error.hpp b/libmemcached/error.hpp index c3c83fad..252101ac 100644 --- a/libmemcached/error.hpp +++ b/libmemcached/error.hpp @@ -35,16 +35,21 @@ * */ -#pragma once - #include +#pragma once + #ifdef __cplusplus #define STRINGIFY(x) #x #define TOSTRING(x) STRINGIFY(x) #define MEMCACHED_AT __FILE__ ":" TOSTRING(__LINE__) +LIBMEMCACHED_LOCAL +memcached_return_t memcached_set_parser_error(memcached_st& memc, + const char *at, + const char *format, ...); + LIBMEMCACHED_LOCAL memcached_return_t memcached_set_error(memcached_st&, memcached_return_t rc, const char *at); @@ -81,4 +86,19 @@ LIBMEMCACHED_LOCAL LIBMEMCACHED_LOCAL memcached_return_t memcached_set_errno(memcached_server_st&, int local_errno, const char *at); +LIBMEMCACHED_LOCAL +bool memcached_has_current_error(memcached_st&); + +LIBMEMCACHED_LOCAL +bool memcached_has_current_error(memcached_server_st&); + +LIBMEMCACHED_LOCAL +void memcached_error_free(memcached_st&); + +LIBMEMCACHED_LOCAL +void memcached_error_free(memcached_server_st&); + +LIBMEMCACHED_LOCAL +memcached_error_t *memcached_error_copy(const memcached_server_st&); + #endif