From 3cc7b798e8fe463db5b3e2a628f8a1f42c5d368a Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Wed, 9 Jun 2010 22:08:19 +0000 Subject: [PATCH] release fixes git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5164 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/enet/Makefile.am | 2 +- source/enet/compress.c | 5 +++++ source/enet/include/enet/enet.h | 10 +++++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/source/enet/Makefile.am b/source/enet/Makefile.am index d8fb923f..17ce8c0e 100755 --- a/source/enet/Makefile.am +++ b/source/enet/Makefile.am @@ -16,7 +16,7 @@ enetinclude_HEADERS = \ lib_LTLIBRARIES = libenet.la libenet_la_SOURCES = callbacks.c compress.c host.c list.c packet.c peer.c protocol.c unix.c win32.c # see info '(libtool) Updating version info' before making a release -libenet_la_LDFLAGS = $(AM_LDFLAGS) -version-info 0:0:0 +libenet_la_LDFLAGS = $(AM_LDFLAGS) -version-info 1:0:0 INCLUDES = -Iinclude ACLOCAL_AMFLAGS = -Im4 diff --git a/source/enet/compress.c b/source/enet/compress.c index e8cd8ab6..784489a7 100644 --- a/source/enet/compress.c +++ b/source/enet/compress.c @@ -626,6 +626,10 @@ enet_range_coder_decompress (void * context, const enet_uint8 * inData, size_t i return (size_t) (outData - outStart); } +/** @defgroup host ENet host functions + @{ +*/ + /** Sets the packet compressor the host should use to the default range coder. @param host host to enable the range coder for @returns 0 on success, < 0 on failure @@ -645,5 +649,6 @@ enet_host_compress_with_range_coder (ENetHost * host) return 0; } +/** @} */ diff --git a/source/enet/include/enet/enet.h b/source/enet/include/enet/enet.h index 425e7531..2f656d6c 100755 --- a/source/enet/include/enet/enet.h +++ b/source/enet/include/enet/enet.h @@ -290,17 +290,17 @@ typedef struct _ENetPeer */ typedef struct _ENetCompressor { - /**< Context data for the compressor. Must be non-NULL. */ + /** Context data for the compressor. Must be non-NULL. */ void * context; - /**< Compresses from inBuffers[0..inBufferCount-1], containing inLimit bytes, to outData, outputting at most outLimit bytes. Should return 0 on failure. */ + /** Compresses from inBuffers[0:inBufferCount-1], containing inLimit bytes, to outData, outputting at most outLimit bytes. Should return 0 on failure. */ size_t (ENET_CALLBACK * compress) (void * context, const ENetBuffer * inBuffers, size_t inBufferCount, size_t inLimit, enet_uint8 * outData, size_t outLimit); - /**< Decompresses from inData, containing inLimit bytes, to outData, outputting at most outLimit bytes. Should return 0 on failure. */ + /** Decompresses from inData, containing inLimit bytes, to outData, outputting at most outLimit bytes. Should return 0 on failure. */ size_t (ENET_CALLBACK * decompress) (void * context, const enet_uint8 * inData, size_t inLimit, enet_uint8 * outData, size_t outLimit); - /**< Destroys the context when compression is disabled or the host is destroyed. May be NULL. */ + /** Destroys the context when compression is disabled or the host is destroyed. May be NULL. */ void (ENET_CALLBACK * destroy) (void * context); } ENetCompressor; -/** Callback that computes the checksum of the data held in buffers [0..bufferCount-1] */ +/** Callback that computes the checksum of the data held in buffers[0:bufferCount-1] */ typedef enet_uint32 (ENET_CALLBACK * ENetChecksumCallback) (const ENetBuffer * buffers, size_t bufferCount); /** An ENet host for communicating with peers.