Update item text on edit
[petitboot] / ui / ncurses / nc-menu.h
index 7b6272e3e60d51fcd716115a996a3c85655c4c64..4fca99f94f1ccc4a60b5011e7bbd437c191a844f 100644 (file)
@@ -46,6 +46,7 @@ struct pmenu_item {
 struct pmenu_item *pmenu_item_alloc(struct pmenu *menu);
 struct pmenu_item *pmenu_item_setup(struct pmenu *menu, struct pmenu_item *i,
        unsigned int index, const char *name);
+int pmenu_item_replace(struct pmenu_item *i, const char *name);
 void pmenu_item_delete(struct pmenu_item *item);
 
 static inline struct pmenu_item *pmenu_item_from_arg(void *arg)