Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=49f906835723d2629440a945a4c8e5ceda8012b8
commit 49f906835723d2629440a945a4c8e5ceda8012b8 Author: James Buren <[email protected]> Date: Thu Nov 8 03:33:53 2012 -0600 import skeleton for new UI function diff --git a/src/local.h b/src/local.h index 24fa84e..8aa592e 100644 --- a/src/local.h +++ b/src/local.h @@ -129,6 +129,7 @@ extern int ui_main(int argc,char **argv); extern void ui_dialog_text(const char *title,const char *text); extern bool ui_dialog_yesno(const char *title,const char *text,bool defaultno); extern bool ui_dialog_progress(const char *title,const char *text,int percent); +extern bool ui_window_partition(struct device **devices,struct disk **disks); extern bool ui_window_format(struct format **targets); extern bool ui_window_root(struct account *data); extern bool ui_window_user(struct account *data); diff --git a/src/ui_newt.c b/src/ui_newt.c index e55158a..13dc311 100644 --- a/src/ui_newt.c +++ b/src/ui_newt.c @@ -458,6 +458,30 @@ extern bool ui_dialog_progress(const char *title,const char *text,int percent) return true; } +extern bool ui_window_partition(struct device **devices,struct disk **disks) +{ + int textbox_width = 0; + int textbox_height = 0; + int next_width = 0; + int next_height = 0; + int listbox_width = 0; + int listbox_height = 0; + newtComponent textbox = 0; + newtComponent next = 0; + newtComponent listbox = 0; + newtComponent form = 0; + struct newtExitStruct es = {0}; + + if(devices == 0 || disks == 0) + { + errno = EINVAL; + error(strerror(errno)); + return false; + } + + return true; +} + extern bool ui_window_format(struct format **targets) { int textbox_width = 0; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
