mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
Adds a new -C, --gen-conf option to generate the configuration file from the content file.
This commit is contained in:
parent
c956f55d62
commit
c5d0aa01c1
7 changed files with 124 additions and 7 deletions
9
state.h
9
state.h
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue