X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fprotocol_handler.h;h=78eda07745a4d86a55b214d8d49c905bfe1b3b56;hb=d70dd7ca2db0a4f7d7c63367466567cc1efe9f68;hp=3fb00c98d96b4e655232501e9366b5c162bfbfe4;hpb=c38f53f67c27b36858e456fcb86a725d5c27b977;p=m6w6%2Flibmemcached diff --git a/libmemcached/protocol_handler.h b/libmemcached/protocol_handler.h index 3fb00c98..78eda077 100644 --- a/libmemcached/protocol_handler.h +++ b/libmemcached/protocol_handler.h @@ -11,11 +11,13 @@ * */ -#ifndef MEMCACHED_PROTOCOL_H -#define MEMCACHED_PROTOCOL_H +#ifndef __LIBMEMCACHED_PROTOCOL_H__ +#define __LIBMEMCACHED_PROTOCOL_H__ #include -#include +#if !defined(__cplusplus) +# include +#endif #include #include @@ -30,6 +32,10 @@ typedef struct memcached_protocol_st memcached_protocol_st; typedef struct memcached_protocol_client_st memcached_protocol_client_st; +#ifdef __cplusplus +extern "C" { +#endif + /** * Function the protocol handler should call to receive data. * This function should behave exactly like read(2) @@ -203,4 +209,9 @@ int memcached_protocol_client_get_errno(memcached_protocol_client_st *client); */ LIBMEMCACHED_API memcached_binary_protocol_raw_response_handler memcached_binary_protocol_get_raw_response_handler(const void *cookie); + +#ifdef __cplusplus +} +#endif + #endif