summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-09-18 20:07:12 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-02 08:20:10 -0400
commit5b0506e9de356f915138711b62f3e414a8c1b2bb (patch)
tree7d42f57c5133d14efe35b05fa42b54bcfa962350 /apps/plugin.h
parent420fb1163c526cdbfba4b131b8c33824f401cd15 (diff)
downloadrockbox-5b0506e9de356f915138711b62f3e414a8c1b2bb.tar.gz
rockbox-5b0506e9de356f915138711b62f3e414a8c1b2bb.zip
gui: Constify list title text
Use const char* pointers for list titles. Only one debug menu actually modifies the title, and in that case it's legal to cast away const because the title points to a known mutable buffer on the stack. Change-Id: Idb8ab307b9a6ec23a93d8420c5e19fafd9f59c30
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index a487f64168..e35909f409 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -387,7 +387,7 @@ struct plugin_api {
387 void (*gui_synclist_limit_scroll)(struct gui_synclist * lists, bool scroll); 387 void (*gui_synclist_limit_scroll)(struct gui_synclist * lists, bool scroll);
388 bool (*gui_synclist_do_button)(struct gui_synclist * lists, 388 bool (*gui_synclist_do_button)(struct gui_synclist * lists,
389 int *action, enum list_wrap wrap); 389 int *action, enum list_wrap wrap);
390 void (*gui_synclist_set_title)(struct gui_synclist *lists, char* title, 390 void (*gui_synclist_set_title)(struct gui_synclist *lists, const char* title,
391 enum themable_icons icon); 391 enum themable_icons icon);
392 enum yesno_res (*gui_syncyesno_run)(const struct text_message * main_message, 392 enum yesno_res (*gui_syncyesno_run)(const struct text_message * main_message,
393 const struct text_message * yes_message, 393 const struct text_message * yes_message,