Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=af94b36ea179856a15ca3165f5ce7215b32c378d
commit af94b36ea179856a15ca3165f5ce7215b32c378d Author: James Buren <[email protected]> Date: Tue Oct 30 20:38:08 2012 -0500 add new skeleton module for future partition module diff --git a/src/SConstruct b/src/SConstruct index 2e4b277..cb4e96f 100644 --- a/src/SConstruct +++ b/src/SConstruct @@ -40,6 +40,7 @@ env.Program('fwsetup',[ 'main.c', 'utility.c', 'block.c', + 'partition.c', 'format.c', 'install.c', 'postconfig.c', diff --git a/src/local.h b/src/local.h index 93fed0a..24fa84e 100644 --- a/src/local.h +++ b/src/local.h @@ -138,6 +138,7 @@ extern FILE *logfile; extern int main(int argc,char **argv); extern struct global *g; +extern struct module partition_module; extern struct module format_module; extern struct module install_module; extern struct module postconfig_module; diff --git a/src/main.c b/src/main.c index 460fc39..9c13dd6 100644 --- a/src/main.c +++ b/src/main.c @@ -42,6 +42,7 @@ struct global *g = &local; struct module *modules[] = { + &partition_module, &format_module, &install_module, &postconfig_module, diff --git a/src/partition.c b/src/partition.c new file mode 100644 index 0000000..503969b --- /dev/null +++ b/src/partition.c @@ -0,0 +1,17 @@ +#include "local.h" + +static bool partition_run(void) +{ + return true; +} + +static void partition_reset(void) +{ +} + +struct module partition_module = +{ + partition_run, + partition_reset, + __FILE__ +}; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
