diff options
author | Lee Salzman <[email protected]> | 2013-01-19 16:39:34 +0200 |
---|---|---|
committer | Lee Salzman <[email protected]> | 2013-01-19 16:39:34 +0200 |
commit | 8ff344897a5937b45820b42127b70e1938f97ed0 (patch) | |
tree | c15a02532d9f50b79ad2fc123f14103d295960f1 /include | |
parent | 5ff8ccb74f8581a4b70b8725a95454bc0778344e (diff) | |
download | enet-8ff344897a5937b45820b42127b70e1938f97ed0.tar.gz enet-8ff344897a5937b45820b42127b70e1938f97ed0.zip |
added userData field to ENetPacket
Diffstat (limited to 'include')
-rw-r--r-- | include/enet/enet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/enet/enet.h b/include/enet/enet.h index 55960ed..a691f5e 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -143,6 +143,7 @@ typedef struct _ENetPacket enet_uint8 * data; /**< allocated data for packet */ size_t dataLength; /**< length of data */ ENetPacketFreeCallback freeCallback; /**< function to be called when the packet is no longer in use */ + void * userData; /**< application private data, may be freely modified */ } ENetPacket; typedef struct _ENetAcknowledgement |