summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_engine.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-10-02 18:02:27 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-17 14:29:12 +0100
commitc6ee9dc8833814bf628ea5ce53e91c60067c5a06 (patch)
tree9a4680c1e1eca4763e98c215acc39a99200fbed7 /apps/gui/skin_engine/skin_engine.h
parent4bd97c653558bde62237f095a6b9810fb5d16491 (diff)
downloadrockbox-c6ee9dc8833814bf628ea5ce53e91c60067c5a06.tar.gz
rockbox-c6ee9dc8833814bf628ea5ce53e91c60067c5a06.zip
Limit exposure of skin engine internals
Drop wps_internals.h from skin_engine.h. The WPS and to a lesser extent the radio screen are too tightly integrated to drop their dependency on wps_internals.h, unfortunately. Skinned lists, for obvious reasons, also need access to the internals. Change-Id: I00a55aa423900f9ad22edccbe2fc1910af380e38
Diffstat (limited to 'apps/gui/skin_engine/skin_engine.h')
-rw-r--r--apps/gui/skin_engine/skin_engine.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_engine.h b/apps/gui/skin_engine/skin_engine.h
index e26ec34d1f..d7efb5b888 100644
--- a/apps/gui/skin_engine/skin_engine.h
+++ b/apps/gui/skin_engine/skin_engine.h
@@ -26,8 +26,7 @@
26#ifndef PLUGIN 26#ifndef PLUGIN
27 27
28#include "tag_table.h" 28#include "tag_table.h"
29 29#include "screen_access.h"
30#include "wps_internals.h" /* TODO: remove this line.. shoudlnt be needed */
31 30
32enum skinnable_screens { 31enum skinnable_screens {
33 CUSTOM_STATUSBAR, 32 CUSTOM_STATUSBAR,
@@ -39,6 +38,11 @@ enum skinnable_screens {
39 SKINNABLE_SCREENS_COUNT 38 SKINNABLE_SCREENS_COUNT
40}; 39};
41 40
41struct skin_stats;
42struct skin_viewport;
43struct touchregion;
44struct wps_data;
45
42#ifdef HAVE_TOUCHSCREEN 46#ifdef HAVE_TOUCHSCREEN
43int skin_get_touchaction(struct wps_data *data, int* edge_offset, 47int skin_get_touchaction(struct wps_data *data, int* edge_offset,
44 struct touchregion **retregion); 48 struct touchregion **retregion);
@@ -89,5 +93,7 @@ void skin_unload_all(void);
89bool skin_do_full_update(enum skinnable_screens skin, enum screen_type screen); 93bool skin_do_full_update(enum skinnable_screens skin, enum screen_type screen);
90void skin_request_full_update(enum skinnable_screens skin); 94void skin_request_full_update(enum skinnable_screens skin);
91 95
96bool dbg_skin_engine(void);
97
92#endif /* !PLUGIN */ 98#endif /* !PLUGIN */
93#endif 99#endif