diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 14:21:35 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-03 14:21:35 -0700 |
commit | 858c8e31c41298d1c85a9099b1822b549aa4c234 (patch) | |
tree | b75c29155e1ed954fc503fdea7078ed5a65362ba | |
parent | c0c88441dd8ff67b8aac1125031bee9f295cdeab (diff) | |
parent | 567e103d28010aac619c0a387e3422734d0c8653 (diff) |
Merge pull request #1576 from inolen/misc_stubs
misc stubs for in.h and sdl.h
-rw-r--r-- | src/library.js | 18 | ||||
-rw-r--r-- | src/library_sdl.js | 32 |
2 files changed, 47 insertions, 3 deletions
diff --git a/src/library.js b/src/library.js index 9d0c65d5..f953bc33 100644 --- a/src/library.js +++ b/src/library.js @@ -7193,7 +7193,25 @@ LibraryManager.library = { } }, + // ========================================================================== + // net/if.h + // ========================================================================== + + if_nametoindex: function(a) { + return 0; + }, + if_indextoname: function(a, b) { + return 0; + }, + if_nameindex: function() { + return 0; + }, + if_freenameindex: function(a) { + }, + + // ========================================================================== // netinet/in.h + // ========================================================================== _in6addr_any: 'allocate([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "i8", ALLOC_STATIC)', diff --git a/src/library_sdl.js b/src/library_sdl.js index d6cb6d18..9231f41b 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -2191,11 +2191,37 @@ var LibrarySDL = { // Joysticks - SDL_NumJoysticks: function() { return 0 }, + SDL_NumJoysticks: function() { return 0; }, - SDL_JoystickOpen: function(deviceIndex) { return 0 }, + SDL_JoystickName: function(deviceIndex) { return 0; }, - SDL_JoystickGetButton: function(joystick, button) { return 0 }, + SDL_JoystickOpen: function(deviceIndex) { return 0; }, + + SDL_JoystickOpened: function(deviceIndex) { return 0; }, + + SDL_JoystickIndex: function(joystick) { return 0; }, + + SDL_JoystickNumAxes: function(joystick) { return 0; }, + + SDL_JoystickNumBalls: function(joystick) { return 0; }, + + SDL_JoystickNumHats: function(joystick) { return 0; }, + + SDL_JoystickNumButtons: function(joystick) { return 0; }, + + SDL_JoystickUpdate: function() {}, + + SDL_JoystickEventState: function(state) { return 0; }, + + SDL_JoystickGetAxis: function(joystick, axis) { return 0; }, + + SDL_JoystickGetHat: function(joystick, hat) { return 0; }, + + SDL_JoystickGetBall: function(joystick, ball, dxptr, dyptr) { return -1; }, + + SDL_JoystickGetButton: function(joystick, button) { return 0; }, + + SDL_JoystickClose: function(joystick) {}, // Misc |