Subversion Repositories Projects

Rev

Rev 484 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 484 Rev 485
Line 33... Line 33...
33
cfg_bool_t exit_after_init = cfg_false;
33
cfg_bool_t exit_after_init = cfg_false;
Line 34... Line 34...
34
 
34
 
Line -... Line 35...
-
 
35
 
-
 
36
int input_count=0;
35
 
37
 
36
int input_count=0;
38
cfg_t *cfg;
Line 37... Line -...
37
 
-
 
-
 
39
 
38
int parse_config(char* fname)
40
int parse_config(char* fname)
39
{
41
{
Line 40... Line 42...
40
 
42
 
41
 
43
  // section for inputs
Line 60... Line 62...
60
    CFG_INT("nick_up_btn",  -1,CFGF_NONE),
62
    CFG_INT("nick_up_btn",  -1,CFGF_NONE),
61
    CFG_INT("nick_down_btn",  -1,CFGF_NONE),
63
    CFG_INT("nick_down_btn",  -1,CFGF_NONE),
62
    CFG_INT("roll_left_btn",  -1,CFGF_NONE),
64
    CFG_INT("roll_left_btn",  -1,CFGF_NONE),
63
    CFG_INT("roll_right_btn", -1,CFGF_NONE),
65
    CFG_INT("roll_right_btn", -1,CFGF_NONE),
Line 64... Line -...
64
 
-
 
65
 
-
 
66
 
-
 
67
 
-
 
68
 
-
 
69
 
66
 
70
    CFG_END()
67
    CFG_END()
Line 71... Line 68...
71
  };
68
  };
72
 
69
 
Line 99... Line 96...
99
    CFG_SIMPLE_INT("rel_axis_gas", &rel_axis_gas),
96
    CFG_SIMPLE_INT("rel_axis_gas", &rel_axis_gas),
Line 100... Line 97...
100
   
97
   
101
    CFG_END()
98
    CFG_END()
Line 102... Line -...
102
  };
-
 
103
 
-
 
Line 104... Line 99...
104
  cfg_t *cfg;
99
  };
Line 105... Line 100...
105
 
100
 
Line 106... Line 101...
106
 
101
 
Line -... Line 102...
-
 
102
  printf("Parsing config file %s\n",fname);
Line -... Line 103...
-
 
103
 
-
 
104
  cfg = cfg_init(opts, 0);
-
 
105
 
107
  printf("Parsing config file %s\n",fname);
106
  cfg_parse(cfg,fname);
Line 108... Line 107...
108
 
107
 
109
  cfg = cfg_init(opts, 0);
108
}
110
 
109