search for: current_menu

Displaying 9 results from an estimated 9 matches for "current_menu".

2011 Apr 01
0
[GIT PULL] elflink cmdline
...flink/ldlinux/readconfig.c @@ -27,6 +27,7 @@ #include "menu.h" #include "config.h" +#include "getkey.h" const struct menu_parameter mparm[NPARAMS] = { [P_WIDTH] = {"width", 0}, @@ -420,6 +421,17 @@ static struct menu *end_submenu(void) return current_menu->parent ? current_menu->parent : current_menu; } +void print_labels(const char *prefix, size_t len) +{ + struct menu_entry *me; + + printf("\n"); + for (me = all_entries; me; me = me->next ) { + if (!strncmp(prefix, me->label, len)) + printf(" %s\n",...
2019 Apr 16
1
Fix: menu immediate for submenu
...individually marked with MENU IMMEDIATE. *Patch* --- syslinux-6.03.orig/com32/menu/readconfig.c 2019-04-16 07:42:25.281964266 -0500 +++ syslinux-6.03/com32/menu/readconfig.c 2019-04-16 07:43:06.332309963 -0500 @@ -437,6 +437,7 @@ static struct menu *begin_submenu(const me = new_entry(current_menu); me->displayname = refstrdup(tag); + me->immediate = current_menu->immediate; return new_menu(current_menu, me, refstr_get(me->displayname)); } # end-of-patch
2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
...+ + return strcmp(a, b); +} + +static int parse_bls1_dir(const char *dirname) +{ + DIR *d = NULL; + char *filename = NULL; + struct dirent *de = NULL; + struct blsdata *nbd = NULL, **bdx = NULL; + int i, n_bdx = 0, n_bd = 0; + int rv = -1, fn_len, dn_len; + struct menu *m = current_menu; + + if (!*dirname) + return -1; + + dprintf("Opening bls entries directory %s ", dirname); + + d = opendir(dirname); + dprintf("%s\n", d ? "ok" : "failed"); + + if (!d) + return -1; + + dn_len = strlen(dirname); + + /* Proc...
2019 May 25
2
[PATCH] (vesa)menu.c32: Add support for BLS
...) > > +{ > > + DIR *d = NULL; > > + char *filename = NULL; > > + struct dirent *de = NULL; > > + struct blsdata *nbd = NULL, **bdx = NULL; > > + int i, n_bdx = 0, n_bd = 0; > > + int rv = -1, fn_len, dn_len; > > + struct menu *m = current_menu; > > + > > + if (!*dirname) > > + return -1; > > + > > + dprintf("Opening bls entries directory %s ", dirname); > > + > > + d = opendir(dirname); > > + dprintf("%s\n", d ? "ok" : "failed"); &g...
2019 May 25
0
[PATCH] (vesa)menu.c32: Add support for BLS
...c int parse_bls1_dir(const char *dirname) > +{ > + DIR *d = NULL; > + char *filename = NULL; > + struct dirent *de = NULL; > + struct blsdata *nbd = NULL, **bdx = NULL; > + int i, n_bdx = 0, n_bd = 0; > + int rv = -1, fn_len, dn_len; > + struct menu *m = current_menu; > + > + if (!*dirname) > + return -1; > + > + dprintf("Opening bls entries directory %s ", dirname); > + > + d = opendir(dirname); > + dprintf("%s\n", d ? "ok" : "failed"); > + > + if (!d) > + ret...
2019 May 27
0
[PATCH] (vesa)menu.c32: Add support for BLS
...DIR *d = NULL; > > > + char *filename = NULL; > > > + struct dirent *de = NULL; > > > + struct blsdata *nbd = NULL, **bdx = NULL; > > > + int i, n_bdx = 0, n_bd = 0; > > > + int rv = -1, fn_len, dn_len; > > > + struct menu *m = current_menu; > > > + > > > + if (!*dirname) > > > + return -1; > > > + > > > + dprintf("Opening bls entries directory %s ", dirname); > > > + > > > + d = opendir(dirname); > > > + dprintf("%s\n", d ?...
2012 Nov 02
10
[PATCH 0/9] elflink fixes
From: Matt Fleming <matt.fleming at intel.com> Here are the patches that I've got queued up based on the very helpful feedback I received from people testing Syslinux 5.00-pre9. Unless anyone has any concerns these will make it into Syslinux 5.00-pre10. Matt Fleming (9): pxe: Don't call open_config() from the pxe core ldlinux: Print a warning if no config file is found
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...ly parsed, + * or -1 on error + */ +static int parse_bls1_dir(const char *dirname) +{ + DIR *d = NULL; + char *filename = NULL; + struct dirent *de = NULL; + struct blsdata *nbd = NULL, **bdx = NULL; + int i, n_bdx = 0, n_bd = 0; + int rv = 0, fn_len, dn_len; + struct menu *m = current_menu; + const char *tmp = NULL; + + dprintf("Opening bls entries directory %s ", dirname); + + d = opendir(dirname); + dprintf("%s\n", d ? "ok" : "failed"); + if (!d) + return -1; + dn_len = strlen(dirname); + + while ((de = readdir(d)) != NUL...
2011 May 25
1
[GIT PULL] elflink ldlinux
Hi, These patches contain support for some features that are already in Syslinux 4 but weren't working properly on the elflink branch. It's another step closer to feature parity with Syslinux 4. Having to jump through the comboot API for localboot support is less than ideal and I'll eventually fix that, probably when we move a big chunk of code from asm to C. Also, there's a