--- /dev/null
+function(install_public_headers DIRECTORY)
+ foreach(HEADER IN LISTS ARGN)
+ file(READ ${HEADER} HEADER_IN)
+ string(REGEX REPLACE "include *\"([^\"]+)\"" "include <\\1>" HEADER_OUT "${HEADER_IN}")
+ file(GENERATE
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${HEADER}
+ CONTENT "${HEADER_OUT}"
+ )
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${HEADER}
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${DIRECTORY}
+ )
+ endforeach()
+endfunction()
find_package(Threads REQUIRED)
# locals
+include(InstallPublicHeaders)
include(SafeString)
include(CheckDebug)
include(CheckDecl)
${INCLUDE}/src
)
endforeach()
+
set(AUTOHEADER_FILE mem_config.h)
set(CLIENTS
configure_file(configure.h.in configure.h @ONLY)
-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
- FILES_MATCHING REGEX "\\.h(pp)?$"
+install_public_headers(
+ libhashkit-1.0
+
+ algorithm.h
+ basic_string.h
+ behavior.h
+ digest.h
+ function.h
+ has.h
+ hashkit.h
+ hashkit.hpp
+ str_algorithm.h
+ strerror.h
+ string.h
+ types.h
+ visibility.h
)
configure_file(configure.h.in configure.h @ONLY)
-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
- FILES_MATCHING REGEX "\\.h(pp)?$"
- PATTERN t EXCLUDE
+add_subdirectory(struct)
+add_subdirectory(types)
+
+install_public_headers(
+ libmemcached-1.0
+
+ alloc.h
+ allocators.h
+ analyze.h
+ auto.h
+ basic_string.h
+ behavior.h
+ callback.h
+ callbacks.h
+ defaults.h
+ delete.h
+ deprecated_types.h
+ dump.h
+ encoding_key.h
+ error.h
+ exception.hpp
+ exist.h
+ fetch.h
+ flush_buffers.h
+ flush.h
+ get.h
+ hash.h
+ limits.h
+ memcached.h
+ memcached.hpp
+ options.h
+ parse.h
+ platform.h
+ quit.h
+ result.h
+ return.h
+ sasl.h
+ server.h
+ server_list.h
+ stats.h
+ storage.h
+ strerror.h
+ touch.h
+ triggers.h
+ types.h
+ verbosity.h
+ version.h
+ visibility.h
)
*
*/
-#include <libmemcached-1.0/struct/analysis.h>
+#include "libmemcached-1.0/struct/analysis.h"
#pragma once
#include <sys/types.h>
-#include <libmemcached-1.0/visibility.h>
-#include <libmemcached-1.0/configure.h>
-#include <libmemcached-1.0/platform.h>
-
-#include <libmemcached-1.0/limits.h>
-#include <libmemcached-1.0/defaults.h>
-
-#include <libmemcached-1.0/types/behavior.h>
-#include <libmemcached-1.0/types/callback.h>
-#include <libmemcached-1.0/types/connection.h>
-#include <libmemcached-1.0/types/hash.h>
-#include <libmemcached-1.0/types/return.h>
-#include <libmemcached-1.0/types/server_distribution.h>
-
-#include <libmemcached-1.0/return.h>
-
-#include <libmemcached-1.0/types.h>
-#include <libmemcached-1.0/callbacks.h>
-#include <libmemcached-1.0/alloc.h>
-#include <libmemcached-1.0/triggers.h>
-
-#include <libhashkit-1.0/hashkit.h>
-
-#include <libmemcached-1.0/struct/callback.h>
-#include <libmemcached-1.0/struct/string.h>
-#include <libmemcached-1.0/struct/result.h>
-#include <libmemcached-1.0/struct/allocator.h>
-#include <libmemcached-1.0/struct/sasl.h>
-#include <libmemcached-1.0/struct/memcached.h>
-#include <libmemcached-1.0/struct/server.h>
-#include <libmemcached-1.0/struct/stat.h>
-
-#include <libmemcached-1.0/basic_string.h>
-#include <libmemcached-1.0/error.h>
-#include <libmemcached-1.0/stats.h>
+#include "libmemcached-1.0/visibility.h"
+#include "libmemcached-1.0/configure.h"
+#include "libmemcached-1.0/platform.h"
+
+#include "libmemcached-1.0/limits.h"
+#include "libmemcached-1.0/defaults.h"
+
+#include "libmemcached-1.0/types/behavior.h"
+#include "libmemcached-1.0/types/callback.h"
+#include "libmemcached-1.0/types/connection.h"
+#include "libmemcached-1.0/types/hash.h"
+#include "libmemcached-1.0/types/return.h"
+#include "libmemcached-1.0/types/server_distribution.h"
+
+#include "libmemcached-1.0/return.h"
+
+#include "libmemcached-1.0/types.h"
+#include "libmemcached-1.0/callbacks.h"
+#include "libmemcached-1.0/alloc.h"
+#include "libmemcached-1.0/triggers.h"
+
+#include "libhashkit-1.0/hashkit.h"
+
+#include "libmemcached-1.0/struct/callback.h"
+#include "libmemcached-1.0/struct/string.h"
+#include "libmemcached-1.0/struct/result.h"
+#include "libmemcached-1.0/struct/allocator.h"
+#include "libmemcached-1.0/struct/sasl.h"
+#include "libmemcached-1.0/struct/memcached.h"
+#include "libmemcached-1.0/struct/server.h"
+#include "libmemcached-1.0/struct/stat.h"
+
+#include "libmemcached-1.0/basic_string.h"
+#include "libmemcached-1.0/error.h"
+#include "libmemcached-1.0/stats.h"
// Everything above this line must be in the order specified.
-#include <libmemcached-1.0/allocators.h>
-#include <libmemcached-1.0/analyze.h>
-#include <libmemcached-1.0/auto.h>
-#include <libmemcached-1.0/behavior.h>
-#include <libmemcached-1.0/callback.h>
-#include <libmemcached-1.0/delete.h>
-#include <libmemcached-1.0/dump.h>
-#include <libmemcached-1.0/encoding_key.h>
-#include <libmemcached-1.0/exist.h>
-#include <libmemcached-1.0/fetch.h>
-#include <libmemcached-1.0/flush.h>
-#include <libmemcached-1.0/flush_buffers.h>
-#include <libmemcached-1.0/get.h>
-#include <libmemcached-1.0/hash.h>
-#include <libmemcached-1.0/options.h>
-#include <libmemcached-1.0/parse.h>
-#include <libmemcached-1.0/quit.h>
-#include <libmemcached-1.0/result.h>
-#include <libmemcached-1.0/server.h>
-#include <libmemcached-1.0/server_list.h>
-#include <libmemcached-1.0/storage.h>
-#include <libmemcached-1.0/strerror.h>
-#include <libmemcached-1.0/touch.h>
-#include <libmemcached-1.0/verbosity.h>
-#include <libmemcached-1.0/version.h>
-#include <libmemcached-1.0/sasl.h>
-
-#include <libmemcached-1.0/deprecated_types.h>
+#include "libmemcached-1.0/allocators.h"
+#include "libmemcached-1.0/analyze.h"
+#include "libmemcached-1.0/auto.h"
+#include "libmemcached-1.0/behavior.h"
+#include "libmemcached-1.0/callback.h"
+#include "libmemcached-1.0/delete.h"
+#include "libmemcached-1.0/dump.h"
+#include "libmemcached-1.0/encoding_key.h"
+#include "libmemcached-1.0/exist.h"
+#include "libmemcached-1.0/fetch.h"
+#include "libmemcached-1.0/flush.h"
+#include "libmemcached-1.0/flush_buffers.h"
+#include "libmemcached-1.0/get.h"
+#include "libmemcached-1.0/hash.h"
+#include "libmemcached-1.0/options.h"
+#include "libmemcached-1.0/parse.h"
+#include "libmemcached-1.0/quit.h"
+#include "libmemcached-1.0/result.h"
+#include "libmemcached-1.0/server.h"
+#include "libmemcached-1.0/server_list.h"
+#include "libmemcached-1.0/storage.h"
+#include "libmemcached-1.0/strerror.h"
+#include "libmemcached-1.0/touch.h"
+#include "libmemcached-1.0/verbosity.h"
+#include "libmemcached-1.0/version.h"
+#include "libmemcached-1.0/sasl.h"
+
+#include "libmemcached-1.0/deprecated_types.h"
#ifdef __cplusplus
extern "C" {
#pragma once
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#if 0
-#include <libmemcached/exception.hpp>
+#include "libmemcached/exception.hpp"
#endif
#include <string.h>
*
*/
-#include <libmemcached-1.0/struct/result.h>
+#include "libmemcached-1.0/struct/result.h"
#pragma once
}
#endif
-#include <libmemcached-1.0/struct/sasl.h>
+#include "libmemcached-1.0/struct/sasl.h"
#pragma once
-#include <libmemcached-1.0/struct/server.h>
+#include "libmemcached-1.0/struct/server.h"
#ifdef __cplusplus
extern "C" {
*
*/
-#include <libmemcached-1.0/struct/stat.h>
+#include "libmemcached-1.0/struct/stat.h"
#pragma once
--- /dev/null
+
+install_public_headers(
+ libmemcached-1.0/struct
+
+ allocator.h
+ analysis.h
+ callback.h
+ memcached.h
+ result.h
+ sasl.h
+ server.h
+ stat.h
+ string.h
+)
#include <sasl/sasl.h>
#endif
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
int main(void)
{
#include <stdlib.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
int main(void)
{
#include <cstdlib>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
int main(void)
{
--- /dev/null
+
+install_public_headers(
+ libmemcached-1.0/types
+
+ behavior.h
+ callback.h
+ connection.h
+ hash.h
+ return.h
+ server_distribution.h
+ )
#ifndef PROTOCOL_BINARY_H
#define PROTOCOL_BINARY_H
-#include <libmemcachedprotocol-0.0/vbucket.h>
+#include "libmemcachedprotocol-0.0/vbucket.h"
/**
* \addtogroup Protocol
# include <stdbool.h>
#endif
-#include <libmemcached-1.0/visibility.h>
-#include <libmemcached-1.0/platform.h>
-#include <libmemcachedprotocol-0.0/binary.h>
-#include <libmemcachedprotocol-0.0/callback.h>
+#include "libmemcached-1.0/visibility.h"
+#include "libmemcached-1.0/platform.h"
+#include "libmemcachedprotocol-0.0/binary.h"
+#include "libmemcachedprotocol-0.0/callback.h"
/* Forward declarations */
/*
-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
- FILES_MATCHING REGEX "\\.h(pp)?$"
+install_public_headers(
+ libmemcachedutil-1.0
+
+ flush.h
+ ostream.hpp
+ pid.h
+ ping.h
+ pool.h
+ util.h
+ version.h
)
#pragma once
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#ifdef __cplusplus
extern "C" {
#pragma once
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
-#include <libmemcachedutil-1.0/pid.h>
-#include <libmemcachedutil-1.0/flush.h>
-#include <libmemcachedutil-1.0/ping.h>
-#include <libmemcachedutil-1.0/pool.h>
-#include <libmemcachedutil-1.0/version.h>
+#include "libmemcachedutil-1.0/pid.h"
+#include "libmemcachedutil-1.0/flush.h"
+#include "libmemcachedutil-1.0/ping.h"
+#include "libmemcachedutil-1.0/pool.h"
+#include "libmemcachedutil-1.0/version.h"
Return the number of rows set.
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include "execute.h"
unsigned int execute_set(memcached_st *memc, pairs_st *pairs, unsigned int number_of)
#include <stdio.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "generator.h"
#ifdef __cplusplus
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <stdint.h>
/* -*- Mode: C; tab-width: 2; c-basic-offset: 2; indent-tabs-mode: nil -*- */
#undef NDEBUG
-#include <mem_config.h>
+#include "mem_config.h"
#ifdef HAVE_POLL_H
#include <poll.h>
#include <sys/types.h>
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "libmemcached/socket.hpp"
#include "libmemcachedprotocol-0.0/binary.h"
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <cstdio>
#include <cstring>
#include <getopt.h>
#include <iostream>
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "utilities.h"
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "client_options.h"
#include "utilities.h"
#include <sys/types.h>
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "client_options.h"
#include "utilities.h"
#include <iostream>
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "utilities.h"
#include <iostream>
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "client_options.h"
#include "utilities.h"
#include <iostream>
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "client_options.h"
#include "utilities.h"
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <cstdio>
#include <cstring>
#include <iostream>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
int main(int argc, char *argv[])
{
#include <getopt.h>
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/util.h"
#include "client_options.h"
#include "utilities.h"
#include <iostream>
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "client_options.h"
#include "utilities.h"
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <cassert>
#include <cerrno>
#include <iostream>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "client_options.h"
#include "utilities.h"
* Brian Aker
* Toru Maesaka
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <cstdio>
#include <cstring>
#include <sys/types.h>
#include <sys/types.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "client_options.h"
#include "utilities.h"
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <cerrno>
#include <cstdio>
#include <iostream>
#include <unistd.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "utilities.h"
#include <netdb.h>
#include "ms_task.h"
-#include <libmemcachedprotocol-0.0/binary.h>
+#include "libmemcachedprotocol-0.0/binary.h"
#ifdef __cplusplus
extern "C" {
#include "mem_config.h"
-#include <libmemcached/memcached.h>
+#include "libmemcached/memcached.h"
#include <ctype.h>
#include <inttypes.h>
* Summary:
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include "utilities.h"
#pragma once
#include <getopt.h>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "client_options.h"
#if defined(HAVE_SYS_TIME_H)
murmur.cc
murmur3.cc
murmur3_api.cc
- nohsieh.cc
one_at_a_time.cc
rijndael.cc
str_algorithm.cc
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
export(EXPORT libhashkit)
install(EXPORT libhashkit DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake)
-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
- FILES_MATCHING PATTERN hashkit.h
+
+install_public_headers(
+ libhashkit
+
+ hashkit.h
)
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
# endif
#endif
-#include <libhashkit-1.0/hashkit.h>
+#include "libhashkit-1.0/hashkit.h"
#include "libhashkit/algorithm.h"
#include "libhashkit/is.h"
#include "libhashkit/string.h"
* src/usr.bin/cksum/crc32.c.
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
static const uint32_t crc32tab[256] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
uint32_t hashkit_digest(const hashkit_st *self, const char *key, size_t key_length)
{
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
hashkit_string_st *hashkit_encrypt(hashkit_st *kit,
const char* source, size_t source_length)
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
/* FNV hash'es lifted from Dustin Sallings work */
static uint32_t FNV_32_INIT= 2166136261UL;
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
#if __WORDSIZE == 64 && defined(HAVE_FNV64_HASH)
* the COPYING file in the parent directory for full text.
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
static hashkit_return_t _set_function(struct hashkit_st::hashkit_function_st *self, hashkit_hash_algorithm_t hash_algorithm)
{
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
bool libhashkit_has_algorithm(const hashkit_hash_algorithm_t algo)
{
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
static inline void _hashkit_init(hashkit_st *self)
{
#pragma once
-#include <libhashkit-1.0/hashkit.h>
+#include "libhashkit-1.0/hashkit.h"
* http://www.azillionmonkeys.com/qed/hash.html
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
#undef get16bits
#if (defined(__GNUC__) && defined(__i386__))
* Add big endian support
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
#define hashsize(n) ((uint32_t)1<<(n))
#define hashmask(n) (hashsize(n)-1)
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
#include <math.h>
#if 0
documentation and/or software.
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
#include <string.h>
#include <sys/types.h>
Updated to murmur2 hash - BP
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
#ifdef HAVE_MURMUR_HASH
*
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
#ifdef HAVE_HSIEH_HASH
#error "not supported"
http://en.wikipedia.org/wiki/Jenkins_hash_function
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
uint32_t hashkit_one_at_a_time(const char *key, size_t key_length, void *context)
{
*
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
const char * libhashkit_string_hash(hashkit_hash_algorithm_t type)
{
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
const char *hashkit_strerror(hashkit_st *ptr, hashkit_return_t rc)
{
*/
-#include <libhashkit/common.h>
+#include "libhashkit/common.h"
#include <cassert>
#include <cstring>
export(EXPORT libmemcached)
install(EXPORT libmemcached DESTINATION ${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake)
-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
- DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
- FILES_MATCHING REGEX "(memcached|util)\\.h(pp)?"
- PATTERN csl EXCLUDE
- PATTERN memcached EXCLUDE
- PATTERN util EXCLUDE
+install_public_headers(
+ libmemcached
+
+ memcached.h
+ memcached.hpp
+ util.h
)
# FIXME: dtrace
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
void _libmemcached_free(const memcached_st*, void *mem, void*)
{
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static void calc_largest_consumption(memcached_analysis_st *result,
const uint32_t server_num,
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
#include <assert.h>
#include <iso646.h>
# include <stdio.h>
#endif
-# include <libmemcached/backtrace.hpp>
+# include "libmemcached/backtrace.hpp"
# define assert_msg(__expr, __mesg) \
do \
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static void auto_response(memcached_instance_st* instance, const bool reply, memcached_return_t& rc, uint64_t* value)
{
*
*/
-#include <libmemcached/common.h>
-#include <libmemcached/options.hpp>
-#include <libmemcached/virtual_bucket.h>
+#include "libmemcached/common.h"
+#include "libmemcached/options.hpp"
+#include "libmemcached/virtual_bucket.h"
#include <ctime>
#include <sys/types.h>
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
#include <sys/types.h>
#ifndef __INTEL_COMPILER
#pragma once
-#include <mem_config.h>
+#include "mem_config.h"
#ifdef __cplusplus
# include <cstddef>
# include "libmemcached/windows.hpp"
#endif
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "libmemcached/watchpoint.h"
#include "libmemcached/is.h"
typedef struct memcached_st Memcached;
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
#include <cassert>
typedef void* yyscan_t;
#endif
-#include <libmemcached/common.h>
-#include <libmemcached/csl/server.h>
+#include "libmemcached/common.h"
+#include "libmemcached/csl/server.h"
*
*/
-#include <libmemcached/csl/common.h>
-#include <libmemcached/csl/context.h>
+#include "libmemcached/csl/common.h"
+#include "libmemcached/csl/context.h"
void Context::abort(const char *error_arg, config_tokentype last_token, const char *last_token_str)
{
%{
-#include <libmemcached/csl/common.h>
+#include "libmemcached/csl/common.h"
class Context;
%{
-#include <libmemcached/options.hpp>
+#include "libmemcached/options.hpp"
-#include <libmemcached/csl/context.h>
-#include <libmemcached/csl/symbol.h>
-#include <libmemcached/csl/scanner.h>
+#include "libmemcached/csl/context.h"
+#include "libmemcached/csl/symbol.h"
+#include "libmemcached/csl/scanner.h"
#ifndef __INTEL_COMPILER
# pragma GCC diagnostic ignored "-Wold-style-cast"
%top{
-#include <libmemcached/csl/common.h>
-#include <libmemcached/csl/context.h>
-#include <libmemcached/csl/parser.h>
-#include <libmemcached/csl/symbol.h>
+#include "libmemcached/csl/common.h"
+#include "libmemcached/csl/context.h"
+#include "libmemcached/csl/parser.h"
+#include "libmemcached/csl/symbol.h"
#ifndef __INTEL_COMPILER
#pragma GCC diagnostic ignored "-Wold-style-cast"
#pragma once
-#include <libmemcached/csl/common.h>
+#include "libmemcached/csl/common.h"
union CONFIG_STYPE
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
memcached_return_t memcached_delete(memcached_st *shell, const char *key, size_t key_length,
time_t expiration)
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static memcached_return_t _vdo_udp(memcached_instance_st* instance,
libmemcached_io_vector_st vector[],
all slabs on servers and "grab" the keys.
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static memcached_return_t ascii_dump(Memcached *memc, memcached_dump_fn *callback, void *context, uint32_t number_of_callbacks)
{
*
*/
-#include <libmemcached/common.h>
-#include <libmemcached/assert.hpp>
+#include "libmemcached/common.h"
+#include "libmemcached/assert.hpp"
static void _set_encoding_key(Memcached& memc, const char *key, size_t key_length)
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
#include "libmemcached/assert.hpp"
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static memcached_return_t ascii_exist(Memcached *memc, memcached_instance_st* instance, const char *key, size_t key_length)
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
char *memcached_fetch(memcached_st *shell, char *key, size_t *key_length,
size_t *value_length,
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
bool memcached_flag(const memcached_st& memc, const memcached_flag_t flag)
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static memcached_return_t memcached_flush_binary(Memcached *ptr,
time_t expiration,
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
memcached_return_t memcached_flush_buffers(memcached_st *shell)
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
/*
What happens if no servers exist?
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
#include <sys/time.h>
-#include <libmemcached/virtual_bucket.h>
+#include "libmemcached/virtual_bucket.h"
uint32_t memcached_generate_hash_value(const char *key, size_t key_length, memcached_hash_t hash_algorithm)
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
#include "libmemcached/assert.hpp"
#include <cmath>
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
memcached_return_t initialize_query(Memcached *self, bool increment_query_id)
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static inline void _server_init(memcached_instance_st* self, Memcached *root,
const memcached_string_t& hostname,
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static inline memcached_return_t memcached_validate_key_length(size_t key_length, bool)
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
-#include <libmemcached/options.hpp>
-#include <libmemcached/virtual_bucket.h>
+#include "libmemcached/options.hpp"
+#include "libmemcached/virtual_bucket.h"
static inline bool _memcached_init(Memcached *self)
{
#pragma once
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#pragma once
-#include <libmemcached-1.0/memcached.hpp>
+#include "libmemcached-1.0/memcached.hpp"
+++ /dev/null
-For your convenience libmemcached contains a copy of protocol_binary.h so that
-you may compile libmemcached without having a memcached server with support
-for the binary protocol installed on your computer. Please do not modify this
-fine, but replace it with a fresh copy from a new distribution if they are
-out of sync.
-
-Trond Norbye
+++ /dev/null
-/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
-/*
- * Copyright (c) <2008>, Sun Microsystems, Inc.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY SUN MICROSYSTEMS, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL SUN MICROSYSTEMS, INC. BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-/*
- * Summary: Constants used by to implement the binary protocol.
- *
- * Copy: See Copyright for the status of this software.
- *
- * Author: Trond Norbye <trond.norbye@sun.com>
- */
-
-#ifndef PROTOCOL_BINARY_H
-#define PROTOCOL_BINARY_H
-
-#include <libmemcachedprotocol-0.0/vbucket.h>
-
-/**
- * \addtogroup Protocol
- * @{
- */
-
-/**
- * This file contains definitions of the constants and packet formats
- * defined in the binary specification. Please note that you _MUST_ remember
- * to convert each multibyte field to / from network byte order to / from
- * host order.
- */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
- /**
- * Definition of the legal "magic" values used in a packet.
- * See section 3.1 Magic byte
- */
- typedef enum {
- PROTOCOL_BINARY_REQ = 0x80,
- PROTOCOL_BINARY_RES = 0x81
- } protocol_binary_magic;
-
- /**
- * Definition of the valid response status numbers.
- * See section 3.2 Response Status
- */
- typedef enum {
- PROTOCOL_BINARY_RESPONSE_SUCCESS = 0x00,
- PROTOCOL_BINARY_RESPONSE_KEY_ENOENT = 0x01,
- PROTOCOL_BINARY_RESPONSE_KEY_EEXISTS = 0x02,
- PROTOCOL_BINARY_RESPONSE_E2BIG = 0x03,
- PROTOCOL_BINARY_RESPONSE_EINVAL = 0x04,
- PROTOCOL_BINARY_RESPONSE_NOT_STORED = 0x05,
- PROTOCOL_BINARY_RESPONSE_DELTA_BADVAL = 0x06,
- PROTOCOL_BINARY_RESPONSE_NOT_MY_VBUCKET = 0x07,
- PROTOCOL_BINARY_RESPONSE_AUTH_ERROR = 0x20,
- PROTOCOL_BINARY_RESPONSE_AUTH_CONTINUE = 0x21,
- PROTOCOL_BINARY_RESPONSE_UNKNOWN_COMMAND = 0x81,
- PROTOCOL_BINARY_RESPONSE_ENOMEM = 0x82,
- PROTOCOL_BINARY_RESPONSE_NOT_SUPPORTED = 0x83,
- PROTOCOL_BINARY_RESPONSE_EINTERNAL = 0x84,
- PROTOCOL_BINARY_RESPONSE_EBUSY = 0x85,
- PROTOCOL_BINARY_RESPONSE_ETMPFAIL = 0x86
- } protocol_binary_response_status;
-
- /**
- * Defintion of the different command opcodes.
- * See section 3.3 Command Opcodes
- */
- typedef enum {
- PROTOCOL_BINARY_CMD_GET = 0x00,
- PROTOCOL_BINARY_CMD_SET = 0x01,
- PROTOCOL_BINARY_CMD_ADD = 0x02,
- PROTOCOL_BINARY_CMD_REPLACE = 0x03,
- PROTOCOL_BINARY_CMD_DELETE = 0x04,
- PROTOCOL_BINARY_CMD_INCREMENT = 0x05,
- PROTOCOL_BINARY_CMD_DECREMENT = 0x06,
- PROTOCOL_BINARY_CMD_QUIT = 0x07,
- PROTOCOL_BINARY_CMD_FLUSH = 0x08,
- PROTOCOL_BINARY_CMD_GETQ = 0x09,
- PROTOCOL_BINARY_CMD_NOOP = 0x0a,
- PROTOCOL_BINARY_CMD_VERSION = 0x0b,
- PROTOCOL_BINARY_CMD_GETK = 0x0c,
- PROTOCOL_BINARY_CMD_GETKQ = 0x0d,
- PROTOCOL_BINARY_CMD_APPEND = 0x0e,
- PROTOCOL_BINARY_CMD_PREPEND = 0x0f,
- PROTOCOL_BINARY_CMD_STAT = 0x10,
- PROTOCOL_BINARY_CMD_SETQ = 0x11,
- PROTOCOL_BINARY_CMD_ADDQ = 0x12,
- PROTOCOL_BINARY_CMD_REPLACEQ = 0x13,
- PROTOCOL_BINARY_CMD_DELETEQ = 0x14,
- PROTOCOL_BINARY_CMD_INCREMENTQ = 0x15,
- PROTOCOL_BINARY_CMD_DECREMENTQ = 0x16,
- PROTOCOL_BINARY_CMD_QUITQ = 0x17,
- PROTOCOL_BINARY_CMD_FLUSHQ = 0x18,
- PROTOCOL_BINARY_CMD_APPENDQ = 0x19,
- PROTOCOL_BINARY_CMD_PREPENDQ = 0x1a,
- PROTOCOL_BINARY_CMD_VERBOSITY = 0x1b,
- PROTOCOL_BINARY_CMD_TOUCH = 0x1c,
- PROTOCOL_BINARY_CMD_GAT = 0x1d,
- PROTOCOL_BINARY_CMD_GATQ = 0x1e,
- PROTOCOL_BINARY_CMD_GATK = 0x23,
- PROTOCOL_BINARY_CMD_GATKQ = 0x24,
-
- PROTOCOL_BINARY_CMD_SASL_LIST_MECHS = 0x20,
- PROTOCOL_BINARY_CMD_SASL_AUTH = 0x21,
- PROTOCOL_BINARY_CMD_SASL_STEP = 0x22,
-
- /* These commands are used for range operations and exist within
- * this header for use in other projects. Range operations are
- * not expected to be implemented in the memcached server itself.
- */
- PROTOCOL_BINARY_CMD_RGET = 0x30,
- PROTOCOL_BINARY_CMD_RSET = 0x31,
- PROTOCOL_BINARY_CMD_RSETQ = 0x32,
- PROTOCOL_BINARY_CMD_RAPPEND = 0x33,
- PROTOCOL_BINARY_CMD_RAPPENDQ = 0x34,
- PROTOCOL_BINARY_CMD_RPREPEND = 0x35,
- PROTOCOL_BINARY_CMD_RPREPENDQ = 0x36,
- PROTOCOL_BINARY_CMD_RDELETE = 0x37,
- PROTOCOL_BINARY_CMD_RDELETEQ = 0x38,
- PROTOCOL_BINARY_CMD_RINCR = 0x39,
- PROTOCOL_BINARY_CMD_RINCRQ = 0x3a,
- PROTOCOL_BINARY_CMD_RDECR = 0x3b,
- PROTOCOL_BINARY_CMD_RDECRQ = 0x3c,
- /* End Range operations */
-
- /* VBucket commands */
- PROTOCOL_BINARY_CMD_SET_VBUCKET = 0x3d,
- PROTOCOL_BINARY_CMD_GET_VBUCKET = 0x3e,
- PROTOCOL_BINARY_CMD_DEL_VBUCKET = 0x3f,
- /* End VBucket commands */
-
- /* TAP commands */
- PROTOCOL_BINARY_CMD_TAP_CONNECT = 0x40,
- PROTOCOL_BINARY_CMD_TAP_MUTATION = 0x41,
- PROTOCOL_BINARY_CMD_TAP_DELETE = 0x42,
- PROTOCOL_BINARY_CMD_TAP_FLUSH = 0x43,
- PROTOCOL_BINARY_CMD_TAP_OPAQUE = 0x44,
- PROTOCOL_BINARY_CMD_TAP_VBUCKET_SET = 0x45,
- PROTOCOL_BINARY_CMD_TAP_CHECKPOINT_START = 0x46,
- PROTOCOL_BINARY_CMD_TAP_CHECKPOINT_END = 0x47,
- /* End TAP */
-
- PROTOCOL_BINARY_CMD_LAST_RESERVED = 0xef,
-
- /* Scrub the data */
- PROTOCOL_BINARY_CMD_SCRUB = 0xf0
- } protocol_binary_command;
-
- /**
- * Definition of the data types in the packet
- * See section 3.4 Data Types
- */
- typedef enum {
- PROTOCOL_BINARY_RAW_BYTES = 0x00
- } protocol_binary_datatypes;
-
- /**
- * Definition of the header structure for a request packet.
- * See section 2
- */
- typedef union {
- struct {
- uint8_t magic;
- uint8_t opcode;
- uint16_t keylen;
- uint8_t extlen;
- uint8_t datatype;
- uint16_t vbucket;
- uint32_t bodylen;
- uint32_t opaque;
- uint64_t cas;
- } request;
- uint8_t bytes[24];
- } protocol_binary_request_header;
-
- /**
- * Definition of the header structure for a response packet.
- * See section 2
- */
- typedef union {
- struct {
- uint8_t magic;
- uint8_t opcode;
- uint16_t keylen;
- uint8_t extlen;
- uint8_t datatype;
- uint16_t status;
- uint32_t bodylen;
- uint32_t opaque;
- uint64_t cas;
- } response;
- uint8_t bytes[24];
- } protocol_binary_response_header;
-
- /**
- * Definition of a request-packet containing no extras
- */
- union protocol_binary_request_no_extras {
- struct {
- protocol_binary_request_header header;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header)];
- };
- typedef union protocol_binary_request_no_extras protocol_binary_request_no_extras;
-
- /**
- * Definition of a response-packet containing no extras
- */
- typedef union {
- struct {
- protocol_binary_response_header header;
- } message;
- uint8_t bytes[sizeof(protocol_binary_response_header)];
- } protocol_binary_response_no_extras;
-
- /**
- * Definition of the packet used by the get, getq, getk and getkq command.
- * See section 4
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_get;
- typedef protocol_binary_request_no_extras protocol_binary_request_getq;
- typedef protocol_binary_request_no_extras protocol_binary_request_getk;
- typedef protocol_binary_request_no_extras protocol_binary_request_getkq;
-
- /**
- * Definition of the packet returned from a successful get, getq, getk and
- * getkq.
- * See section 4
- */
- typedef union {
- struct {
- protocol_binary_response_header header;
- struct {
- uint32_t flags;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_response_header) + 4];
- } protocol_binary_response_get;
-
- typedef protocol_binary_response_get protocol_binary_response_getq;
- typedef protocol_binary_response_get protocol_binary_response_getk;
- typedef protocol_binary_response_get protocol_binary_response_getkq;
-
- /**
- * Definition of the packet used by the delete command
- * See section 4
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_delete;
-
- /**
- * Definition of the packet returned by the delete command
- * See section 4
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_delete;
-
- /**
- * Definition of the packet used by the flush command
- * See section 4
- * Please note that the expiration field is optional, so remember to see
- * check the header.bodysize to see if it is present.
- */
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- uint32_t expiration;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
- } protocol_binary_request_flush;
-
- /**
- * Definition of the packet returned by the flush command
- * See section 4
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_flush;
-
- /**
- * Definition of the packet used by set, add and replace
- * See section 4
- */
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- uint32_t flags;
- uint32_t expiration;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 8];
- } protocol_binary_request_set;
- typedef protocol_binary_request_set protocol_binary_request_add;
- typedef protocol_binary_request_set protocol_binary_request_replace;
-
- /**
- * Definition of the packet returned by set, add and replace
- * See section 4
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_set;
- typedef protocol_binary_response_no_extras protocol_binary_response_add;
- typedef protocol_binary_response_no_extras protocol_binary_response_replace;
-
- /**
- * Definition of the noop packet
- * See section 4
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_noop;
-
- /**
- * Definition of the packet returned by the noop command
- * See section 4
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_noop;
-
- /**
- * Definition of the structure used by the increment and decrement
- * command.
- * See section 4
- */
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- uint64_t delta;
- uint64_t initial;
- uint32_t expiration;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 20];
- } protocol_binary_request_incr;
- typedef protocol_binary_request_incr protocol_binary_request_decr;
-
- /**
- * Definition of the response from an incr or decr command
- * command.
- * See section 4
- */
- typedef union {
- struct {
- protocol_binary_response_header header;
- struct {
- uint64_t value;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_response_header) + 8];
- } protocol_binary_response_incr;
- typedef protocol_binary_response_incr protocol_binary_response_decr;
-
- /**
- * Definition of the quit
- * See section 4
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_quit;
-
- /**
- * Definition of the packet returned by the quit command
- * See section 4
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_quit;
-
- /**
- * Definition of the packet used by append and prepend command
- * See section 4
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_append;
- typedef protocol_binary_request_no_extras protocol_binary_request_prepend;
-
- /**
- * Definition of the packet returned from a successful append or prepend
- * See section 4
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_append;
- typedef protocol_binary_response_no_extras protocol_binary_response_prepend;
-
- /**
- * Definition of the packet used by the version command
- * See section 4
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_version;
-
- /**
- * Definition of the packet returned from a successful version command
- * See section 4
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_version;
-
-
- /**
- * Definition of the packet used by the stats command.
- * See section 4
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_stats;
-
- /**
- * Definition of the packet returned from a successful stats command
- * See section 4
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_stats;
-
- /**
- * Definition of the packet used by the verbosity command
- */
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- uint32_t level;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
- } protocol_binary_request_verbosity;
-
- /**
- * Definition of the packet returned from the verbosity command
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_verbosity;
-
- /**
- * Definition of the packet used by the touch command.
- */
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- uint32_t expiration;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
- } protocol_binary_request_touch;
-
- /**
- * Definition of the packet returned from the touch command
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_touch;
-
- /**
- * Definition of the packet used by the GAT(Q) command.
- */
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- uint32_t expiration;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
- } protocol_binary_request_gat;
-
- typedef protocol_binary_request_gat protocol_binary_request_gatq;
-
- /**
- * Definition of the packet returned from the GAT(Q)
- */
- typedef protocol_binary_response_get protocol_binary_response_gat;
- typedef protocol_binary_response_get protocol_binary_response_gatq;
-
-
- /**
- * Definition of a request for a range operation.
- * See http://code.google.com/p/memcached/wiki/RangeOps
- *
- * These types are used for range operations and exist within
- * this header for use in other projects. Range operations are
- * not expected to be implemented in the memcached server itself.
- */
- typedef union {
- struct {
- protocol_binary_response_header header;
- struct {
- uint16_t size;
- uint8_t reserved;
- uint8_t flags;
- uint32_t max_results;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
- } protocol_binary_request_rangeop;
-
- typedef protocol_binary_request_rangeop protocol_binary_request_rget;
- typedef protocol_binary_request_rangeop protocol_binary_request_rset;
- typedef protocol_binary_request_rangeop protocol_binary_request_rsetq;
- typedef protocol_binary_request_rangeop protocol_binary_request_rappend;
- typedef protocol_binary_request_rangeop protocol_binary_request_rappendq;
- typedef protocol_binary_request_rangeop protocol_binary_request_rprepend;
- typedef protocol_binary_request_rangeop protocol_binary_request_rprependq;
- typedef protocol_binary_request_rangeop protocol_binary_request_rdelete;
- typedef protocol_binary_request_rangeop protocol_binary_request_rdeleteq;
- typedef protocol_binary_request_rangeop protocol_binary_request_rincr;
- typedef protocol_binary_request_rangeop protocol_binary_request_rincrq;
- typedef protocol_binary_request_rangeop protocol_binary_request_rdecr;
- typedef protocol_binary_request_rangeop protocol_binary_request_rdecrq;
-
-
- /**
- * Definition of tap commands
- * See To be written
- *
- */
-
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- /**
- * flags is a bitmask used to set properties for the
- * the connection. Please In order to be forward compatible
- * you should set all undefined bits to 0.
- *
- * If the bit require extra userdata, it will be stored
- * in the user-data field of the body (passed to the engine
- * as enginespeciffic). That means that when you parse the
- * flags and the engine-specific data, you have to work your
- * way from bit 0 and upwards to find the correct offset for
- * the data.
- *
- */
- uint32_t flags;
-
- /**
- * Backfill age
- *
- * By using this flag you can limit the amount of data being
- * transmitted. If you don't specify a backfill age, the
- * server will transmit everything it contains.
- *
- * The first 8 bytes in the engine specific data contains
- * the oldest entry (from epoc) you're interested in.
- * Specifying a time in the future (for the server you are
- * connecting to), will cause it to start streaming current
- * changes.
- */
-#define TAP_CONNECT_FLAG_BACKFILL 0x01
- /**
- * Dump will cause the server to send the data stored on the
- * server, but disconnect when the keys stored in the server
- * are transmitted.
- */
-#define TAP_CONNECT_FLAG_DUMP 0x02
- /**
- * The body contains a list of 16 bits words in network byte
- * order specifying the vbucket ids to monitor. The first 16
- * bit word contains the number of buckets. The number of 0
- * means "all buckets"
- */
-#define TAP_CONNECT_FLAG_LIST_VBUCKETS 0x04
- /**
- * The responsibility of the vbuckets is to be transferred
- * over to the caller when all items are transferred.
- */
-#define TAP_CONNECT_FLAG_TAKEOVER_VBUCKETS 0x08
- /**
- * The tap consumer supports ack'ing of tap messages
- */
-#define TAP_CONNECT_SUPPORT_ACK 0x10
- /**
- * The tap consumer would prefer to just get the keys
- * back. If the engine supports this it will set
- * the TAP_FLAG_NO_VALUE flag in each of the
- * tap packets returned.
- */
-#define TAP_CONNECT_REQUEST_KEYS_ONLY 0x20
- /**
- * The body contains a list of (vbucket_id, last_checkpoint_id)
- * pairs. This provides the checkpoint support in TAP streams.
- * The last checkpoint id represents the last checkpoint that
- * was successfully persisted.
- */
-#define TAP_CONNECT_CHECKPOINT 0x40
- /**
- * The tap consumer is a registered tap client, which means that
- * the tap server will maintain its checkpoint cursor permanently.
- */
-#define TAP_CONNECT_REGISTERED_CLIENT 0x80
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 4];
- } protocol_binary_request_tap_connect;
-
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- struct {
- uint16_t enginespecific_length;
- /*
- * The flag section support the following flags
- */
- /**
- * Request that the consumer send a response packet
- * for this packet. The opaque field must be preserved
- * in the response.
- */
-#define TAP_FLAG_ACK 0x01
- /**
- * The value for the key is not included in the packet
- */
-#define TAP_FLAG_NO_VALUE 0x02
- uint16_t flags;
- uint8_t ttl;
- uint8_t res1;
- uint8_t res2;
- uint8_t res3;
- } tap;
- struct {
- uint32_t flags;
- uint32_t expiration;
- } item;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 16];
- } protocol_binary_request_tap_mutation;
-
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- struct {
- uint16_t enginespecific_length;
- /**
- * See the definition of the flags for
- * protocol_binary_request_tap_mutation for a description
- * of the available flags.
- */
- uint16_t flags;
- uint8_t ttl;
- uint8_t res1;
- uint8_t res2;
- uint8_t res3;
- } tap;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + 8];
- } protocol_binary_request_tap_no_extras;
-
- typedef protocol_binary_request_tap_no_extras protocol_binary_request_tap_delete;
- typedef protocol_binary_request_tap_no_extras protocol_binary_request_tap_flush;
- typedef protocol_binary_request_tap_no_extras protocol_binary_request_tap_opaque;
- typedef protocol_binary_request_tap_no_extras protocol_binary_request_tap_vbucket_set;
-
-
- /**
- * Definition of the packet used by the scrub.
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_scrub;
-
- /**
- * Definition of the packet returned from scrub.
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_scrub;
-
-
- /**
- * Definition of the packet used by set vbucket
- */
- typedef union {
- struct {
- protocol_binary_request_header header;
- struct {
- vbucket_state_t state;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_request_header) + sizeof(vbucket_state_t)];
- } protocol_binary_request_set_vbucket;
- /**
- * Definition of the packet returned from set vbucket
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_set_vbucket;
- /**
- * Definition of the packet used by del vbucket
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_del_vbucket;
- /**
- * Definition of the packet returned from del vbucket
- */
- typedef protocol_binary_response_no_extras protocol_binary_response_del_vbucket;
-
- /**
- * Definition of the packet used by get vbucket
- */
- typedef protocol_binary_request_no_extras protocol_binary_request_get_vbucket;
-
- /**
- * Definition of the packet returned from get vbucket
- */
- typedef union {
- struct {
- protocol_binary_response_header header;
- struct {
- vbucket_state_t state;
- } body;
- } message;
- uint8_t bytes[sizeof(protocol_binary_response_header) + sizeof(vbucket_state_t)];
- } protocol_binary_response_get_vbucket;
-
-
- /**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-#endif /* PROTOCOL_BINARY_H */
+++ /dev/null
-/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
- *
- * Libmemcached library
- *
- * Copyright (C) 2011 Data Differential, http://datadifferential.com/
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met:
- *
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * * Redistributions in binary form must reproduce the above
- * copyright notice, this list of conditions and the following disclaimer
- * in the documentation and/or other materials provided with the
- * distribution.
- *
- * * The names of its contributors may not be used to endorse or
- * promote products derived from this software without specific prior
- * written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#pragma once
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-typedef enum {
- vbucket_state_active = 1, /**< Actively servicing a vbucket. */
- vbucket_state_replica, /**< Servicing a vbucket as a replica only. */
- vbucket_state_pending, /**< Pending active. */
- vbucket_state_dead /**< Not in use, pending deletion. */
-} vbucket_state_t;
-
-#define is_valid_vbucket_state_t(state) \
- (state == vbucket_state_active || \
- state == vbucket_state_replica || \
- state == vbucket_state_pending || \
- state == vbucket_state_dead)
-
-#ifdef __cplusplus
-}
-#endif
#pragma once
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
#ifdef __cplusplus
#include <cstddef>
*
*/
-#include <libmemcached/common.h>
-#include <libmemcached/options.hpp>
+#include "libmemcached/common.h"
+#include "libmemcached/options.hpp"
-#include <libmemcached/csl/context.h>
+#include "libmemcached/csl/context.h"
const char *memcached_parse_filename(memcached_st *memc)
{
Frankly its too damn useful not to be here though.
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
memcached_server_list_st memcached_servers_parse(const char *server_strings)
{
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
#define memcached_set_purging(__object, __value) ((__object)->state.is_purging= (__value))
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
namespace {
memcached_return_t send_quit_message(memcached_instance_st* instance)
*
*/
-#include <libmemcached/common.h>
-#include <libmemcached/string.hpp>
+#include "libmemcached/common.h"
+#include "libmemcached/string.hpp"
static memcached_return_t textual_value_fetch(memcached_instance_st* instance,
char *buffer,
to memcached we will be able to absorb new attributes without having
to addjust the entire API.
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static inline void _result_init(memcached_result_st *self,
Memcached *memc)
/*
This is a partial implementation for fetching/creating memcached_server_st objects.
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static inline void _server_init(memcached_server_st *self, Memcached *root,
const memcached_string_t& hostname,
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
memcached_server_list_st
memcached_server_list_append_with_weight(memcached_server_list_st ptr,
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static const char *memcached_stat_keys[] = {
"pid",
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
enum memcached_storage_action_t {
SET_OP,
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
const char *memcached_strerror(const memcached_st *, memcached_return_t rc)
{
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
inline static memcached_return_t _string_check(memcached_string_st *string, size_t need)
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
static memcached_return_t ascii_touch(memcached_instance_st* instance,
const char *key, size_t key_length,
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
/*
* The udp request id consists of two seperate sections
#pragma once
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcachedutil-1.0/util.h"
+++ /dev/null
-EXTRA_DIST= libmemcachedutil.ver
-
-lib_LTLIBRARIES=
-
-if BUILD_LIBMEMCACHEDUTIL
-lib_LTLIBRARIES+= libmemcachedutil.la
-endif
-
-libmemcachedutil_la_SOURCES= memcached_pool.c
-libmemcachedutil_la_LDFLAGS= -version-info $(MEMCACHEDUTIL_LIBRARY_VERSION) $(LD_UTIL_VERSION_SCRIPT)
-libmemcachedutil_la_LIBADD= ${top_builddir}/libmemcached/libmemcached.la
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
struct context_st
{
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
const char * memcached_lib_version(void)
{
*
*/
-#include <libmemcached/common.h>
+#include "libmemcached/common.h"
struct bucket_t {
uint32_t master;
*
*/
-#include <libmemcachedprotocol/common.h>
+#include "libmemcachedprotocol/common.h"
#include <ctype.h>
#include <stdio.h>
*
*/
-#include <libmemcachedprotocol/common.h>
+#include "libmemcachedprotocol/common.h"
#include <stdlib.h>
#include <sys/types.h>
#include <signal.h>
#endif
-#include <libmemcachedprotocol/common.h>
+#include "libmemcachedprotocol/common.h"
#ifndef NDEBUG
const uint64_t redzone_pattern = 0xdeadbeefcafebabe;
#include "mem_config.h"
#include <assert.h>
-#include <libmemcachedprotocol-0.0/handler.h>
-#include <libmemcachedprotocol/cache.h>
-#include <libmemcached/byteorder.h>
-#include <libmemcached/socket.hpp>
+#include "libmemcachedprotocol-0.0/handler.h"
+#include "libmemcachedprotocol/cache.h"
+#include "libmemcached/byteorder.h"
+#include "libmemcached/socket.hpp"
/*
* I don't really need the following two functions as function pointers
*/
/* -*- Mode: C; tab-width: 2; c-basic-offset: 2; indent-tabs-mode: nil -*- */
-#include <libmemcachedprotocol/common.h>
+#include "libmemcachedprotocol/common.h"
#include <stdlib.h>
#include <sys/types.h>
*/
/* -*- Mode: C; tab-width: 2; c-basic-offset: 2; indent-tabs-mode: nil -*- */
-#include <libmemcachedprotocol/common.h>
+#include "libmemcachedprotocol/common.h"
#include <sys/types.h>
*
*/
-#include <libmemcachedutil/common.h>
+#include "libmemcachedutil/common.h"
bool libmemcached_util_flush(const char *hostname, in_port_t port, memcached_return_t *ret)
*
*/
-#include <libmemcachedutil/common.h>
+#include "libmemcachedutil/common.h"
// Never look at the stat object directly.
*
*/
-#include <libmemcachedutil/common.h>
+#include "libmemcachedutil/common.h"
bool libmemcached_util_ping(const char *hostname, in_port_t port, memcached_return_t *ret)
{
*/
-#include <libmemcachedutil/common.h>
+#include "libmemcachedutil/common.h"
#include <cassert>
#include <cerrno>
*/
-#include <libmemcachedutil/common.h>
+#include "libmemcachedutil/common.h"
#include <cassert>
struct local_context
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <sys/time.h>
#include <cstdlib>
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
-#include <libtest/blobslap_worker.h>
+#include "libtest/blobslap_worker.h"
#include <cassert>
#include <cerrno>
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <sys/types.h>
#include <sys/socket.h>
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
// @todo possibly have this code fork off so if it fails nothing goes bad
static test_return_t runner_code(libtest::Framework* frame,
#pragma once
-#include <libtest/formatter.hpp>
+#include "libtest/formatter.hpp"
-#include <libtest/timer.hpp>
+#include "libtest/timer.hpp"
namespace { class Framework; }
# define get_socket_errno() errno
#endif
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
-#include <libtest/is_pid.hpp>
+#include "libtest/is_pid.hpp"
-#include <libtest/gearmand.h>
-#include <libtest/blobslap_worker.h>
-#include <libtest/memcached.h>
-#include <libtest/drizzled.h>
+#include "libtest/gearmand.h"
+#include "libtest/blobslap_worker.h"
+#include "libtest/memcached.h"
+#include "libtest/drizzled.h"
-#include <libtest/libtool.hpp>
-#include <libtest/killpid.h>
-#include <libtest/signal.h>
-#include <libtest/dns.hpp>
-#include <libtest/formatter.hpp>
+#include "libtest/libtool.hpp"
+#include "libtest/killpid.h"
+#include "libtest/signal.h"
+#include "libtest/dns.hpp"
+#include "libtest/formatter.hpp"
struct FreeFromVector
{
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
namespace libtest {
#include <typeinfo>
#if defined(HAVE_LIBMEMCACHED) && HAVE_LIBMEMCACHED
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/ostream.hpp>
-#include <libtest/memcached.hpp>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/ostream.hpp"
+#include "libtest/memcached.hpp"
#endif
#if defined(HAVE_LIBGEARMAN) && HAVE_LIBGEARMAN
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
namespace libtest {
#include <sys/types.h>
#include <unistd.h>
-#include <libtest/cpu.hpp>
+#include "libtest/cpu.hpp"
static void version_command(const char *command_name, int major_version, int minor_version)
{
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <unistd.h>
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <sys/types.h>
#include <sys/socket.h>
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
namespace libtest {
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
-#include <libtest/drizzled.h>
+#include "libtest/drizzled.h"
#include "util/instance.hpp"
#include "util/operation.hpp"
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <cstdarg>
namespace libtest {
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include "libtest/exception.hpp"
#include <cstdarg>
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
-#include <libtest/failed.h>
+#include "libtest/failed.h"
#include <iostream>
#include <string>
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <algorithm>
#include <fstream>
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
-#include <libtest/collection.h>
-#include <libtest/signal.h>
+#include "libtest/common.h"
+#include "libtest/collection.h"
+#include "libtest/signal.h"
#include <algorithm>
#include <fnmatch.h>
#pragma once
-#include <libtest/signal.h>
+#include "libtest/signal.h"
/**
Framework is the structure which is passed to the test implementation to be filled.
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
-#include <libtest/gearmand.h>
+#include "libtest/gearmand.h"
using namespace libtest;
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <cstdio>
#include <cstdlib>
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#if defined(HAVE_LIBCURL) && HAVE_LIBCURL
#include <curl/curl.h>
#pragma once
-#include <libtest/vchar.hpp>
+#include "libtest/vchar.hpp"
namespace libtest {
namespace http {
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
namespace libtest {
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <cstdlib>
#include <cstring>
#include <sys/wait.h>
-#include <libtest/killpid.h>
-#include <libtest/stream.h>
+#include "libtest/killpid.h"
+#include "libtest/stream.h"
using namespace libtest;
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <string>
char _libtool[1024]= { 0 };
# define SKIP(__message_format, ...)
#endif
-#include <libtest/valgrind.h>
+#include "libtest/valgrind.h"
static inline size_t yatl_strlen(const char *s)
{
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <cassert>
#include <cstdlib>
#include <sys/wait.h>
#include <unistd.h>
-#include <libtest/server.h>
-#include <libtest/wait.h>
+#include "libtest/server.h"
+#include "libtest/wait.h"
-#include <libtest/memcached.h>
+#include "libtest/memcached.h"
#ifndef __INTEL_COMPILER
#pragma GCC diagnostic ignored "-Wold-style-cast"
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <cassert>
#include <cstdlib>
#include <signal.h>
-#include <libtest/signal.h>
+#include "libtest/signal.h"
#ifndef SOCK_CLOEXEC
# define SOCK_CLOEXEC 0
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <cstdarg>
namespace libtest {
#pragma once
-#include <libtest/result/base.hpp>
-#include <libtest/result/fail.hpp>
-#include <libtest/result/skip.hpp>
-#include <libtest/result/success.hpp>
+#include "libtest/result/base.hpp"
+#include "libtest/result/fail.hpp"
+#include "libtest/result/skip.hpp"
+#include "libtest/result/success.hpp"
#define _SUCCESS throw libtest::__success(LIBYATL_DEFAULT_PARAM)
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
namespace libtest {
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <cassert>
#include <cerrno>
return s;
}
-#include <libtest/server.h>
-#include <libtest/stream.h>
-#include <libtest/killpid.h>
+#include "libtest/server.h"
+#include "libtest/stream.h"
+#include "libtest/killpid.h"
namespace libtest {
#pragma once
-#include <libtest/cmdline.h>
+#include "libtest/cmdline.h"
#include <cassert>
#include <cstdio>
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
#include <csignal>
-#include <libtest/signal.h>
+#include "libtest/signal.h"
using namespace libtest;
#include "libtest/yatlcon.h"
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
#include <cstdlib>
#include <unistd.h>
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
static char global_socket[1024]= { 0 };
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
namespace libtest {
#pragma GCC diagnostic ignored "-Wold-style-cast"
#endif
-#include <libtest/lite.h>
+#include "libtest/lite.h"
/**
A structure describing the test case.
#include <cstdlib>
#include <arpa/inet.h>
-#include <libtest/visibility.h>
-#include <libtest/version.h>
+#include "libtest/visibility.h"
+#include "libtest/version.h"
-#include <libtest/vchar.hpp>
-#include <libtest/error.h>
-#include <libtest/exception.hpp>
-#include <libtest/exception/disconnected.hpp>
-#include <libtest/exception/fatal.hpp>
-#include <libtest/result.hpp>
+#include "libtest/vchar.hpp"
+#include "libtest/error.h"
+#include "libtest/exception.hpp"
+#include "libtest/exception/disconnected.hpp"
+#include "libtest/exception/fatal.hpp"
+#include "libtest/result.hpp"
-#include <libtest/has.hpp>
-#include <libtest/error.h>
-#include <libtest/strerror.h>
-#include <libtest/timer.hpp>
-#include <libtest/alarm.h>
-#include <libtest/stream.h>
-#include <libtest/comparison.hpp>
-#include <libtest/server.h>
-#include <libtest/server_container.h>
-#include <libtest/wait.h>
-#include <libtest/callbacks.h>
-#include <libtest/test.h>
-#include <libtest/dream.h>
-#include <libtest/core.h>
-#include <libtest/runner.h>
-#include <libtest/port.h>
-#include <libtest/is_local.hpp>
-#include <libtest/socket.hpp>
-#include <libtest/collection.h>
-#include <libtest/framework.h>
-#include <libtest/get.h>
-#include <libtest/cmdline.h>
-#include <libtest/string.hpp>
-#include <libtest/binaries.h>
-#include <libtest/http.hpp>
-#include <libtest/cpu.hpp>
-#include <libtest/tmpfile.hpp>
-#include <libtest/client.hpp>
-#include <libtest/thread.hpp>
+#include "libtest/has.hpp"
+#include "libtest/error.h"
+#include "libtest/strerror.h"
+#include "libtest/timer.hpp"
+#include "libtest/alarm.h"
+#include "libtest/stream.h"
+#include "libtest/comparison.hpp"
+#include "libtest/server.h"
+#include "libtest/server_container.h"
+#include "libtest/wait.h"
+#include "libtest/callbacks.h"
+#include "libtest/test.h"
+#include "libtest/dream.h"
+#include "libtest/core.h"
+#include "libtest/runner.h"
+#include "libtest/port.h"
+#include "libtest/is_local.hpp"
+#include "libtest/socket.hpp"
+#include "libtest/collection.h"
+#include "libtest/framework.h"
+#include "libtest/get.h"
+#include "libtest/cmdline.h"
+#include "libtest/string.hpp"
+#include "libtest/binaries.h"
+#include "libtest/http.hpp"
+#include "libtest/cpu.hpp"
+#include "libtest/tmpfile.hpp"
+#include "libtest/client.hpp"
+#include "libtest/thread.hpp"
#include "libtest/yatlcon.h"
-#include <libtest/timer.hpp>
+#include "libtest/timer.hpp"
#include <ctime>
#include <iomanip>
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
namespace libtest {
#pragma once
-#include <libtest/common.h>
+#include "libtest/common.h"
namespace libtest {
#include "libtest/yatlcon.h"
-#include <libtest/yatl.h>
+#include "libtest/yatl.h"
#if defined(HAVE_LIBMEMCACHED_1_0_TYPES_RETURN_H) && HAVE_LIBMEMCACHED_1_0_TYPES_RETURN_H
-# include <libmemcached-1.0/types/return.h>
+# include "libmemcached-1.0/types/return.h"
#endif
#if defined(HAVE_LIBGEARMAN_1_0_RETURN_H) && HAVE_LIBGEARMAN_1_0_RETURN_H
*/
#include "libtest/yatlcon.h"
-#include <libtest/common.h>
+#include "libtest/common.h"
/* Use this for string generation */
static const char ALPHANUMERICS[]=
#include <sys/types.h>
#include <unistd.h>
-#include <libtest/wait.h>
+#include "libtest/wait.h"
static void version_command(const char *command_name, int major_version, int minor_version)
{
#include <string>
#include <signal.h>
-#include <libtest/dream.h>
+#include "libtest/dream.h"
namespace libtest {
# define YATL_FULL 1
#endif
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
* SUCH DAMAGE.
*/
-#include <mem_config.h>
+#include "mem_config.h"
#if defined __SUNPRO_C || defined __DECC || defined __HP_cc
# pragma ident "@(#)$Header: /cvsroot/wikipedia/willow/src/bin/willow/daemon.c,v 1.1 2005/05/02 19:15:21 kateturner Exp $"
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include "util/operation.hpp"
#include <string>
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <cassert>
#include <cerrno>
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
+prefix=@CMAKE_INSTALL_PREFIX@
+exec_prefix=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@
+libdir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@
+includedir=@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@
Name: libmemcached
-URL: http://libmemcachd.org/
-Description: libmemcached C/C++ library.
-Version: @VERSION@
-Libs: -L${libdir} -lmemcached -lmemcachedutil
-Cflags: -I${includedir}
+URL: https://m6w6.github.io/libmemcached/
+Description: libmemcached C/C++ library
+Version: @PROJECT_VERSION@
+Libs: -L@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBDIR@ -lmemcached -lmemcachedutil
+Cflags: -I@CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_INCLUDEDIR@
#pragma once
-#include <libtest/visibility.h>
+#include "libtest/visibility.h"
#ifdef __cplusplus
extern "C" {
/*
* An example file showing the usage of the C++ libmemcached interface.
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <vector>
#include <string>
#include <string.h>
-#include <libmemcached/memcached.hpp>
+#include "libmemcached/memcached.hpp"
using namespace std;
using namespace memcache;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
static test_return_t server_startup_single_TEST(void *obj)
{
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
/*
C++ interface test
*/
-#include <libmemcached-1.0/memcached.hpp>
-#include <libmemcached/server_instance.h>
-#include <libtest/test.hpp>
+#include "libmemcached-1.0/memcached.hpp"
+#include "libmemcached/server_instance.h"
+#include "libtest/test.hpp"
#include <cstdio>
#include <cstdlib>
C++ to libhashkit
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
#include <cstdio>
#include <cstdlib>
#include <cstring>
-#include <libhashkit-1.0/hashkit.hpp>
+#include "libhashkit-1.0/hashkit.hpp"
using namespace libtest;
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
#include <cstdlib>
#include <cstring>
-#include <libhashkit-1.0/hashkit.h>
-#include <libhashkit/is.h>
+#include "libhashkit-1.0/hashkit.h"
+#include "libhashkit/is.h"
#include "tests/hash_results.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
#include "libmemcached-1.0/memcached.h"
#include "tests/basic.h"
#include "tests/debug.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
#include "libmemcached-1.0/memcached.h"
#include "tests/basic.h"
#include "tests/debug.h"
/*
Sample test application.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include <cstdio>
#include <cstdlib>
#include <bin/generator.h>
#include <bin/execute.h>
-#include <libtest/server.h>
+#include "libtest/server.h"
-#include <tests/debug.h>
+#include "tests/debug.h"
#include "tests/libmemcached-1.0/generate.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "libmemcached/is.h"
#include "tests/basic.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "mem_config.h"
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
#include "tests/libmemcached-1.0/callback_counter.h"
memcached_return_t callback_counter(const memcached_st*, memcached_result_st*, void *context)
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
#include "libmemcached-1.0/memcached.h"
-#include <tests/callbacks.h>
+#include "tests/callbacks.h"
using namespace libtest;
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
#include <climits>
using namespace libtest;
-#include <libmemcached-1.0/memcached.h>
-#include <tests/debug.h>
-#include <tests/print.h>
+#include "libmemcached-1.0/memcached.h"
+#include "tests/debug.h"
+#include "tests/print.h"
#include "libmemcached/instance.hpp"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
-#include <libmemcached-1.0/memcached.h>
-#include <tests/deprecated.h>
+#include "libmemcached-1.0/memcached.h"
+#include "tests/deprecated.h"
test_return_t server_list_null_test(memcached_st *ptr)
{
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <cstdlib>
#include <climits>
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/util.h"
using namespace libtest;
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/util.h"
#include "tests/libmemcached-1.0/encoding_key.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
#define BUILDING_LIBMEMCACHED
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "libmemcached/is.h"
-#include <tests/error_conditions.h>
+#include "tests/error_conditions.h"
test_return_t memcached_increment_MEMCACHED_NO_SERVERS(memcached_st *)
{
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
#include "libmemcached-1.0/memcached.h"
-#include <tests/exist.h>
+#include "tests/exist.h"
using namespace libtest;
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
-#include <tests/libmemcached-1.0/fetch_all_results.h>
+#include "mem_config.h"
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
+#include "tests/libmemcached-1.0/fetch_all_results.h"
test_return_t fetch_all_results(memcached_st *memc, unsigned int &keys_returned, memcached_return_t& rc)
{
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
-#include <libmemcachedutil-1.0/util.h>
-#include <libmemcached/is.h>
+#include "libmemcachedutil-1.0/util.h"
+#include "libmemcached/is.h"
-#include <tests/libmemcached-1.0/generate.h>
-#include <tests/libmemcached-1.0/fetch_all_results.h>
+#include "tests/libmemcached-1.0/generate.h"
+#include "tests/libmemcached-1.0/fetch_all_results.h"
#include "tests/libmemcached-1.0/callback_counter.h"
#include "bin/generator.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
#include "libmemcached-1.0/memcached.h"
#include "tests/libmemcached-1.0/haldenbrand.h"
#include "tests/libmemcached-1.0/fetch_all_results.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "libmemcached/server_instance.h"
#include "libmemcached/continuum.hpp"
#include "libmemcached/instance.hpp"
-#include <tests/ketama.h>
-#include <tests/ketama_test_cases.h>
+#include "tests/ketama.h"
+#include "tests/ketama_test_cases.h"
test_return_t ketama_compatibility_libmemcached(memcached_st *)
{
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
#if defined(HAVE_LIBUUID) && HAVE_LIBUUID
# include <uuid/uuid.h>
Test cases
*/
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "libmemcached/is.h"
#include "libmemcached/server_instance.h"
-#include <libhashkit-1.0/hashkit.h>
+#include "libhashkit-1.0/hashkit.h"
-#include <libtest/memcached.hpp>
+#include "libtest/memcached.hpp"
#include <cerrno>
#include <memory>
#include <iostream>
-#include <libtest/server.h>
+#include "libtest/server.h"
#include "bin/generator.h"
#define SMALL_STRING_LEN 1024
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
using namespace libtest;
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcachedutil-1.0/util.h"
#include "tests/hash_results.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcached/util.h>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcached/util.h"
using namespace libtest;
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
/*
Test cases
*/
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "tests/libmemcached-1.0/memcached_get.h"
#include "tests/libmemcached-1.0/setup_and_teardowns.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
-#include <tests/namespace.h>
+#include "tests/namespace.h"
test_return_t memcached_increment_namespace(memcached_st *memc)
{
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
#include <string>
#include <cerrno>
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/util.h"
-#include <tests/libmemcached-1.0/parser.h>
-#include <tests/print.h>
+#include "tests/libmemcached-1.0/parser.h"
+#include "tests/print.h"
#include "libmemcached/instance.hpp"
enum scanner_type_t
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
/*
C++ interface test
*/
-#include <libmemcached-1.0/memcached.hpp>
-#include <libtest/test.hpp>
+#include "libmemcached-1.0/memcached.hpp"
+#include "libtest/test.hpp"
#include <cstdio>
#include <cstdlib>
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
#include <semaphore.h>
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/util.h>
-#include <libmemcached/is.h>
-#include <tests/pool.h>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/util.h"
+#include "libmemcached/is.h"
+#include "tests/pool.h"
#include <pthread.h>
#include <poll.h>
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
#include <iostream>
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "tests/print.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "libmemcached/server_instance.h"
-#include <tests/replication.h>
-#include <tests/debug.h>
+#include "tests/replication.h"
+#include "tests/debug.h"
#include "tests/libmemcached-1.0/setup_and_teardowns.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
Test cases
*/
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
static test_return_t pre_sasl(memcached_st *)
{
*
*/
-#include <mem_config.h>
-#include <libtest/yatl.h>
+#include "mem_config.h"
+#include "libtest/yatl.h"
#include <string>
using namespace libtest;
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
-#include <tests/server_add.h>
+#include "tests/server_add.h"
static std::string random_hostname()
{
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcachedutil-1.0/util.h"
#include "tests/print.h"
#include "tests/libmemcached-1.0/setup_and_teardowns.h"
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
#include <cstdlib>
#include <climits>
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/util.h"
using namespace libtest;
// We let libmemcached/common.h define config since we are looking at
// library internals.
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include "libmemcached/string.hpp"
#include "libmemcached/is.h"
-#include <libtest/test.hpp>
+#include "libtest/test.hpp"
-#include <tests/string.h>
+#include "tests/string.h"
test_return_t string_static_null(void*)
{
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/util.h"
#include "tests/touch.h"
*
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
-#include <tests/virtual_buckets.h>
+#include "tests/virtual_buckets.h"
-#include <libmemcached-1.0/memcached.h>
+#include "libmemcached-1.0/memcached.h"
#include <cstring>
Sample test application.
*/
-#include <mem_config.h>
-#include <libtest/test.hpp>
+#include "mem_config.h"
+#include "libtest/test.hpp"
using namespace libtest;
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcached/server_instance.h>
-#include <libmemcached/io.h>
-#include <libmemcached/udp.hpp>
-#include <libmemcachedutil-1.0/util.h>
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcached/server_instance.h"
+#include "libmemcached/io.h"
+#include "libmemcached/udp.hpp"
+#include "libmemcachedutil-1.0/util.h"
#include <cstdio>
#include <cstdlib>
#include <unistd.h>
#include <time.h>
-#include <libtest/server.h>
+#include "libtest/server.h"
#include "libmemcached/instance.hpp"
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
#include <sys/stat.h>
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/util.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/util.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
using namespace libtest;
Test that we are cycling the servers we are creating during testing.
*/
-#include <mem_config.h>
+#include "mem_config.h"
-#include <libtest/test.hpp>
-#include <libmemcached-1.0/memcached.h>
-#include <libmemcachedutil-1.0/util.h>
+#include "libtest/test.hpp"
+#include "libmemcached-1.0/memcached.h"
+#include "libmemcachedutil-1.0/util.h"
using namespace libtest;
+++ /dev/null
-# vim:ft=automake
-# Copyright (C) 2012 Data Differential
-# All rights reserved.
-#
-# Use and distribution licensed under the BSD license. See
-# the COPYING file in the parent directory for full text.
-#
-# included from Top Level Makefile.am
-# All paths should be given relative to the root
-
-noinst_HEADERS+= tests/libmemcached-1.0/parser.h
-
-tests_parser_SOURCES=
-tests_parser_CXXFLAGS=
-tests_parser_LDADD=
-
-tests_parser_SOURCES+= tests/parser.cc
-
-tests_parser_CXXFLAGS+= $(AM_CXXFLAGS) $(NO_EFF_CXX)
-tests_parser_LDADD+= $(TESTS_LDADDS)
-check_PROGRAMS+= tests/parser
-noinst_PROGRAMS+= tests/parser
-
-test-parser: tests/parser
- @tests/parser
-
-valgrind-parser: tests/parser
- @$(VALGRIND_COMMAND) tests/parser
*
*/
-#include <mem_config.h>
+#include "mem_config.h"
/*
C++ interface test
*/
-#include <libmemcached-1.0/memcached.hpp>
-#include <libtest/test.hpp>
+#include "libmemcached-1.0/memcached.hpp"
+#include "libtest/test.hpp"
using namespace libtest;