/+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 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:
25
25
/******************************************************************************/
26
26
 
27
27
/**
28
 
 * Function prototype to be used for loading context data, this is user-defined
29
 
 * so any data can be loaded into the JS context.
30
 
 */
31
 
typedef void (* GameJSParserLoadDataFunc)(GameJSParser * self, void * data);
32
 
 
33
 
/**
34
 
 * Function that is used to dump data from the JS context, it is user-defined.
35
 
 */
36
 
typedef void * (* GameJSParserDumpDataFunc)(GameJSParser * self);
37
 
 
38
 
/**
39
28
 * The data structure that represents the EcmaScript/JavaScript parser/engine
40
29
 * that can be used when creating games.
41
30
 */
42
 
typedef struct _GameJSParser {
 
31
typedef struct GameJSParser {
43
32
  GameJSParserLoadDataFunc load_data_func;
44
33
  GameJSParserDumpDataFunc dump_data_func;
45
34
  
56
45
  char * game_script;
57
46
} GameJSParser;
58
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
 
59
59
/******************************************************************************/
60
60
 
61
61
/**