aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authoreihrul <eihrul>2007-05-31 08:40:53 +0000
committereihrul <eihrul>2007-05-31 08:40:53 +0000
commitd382c058e63a70ed876df339c6f1386b2566d81a (patch)
tree8fc27981f972e12160e821e4aac605e216a89e80 /include
parent6a6e61b4bd85cb1566a3f0f11896128046fb410d (diff)
downloadenet-d382c058e63a70ed876df339c6f1386b2566d81a.tar.gz
enet-d382c058e63a70ed876df339c6f1386b2566d81a.zip
*** empty log message ***
Diffstat (limited to 'include')
-rw-r--r--include/enet/enet.h9
1 files changed, 8 insertions, 1 deletions
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