]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-cui.h
ui/ncurses: Interpret left/right keys as up/down
[petitboot] / ui / ncurses / nc-cui.h
index ff735ae444be2ee37724c83ae31ec67998a58c64..b00d251e12d0652dee340ab2ecd04e7e227d0b5e 100644 (file)
@@ -59,9 +59,11 @@ struct cui {
        struct sysinfo_screen *sysinfo_screen;
        struct config *config;
        struct config_screen *config_screen;
        struct sysinfo_screen *sysinfo_screen;
        struct config *config;
        struct config_screen *config_screen;
+       struct add_url_screen *add_url_screen;
        struct boot_editor *boot_editor;
        struct lang_screen *lang_screen;
        struct help_screen *help_screen;
        struct boot_editor *boot_editor;
        struct lang_screen *lang_screen;
        struct help_screen *help_screen;
+       struct subset_screen *subset_screen;
        struct pjs *pjs;
        void *platform_info;
        unsigned int default_item;
        struct pjs *pjs;
        void *platform_info;
        unsigned int default_item;
@@ -70,7 +72,7 @@ struct cui {
 
 struct cui *cui_init(void* platform_info,
                int (*js_map)(const struct js_event *e),
 
 struct cui *cui_init(void* platform_info,
                int (*js_map)(const struct js_event *e),
-               int start_deamon);
+               int start_daemon, int timeout);
 struct nc_scr *cui_set_current(struct cui *cui, struct nc_scr *scr);
 int cui_run(struct cui *cui);
 void cui_item_edit(struct pmenu_item *item);
 struct nc_scr *cui_set_current(struct cui *cui, struct nc_scr *scr);
 int cui_run(struct cui *cui);
 void cui_item_edit(struct pmenu_item *item);
@@ -80,7 +82,11 @@ void cui_show_config(struct cui *cui);
 void cui_show_lang(struct cui *cui);
 void cui_show_help(struct cui *cui, const char *title,
                const struct help_text *text);
 void cui_show_lang(struct cui *cui);
 void cui_show_help(struct cui *cui, const char *title,
                const struct help_text *text);
+void cui_show_subset(struct cui *cui, const char *title,
+               void *arg);
+void cui_show_add_url(struct cui *cui);
 int cui_send_config(struct cui *cui, struct config *config);
 int cui_send_config(struct cui *cui, struct config *config);
+int cui_send_url(struct cui *cui, char *url);
 void cui_send_reinit(struct cui *cui);
 
 /* convenience routines */
 void cui_send_reinit(struct cui *cui);
 
 /* convenience routines */