/+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-09 20:07:52 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20140109200752-owx481zfl2n4tjsc
* added and changed little in the files Lincening information.
* Started to implement the JS parser's C file.

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
/**
28
39
 * The data structure that represents the EcmaScript/JavaScript parser/engine
29
40
 * that can be used when creating games.
30
41
 */
31
 
typedef struct GameJSParser {
 
42
typedef struct _GameJSParser {
32
43
  GameJSParserLoadDataFunc load_data_func;
33
44
  GameJSParserDumpDataFunc dump_data_func;
34
45
  
45
56
  char * game_script;
46
57
} GameJSParser;
47
58
 
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
/**