/+junk/c_sdl_joypad

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/c_sdl_joypad

« back to all changes in this revision

Viewing changes to src/JSParser.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-12 00:26:29 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140112002629-jsoprtfhefs89utd
* made the code compile.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
/******************************************************************************/
26
26
 
 
27
typedef struct GameJSParser GameJSParser;
 
28
 
 
29
/**
 
30
 * Function prototype to be used for loading context data, this is user-defined
 
31
 * so any data can be loaded into the JS context.
 
32
 */
 
33
typedef void (* GameJSParserLoadDataFunc)(GameJSParser * self, void * data);
 
34
 
 
35
/**
 
36
 * Function that is used to dump data from the JS context, it is user-defined.
 
37
 */
 
38
typedef void * (* GameJSParserDumpDataFunc)(GameJSParser * self);
 
39
 
27
40
/**
28
41
 * The data structure that represents the EcmaScript/JavaScript parser/engine
29
42
 * that can be used when creating games.
41
54
  
42
55
  Game * game; /**< DO NOT FREE! */
43
56
  
44
 
  char * game_script_file_name;
45
 
  char * game_script;
 
57
  char * file_name;
 
58
  char * script;
46
59
} GameJSParser;
47
60
 
48
 
/**
49
 
 * Function prototype to be used for loading context data, this is user-defined
50
 
 * so any data can be loaded into the JS context.
51
 
 */
52
 
typedef void (* GameJSParserLoadDataFunc)(GameJSParser * self, void * data);
53
 
 
54
 
/**
55
 
 * Function that is used to dump data from the JS context, it is user-defined.
56
 
 */
57
 
typedef void * (* GameJSParserDumpDataFunc)(GameJSParser * self);
58
 
 
59
61
/******************************************************************************/
60
62
 
61
63
/**
82
84
void game_js_parser_set_settings_dump (GameJSParser * self,
83
85
                                              GameJSParserDumpDataFunc func);
84
86
 
85
 
void * game_js_parser_load_settings (GameJSParser * self, void * data);
 
87
void game_js_parser_load_settings (GameJSParser * self, void * data);
86
88
 
87
89
void * game_js_parser_dump_settings (GameJSParser * self);
88
90