Adds a new -C, --gen-conf option to generate the configuration file from the content file.

This commit is contained in:
Andrea Mazzoleni 2013-09-21 15:53:46 +02:00
parent c956f55d62
commit c5d0aa01c1
7 changed files with 124 additions and 7 deletions

View file

@ -93,6 +93,7 @@ struct snapraid_state {
time_t progress_last; /**< Last update of progress visualization. */
time_t progress_interruption; /**< Start of the measure interruption. */
time_t progress_subtract; /**< Time to subtract for the interruptions. */
int no_conf; /**< Automatically add missing info. Used to load content without a configuration file. */
};
/**
@ -198,5 +199,13 @@ void state_progress_stop(struct snapraid_state* state);
*/
void state_progress_restart(struct snapraid_state* state);
/****************************************************************************/
/* misc */
/**
* Generate a dummy configuration file from a content file.
*/
void generate_configuration(const char* content);
#endif