search for: menu_t

Displaying 4 results from an estimated 4 matches for "menu_t".

Did you mean: menu_h
2010 Jul 14
2
[PATCH] gfxboot: add include and menu include support
...boot/gfxboot.c | 65 +++++++++++++++++++++++++++++++---------------- 1 files changed, 43 insertions(+), 22 deletions(-) diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c index dd4d641..3b09e74 100644 --- a/com32/gfxboot/gfxboot.c +++ b/com32/gfxboot/gfxboot.c @@ -134,6 +134,7 @@ gfx_menu_t gfx_menu; menu_t *menu; menu_t *menu_default; +static menu_t *menu_ptr, **menu_next; struct { uint32_t jmp_table[12]; @@ -161,7 +162,7 @@ char *get_config_file_name(void); char *skip_spaces(char *s); char *skip_nonspaces(char *s); void chop_line(char *s); -int read_config_file(void); +...
2010 Apr 09
2
[PATCH] gfxboot: support MENU LABEL statement
...40422b 100644 --- a/com32/gfxboot/gfxboot.c +++ b/com32/gfxboot/gfxboot.c @@ -165,7 +165,7 @@ void gfx_done(void); int gfx_input(void); ssize_t save_read(int fd, void *buf, size_t size); void *load_one(char *file, ssize_t *file_size); -void boot(void); +void boot(int index); void boot_entry(menu_t *menu_ptr, char *arg); @@ -234,7 +234,7 @@ int main(int argc, char **argv) } // does not return if it succeeds - boot(); + boot(menu_index); } if(argc > 2) show_message(argv[2]); @@ -321,19 +321,19 @@ int read_config_file(void) if(*t) *t++ = 0; t = skip_...
2010 Jul 14
1
[PATCH] gfxboot: allow boot entry to start with label instead of menu_label
...16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c index dd4d641..77a3275 100644 --- a/com32/gfxboot/gfxboot.c +++ b/com32/gfxboot/gfxboot.c @@ -790,7 +790,7 @@ void boot(int index) { char *arg, *alt_kernel; menu_t *menu_ptr; - int i, label_len; + int i, label_len, menu_label_len; unsigned ipapp; const struct syslinux_ipappend_strings *ipappend; @@ -802,18 +802,22 @@ void boot(int index) if(!menu_ptr || !menu_ptr->menu_label) return; arg = skip_spaces(cmdline); - label_len = strlen(menu_...
2011 Aug 17
1
[patch 1/1] syslinux: add suport for com32 entries in the menu
...; } + if(!strcasecmp(s, "com32") && menu_ptr) { + menu_ptr->com32 = strdup(t); + continue; + } + if(!strcasecmp(s, "initrd") && menu_ptr) { menu_ptr->initrd = strdup(t); continue; @@ -866,7 +872,13 @@ void boot_entry(menu_t *menu_ptr, char * if(menu_ptr->localboot) { gfx_done(); syslinux_local_boot(strtol(menu_ptr->localboot, NULL, 0)); + return; + } + if(menu_ptr->com32) { + gfx_done(); + asprintf(&cmd_buf, "%s %s", menu_ptr->com32, arg); + syslinux_run_command(cm...