mirror of
https://xff.cz/git/u-boot/
synced 2025-09-25 12:31:17 +02:00
expo: Add a configuration editor
Add a new 'cedit' command which allows editing configuration using an expo. The configuration items appear as menus on the display. This is extremely basic, only supporting menus and not providing any way to load or save the configuration. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <linux/list.h>
|
||||
|
||||
struct udevice;
|
||||
struct video_priv;
|
||||
|
||||
/**
|
||||
* enum expoact_type - types of actions reported by the expo
|
||||
@@ -378,6 +379,14 @@ int expo_calc_dims(struct expo *exp);
|
||||
*/
|
||||
int expo_set_scene_id(struct expo *exp, uint scene_id);
|
||||
|
||||
/**
|
||||
* expo_first_scene_id() - Get the ID of the first scene
|
||||
*
|
||||
* @exp: Expo to check
|
||||
* Returns: Scene ID of first scene, or -ENOENT if there are no scenes
|
||||
*/
|
||||
int expo_first_scene_id(struct expo *exp);
|
||||
|
||||
/**
|
||||
* expo_render() - render the expo on the display / console
|
||||
*
|
||||
@@ -667,4 +676,24 @@ int expo_apply_theme(struct expo *exp, ofnode node);
|
||||
*/
|
||||
int expo_build(ofnode root, struct expo **expp);
|
||||
|
||||
/**
|
||||
* cedit_arange() - Arrange objects in a configuration-editor scene
|
||||
*
|
||||
* @exp: Expo to update
|
||||
* @vid_priv: Private info of the video device
|
||||
* @scene_id: scene ID to arrange
|
||||
* Returns: 0 if OK, -ve on error
|
||||
*/
|
||||
int cedit_arange(struct expo *exp, struct video_priv *vid_priv, uint scene_id);
|
||||
|
||||
/**
|
||||
* cedit_run() - Run a configuration editor
|
||||
*
|
||||
* This accepts input until the user quits with Escape
|
||||
*
|
||||
* @exp: Expo to use
|
||||
* Returns: 0 if OK, -ve on error
|
||||
*/
|
||||
int cedit_run(struct expo *exp);
|
||||
|
||||
#endif /*__SCENE_H */
|
||||
|
Reference in New Issue
Block a user