/+junk/c_sdl_joypad_ducktape

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

« back to all changes in this revision

Viewing changes to JSParser.h

  • Committer: Gustav Hartvigsson
  • Date: 2014-01-11 23:32:10 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140111233210-2lnw8934cjd5p848
* reorganising code to be remove extra typedefs.

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
 
 
40
27
/**
41
28
 * The data structure that represents the EcmaScript/JavaScript parser/engine
42
29
 * that can be used when creating games.
54
41
  
55
42
  Game * game; /**< DO NOT FREE! */
56
43
  
57
 
  char * file_name;
58
 
  char * script;
 
44
  char * game_script_file_name;
 
45
  char * game_script;
59
46
} GameJSParser;
60
47
 
 
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
 
61
59
/******************************************************************************/
62
60
 
63
61
/**
84
82
void game_js_parser_set_settings_dump (GameJSParser * self,
85
83
                                              GameJSParserDumpDataFunc func);
86
84
 
87
 
void game_js_parser_load_settings (GameJSParser * self, void * data);
 
85
void * game_js_parser_load_settings (GameJSParser * self, void * data);
88
86
 
89
87
void * game_js_parser_dump_settings (GameJSParser * self);
90
88