From d382c058e63a70ed876df339c6f1386b2566d81a Mon Sep 17 00:00:00 2001 From: eihrul Date: Thu, 31 May 2007 08:40:53 +0000 Subject: *** empty log message *** --- include/enet/enet.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/enet/enet.h b/include/enet/enet.h index cfbd01f..913e39f 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -350,7 +350,14 @@ typedef struct _ENetEvent */ ENET_API int enet_initialize (void); -ENET_API int enet_initialize_with_callbacks (ENetVersion, const ENetCallbacks *); +/** + Initializes ENet globally and supplies user-overridden callbacks. Must be called prior to using any functions in ENet. Do not use enet_initialize() if you use this variant. + + @param version the constant ENET_VERSION should be supplied so ENet knows which version of ENetCallbacks struct to use + @param inits user-overriden callbacks where any NULL callbacks will use ENet's defaults + @returns 0 on success, < 0 on failure +*/ +ENET_API int enet_initialize_with_callbacks (ENetVersion version, const ENetCallbacks * inits); /** Shuts down ENet globally. Should be called when a program that has -- cgit v1.2.3