X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libmemcached%2Fprotocol_handler.h;h=78eda07745a4d86a55b214d8d49c905bfe1b3b56;hb=475f477dab6dfc5e4f018d1ecfb128c37e2c44a0;hp=fe92a2cc1f75632a8121424fdd6476b2d436b283;hpb=7ed5aa2c6673ab92559e52a29e83c0a44f3beebc;p=m6w6%2Flibmemcached diff --git a/libmemcached/protocol_handler.h b/libmemcached/protocol_handler.h index fe92a2cc..78eda077 100644 --- a/libmemcached/protocol_handler.h +++ b/libmemcached/protocol_handler.h @@ -1,15 +1,23 @@ -/* - * Summary: Definition of the callback interface to the protocol handler +/* LibMemcached + * Copyright (C) 2006-2009 Brian Aker + * All rights reserved. + * + * Use and distribution licensed under the BSD license. See + * the COPYING file in the parent directory for full text. * - * Copy: See Copyright for the status of this software. + * Summary: Definition of the callback interface to the protocol handler * * Author: Trond Norbye + * */ -#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 @@ -24,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) @@ -197,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