Orxonox  0.0.5 Codename: Arcturus
callbacks.h
Go to the documentation of this file.
1 
5 #ifndef __ENET_CALLBACKS_H__
6 #define __ENET_CALLBACKS_H__
7 
8 #include <stdlib.h>
9 
10 typedef struct _ENetCallbacks
11 {
12  void * (ENET_CALLBACK * malloc) (size_t size);
13  void (ENET_CALLBACK * free) (void * memory);
14  void (ENET_CALLBACK * no_memory) (void);
16 
21 extern void * enet_malloc (size_t);
22 extern void enet_free (void *);
23 
26 #endif /* __ENET_CALLBACKS_H__ */
27 
Definition: callbacks.h:10
void(ENET_CALLBACK *free)(void *memory)
void *ENET_CALLBACK * malloc(size_t size)
#define ENET_CALLBACK
Definition: unix.h:33
void * enet_malloc(size_t)
Definition: callbacks.c:32
void enet_free(void *)
Definition: callbacks.c:43
struct _ENetCallbacks ENetCallbacks