renet 0.1.12-universal-darwin → 0.1.13-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.
data/ext/renet/extconf.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'mkmf'
2
2
 
3
3
  extension_name = 'renet'
4
- #have_library('enet')
4
+ have_library('enet')
5
5
  dir_config(extension_name)
6
6
  create_makefile(extension_name)
7
7
 
data/ext/renet/renet.c CHANGED
@@ -30,7 +30,7 @@ void Init_renet()
30
30
  init_renet_connection();
31
31
  init_renet_server();
32
32
  rb_define_const(mENet, "ENET_VERSION", rb_str_new2("1.3.0"));
33
- rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1.12"));
33
+ rb_define_const(mENet, "RENET_VERSION", rb_str_new2("0.1.13"));
34
34
  }
35
35
 
36
36
  VALUE renet_main_initialize(VALUE self)
data/ext/renet/renet.h CHANGED
@@ -20,7 +20,7 @@
20
20
  #define RUBY_ENET
21
21
 
22
22
  #include <ruby.h>
23
- #include <enet.h>
23
+ #include <enet/enet.h>
24
24
 
25
25
  #include "renet_connection.h"
26
26
  #include "renet_server.h"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  prerelease:
6
6
  platform: universal-darwin
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-05 00:00:00.000000000Z
12
+ date: 2011-08-25 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Ruby library for games networking. Uses ENet as backend
15
15
  email: dark.wolf.warrior@gmail.com
@@ -22,30 +22,12 @@ files:
22
22
  - lib/renet.rb
23
23
  - examples/Console-Server.rb
24
24
  - examples/Gosu-Client.rb
25
- - ext/renet/callbacks.h
26
- - ext/renet/enet.h
27
- - ext/renet/list.h
28
- - ext/renet/protocol.h
29
25
  - ext/renet/renet.h
30
26
  - ext/renet/renet_connection.h
31
27
  - ext/renet/renet_server.h
32
- - ext/renet/time.h
33
- - ext/renet/types.h
34
- - ext/renet/unix.h
35
- - ext/renet/utility.h
36
- - ext/renet/win32.h
37
- - ext/renet/callbacks.c
38
- - ext/renet/compress.c
39
- - ext/renet/host.c
40
- - ext/renet/list.c
41
- - ext/renet/packet.c
42
- - ext/renet/peer.c
43
- - ext/renet/protocol.c
44
28
  - ext/renet/renet.c
45
29
  - ext/renet/renet_connection.c
46
30
  - ext/renet/renet_server.c
47
- - ext/renet/unix.c
48
- - ext/renet/win32.c
49
31
  - ext/renet/extconf.rb
50
32
  homepage: https://github.com/Dahrkael/rENet
51
33
  licenses: []
@@ -1,47 +0,0 @@
1
- /**
2
- @file callbacks.c
3
- @brief ENet callback functions
4
- */
5
- #define ENET_BUILDING_LIB 1
6
- #include "enet.h"
7
-
8
- static ENetCallbacks callbacks = { malloc, free, abort };
9
-
10
- int
11
- enet_initialize_with_callbacks (ENetVersion version, const ENetCallbacks * inits)
12
- {
13
- if (version < ENET_VERSION_CREATE (1, 3, 0))
14
- return -1;
15
-
16
- if (inits -> malloc != NULL || inits -> free != NULL)
17
- {
18
- if (inits -> malloc == NULL || inits -> free == NULL)
19
- return -1;
20
-
21
- callbacks.malloc = inits -> malloc;
22
- callbacks.free = inits -> free;
23
- }
24
-
25
- if (inits -> no_memory != NULL)
26
- callbacks.no_memory = inits -> no_memory;
27
-
28
- return enet_initialize ();
29
- }
30
-
31
- void *
32
- enet_malloc (size_t size)
33
- {
34
- void * memory = callbacks.malloc (size);
35
-
36
- if (memory == NULL)
37
- callbacks.no_memory ();
38
-
39
- return memory;
40
- }
41
-
42
- void
43
- enet_free (void * memory)
44
- {
45
- callbacks.free (memory);
46
- }
47
-
@@ -1,27 +0,0 @@
1
- /**
2
- @file callbacks.h
3
- @brief ENet callbacks
4
- */
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);
15
- } ENetCallbacks;
16
-
17
- /** @defgroup callbacks ENet internal callbacks
18
- @{
19
- @ingroup private
20
- */
21
- extern void * enet_malloc (size_t);
22
- extern void enet_free (void *);
23
-
24
- /** @} */
25
-
26
- #endif /* __ENET_CALLBACKS_H__ */
27
-