Lines Matching refs:key

28 	char *key;
83 * Otherwise, print the key of the item.
90 puts(item->key);
101 * key.
107 if (item->key)
108 free(item->key);
132 * Check if an item's key matches a provided string, pointed to by extra. If
133 * extra is NULL, an item with a NULL key will match. Otherwise, the item's
134 * key has to match according to strcmp.
137 * the key matches, and returns NULL otherwise.
144 if (!item_key || !item->key) {
145 if (item_key == item->key)
151 if (strcmp(item->key, item_key) == 0)
158 * Find the first item with a key matching item_key, if any exists.
183 * by inputting a string matching the key of an item. Invalid choices will
215 char *key = m->item_choice(m->item_choice_data);
217 if (key)
218 choice_item = menu_item_by_key(m, key);
237 * key for an existing item in the menu.
240 * key matching item_key is found.
324 item->key = strdup(item_key);
326 if (!item->key) {
358 * If NULL, each item's key will be printed instead. Since an item's key is
360 * make it obvious what the key for each entry is.
363 * item. Returns a key string corresponding to the chosen item or NULL if
433 enum bootmenu_key key = BKEY_NONE;
439 printf("Hit any key to stop autoboot: %d ", menu->delay);
456 key = BKEY_NONE;
459 key = BKEY_SELECT;
462 key = BKEY_QUIT;
465 key = BKEY_NONE;
481 key = BKEY_SELECT;
483 return key;
488 enum bootmenu_key key;
492 /* enter key was pressed */
493 key = BKEY_SELECT;
498 key = BKEY_QUIT;
501 key = BKEY_UP;
504 key = BKEY_DOWN;
507 key = BKEY_SAVE;
510 key = BKEY_PLUS;
513 key = BKEY_MINUS;
516 key = BKEY_SPACE;
519 key = BKEY_NONE;
523 return key;
529 enum bootmenu_key key;
545 key = bootmenu_conv_key(c);
547 return key;