libgoatvr

annotate src/opt.h @ 11:34d4643d61f9

remove _opt suffix from vr_get_opt/vr_set_opt, and _OPT_from the predefined names
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 24 Sep 2014 10:18:42 +0300
parents
children 437fe32ac633
rev   line source
nuclear@0 1 #ifndef OPT_H_
nuclear@0 2 #define OPT_H_
nuclear@0 3
nuclear@0 4 enum opt_type { OTYPE_INT, OTYPE_FLOAT };
nuclear@0 5
nuclear@0 6 struct option {
nuclear@0 7 enum opt_type type;
nuclear@0 8 int ival;
nuclear@0 9 float fval;
nuclear@0 10 };
nuclear@0 11
nuclear@0 12 void *create_options(void);
nuclear@0 13 void destroy_options(void *optdb);
nuclear@0 14
nuclear@0 15 void set_option_int(void *optdb, const char *key, int val);
nuclear@0 16 void set_option_float(void *optdb, const char *key, float val);
nuclear@0 17
nuclear@0 18 int get_option_int(void *optdb, const char *key, int *val);
nuclear@0 19 int get_option_float(void *optdb, const char *key, float *val);
nuclear@0 20
nuclear@0 21 #endif /* OPT_H_ */