mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-14 19:38:10 +00:00
[common] option: implement ability to dump config into ini
This is intended to be used for saving filter options into an ini file.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#define _H_COMMON_OPTION_
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include "common/stringlist.h"
|
||||
|
||||
enum OptionType
|
||||
@@ -94,6 +95,9 @@ bool option_validate(void);
|
||||
// print out the options, help, and their current values
|
||||
void option_print(void);
|
||||
|
||||
// dump the options in ini format into the file
|
||||
bool option_dump(FILE * file, const char * module);
|
||||
|
||||
// final cleanup
|
||||
void option_free(void);
|
||||
|
||||
|
Reference in New Issue
Block a user