diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-04 23:22:21 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-11-15 14:20:31 +0000 |
commit | 73b1e30bb04d87144c4106ff7a9457507d191491 (patch) | |
tree | 377a307a2ba7f3065fa60cf316c20c01d03a2725 /apps/gui/skin_engine/skin_engine.h | |
parent | 45bd4c7220280e3eafdd2722cc17c8db8617b676 (diff) | |
download | rockbox-73b1e30bb04d87144c4106ff7a9457507d191491.tar.gz rockbox-73b1e30bb04d87144c4106ff7a9457507d191491.zip |
skin engine: Reduce scope of internal wps_data struct
A bunch of public API calls take a wps_data struct argument,
but that's an internal type that doesn't have a direct getter.
Instead the skin engine provides a gui_wps struct as a way
to refer to a particular skin instance. Use that instead of
wps_data in the public API.
Change-Id: I13e1aa8df7f08ccfb789bb728d493ac8d7de1a9b
Diffstat (limited to 'apps/gui/skin_engine/skin_engine.h')
-rw-r--r-- | apps/gui/skin_engine/skin_engine.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/apps/gui/skin_engine/skin_engine.h b/apps/gui/skin_engine/skin_engine.h index b56674112c..d04c873e84 100644 --- a/apps/gui/skin_engine/skin_engine.h +++ b/apps/gui/skin_engine/skin_engine.h | |||
@@ -40,25 +40,18 @@ enum skinnable_screens { | |||
40 | 40 | ||
41 | struct skin_stats; | 41 | struct skin_stats; |
42 | struct skin_viewport; | 42 | struct skin_viewport; |
43 | struct wps_data; | 43 | struct gui_wps; |
44 | 44 | ||
45 | #ifdef HAVE_TOUCHSCREEN | 45 | #ifdef HAVE_TOUCHSCREEN |
46 | int skin_get_touchaction(struct wps_data *data, int* edge_offset); | 46 | int skin_get_touchaction(struct gui_wps *gwps, int* edge_offset); |
47 | void skin_disarm_touchregions(struct wps_data *data); | 47 | void skin_disarm_touchregions(struct gui_wps *gwps); |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | /* Do a update_type update of the skinned screen */ | 50 | /* Do a update_type update of the skinned screen */ |
51 | void skin_update(enum skinnable_screens skin, enum screen_type screen, | 51 | void skin_update(enum skinnable_screens skin, enum screen_type screen, |
52 | unsigned int update_type); | 52 | unsigned int update_type); |
53 | 53 | ||
54 | /* | 54 | bool skin_has_sbs(struct gui_wps *gwps); |
55 | * setup up the skin-data from a format-buffer (isfile = false) | ||
56 | * or from a skinfile (isfile = true) | ||
57 | */ | ||
58 | bool skin_data_load(enum screen_type screen, struct wps_data *wps_data, | ||
59 | const char *buf, bool isfile, struct skin_stats *stats); | ||
60 | |||
61 | bool skin_has_sbs(enum screen_type screen, struct wps_data *data); | ||
62 | 55 | ||
63 | 56 | ||
64 | /* load a backdrop into the skin buffer. | 57 | /* load a backdrop into the skin buffer. |