mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-13 19:08:11 +00:00
[common] option: implement the ability to set option values
This can then be used to update the options from EGL filters, and then dumping them to files.
This commit is contained in:
@@ -83,6 +83,12 @@ const char * option_get_string(const char * module, const char * name);
|
||||
bool option_get_bool (const char * module, const char * name);
|
||||
float option_get_float (const char * module, const char * name);
|
||||
|
||||
// update the value of an option
|
||||
void option_set_int (const char * module, const char * name, int value);
|
||||
void option_set_string(const char * module, const char * name, const char * value);
|
||||
void option_set_bool (const char * module, const char * name, bool value);
|
||||
void option_set_float (const char * module, const char * name, float value);
|
||||
|
||||
// called by the main application to parse the command line arguments
|
||||
bool option_parse(int argc, char * argv[]);
|
||||
|
||||
|
Reference in New Issue
Block a user