X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fmemcached.h;h=195ce7ab4fd509b246e295ad0e6ef320b17f8d78;hb=701592b9754d2ace633882791c755826e3a8af68;hp=8a0b17955a229a8f75560c6e13c8a2a909b22897;hpb=d0f9a32dd1442ba083972642d6fed5cd59bce583;p=awesomized%2Flibmemcached diff --git a/libtest/memcached.h b/libtest/memcached.h index 8a0b1795..195ce7ab 100644 --- a/libtest/memcached.h +++ b/libtest/memcached.h @@ -40,34 +40,7 @@ namespace libtest { libtest::Server *build_memcached(const std::string& hostname, const in_port_t try_port); -libtest::Server *build_memcached_light(const std::string& socket_file, const in_port_t try_port); - libtest::Server *build_memcached_socket(const std::string& socket_file, const in_port_t try_port); -libtest::Server *build_memcached_sasl(const std::string& hostname, const in_port_t try_port, const std::string& username, const std::string& password); - -libtest::Server *build_memcached_sasl_socket(const std::string& socket_file, const in_port_t try_port, const std::string& username, const std::string& password); - -} - -#if defined(LIBMEMCACHED) && LIBMEMCACHED -bool operator== (const memcached_st&c memc, const memcached_return_t rc) -{ - if (memcached_last_error(&memc) == rc) - { - return true; - } - - return false; } -bool operator!= (const memcached_st&c memc, const memcached_return_t rc) -{ - if (memcached_last_error(&memc) != rc) - { - return true; - } - - return false; -} -#endif