Skip to content

Commit 58234c7

Browse files
committed
context pointer within GekkonetAdapter
1 parent f364632 commit 58234c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

GekkoLib/include/gekkonet.h

+2
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ typedef struct GekkoNetAdapter {
9191
GekkoNetResult** (*receive_data)(int* length);
9292
// free data function so gekkonet can cleanup data that the user created.
9393
void (*free_data)(void* data_ptr);
94+
// context data. can be any data. just be sure to clean / manage it yourself.
95+
void* ctx_data;
9496
} GekkoNetAdapter;
9597

9698
typedef enum GekkoGameEventType {

0 commit comments

Comments
 (0)