summaryrefslogtreecommitdiff
path: root/apps/plugin.h
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2023-01-22 13:35:27 +0000
committerAidan MacDonald <amachronic@protonmail.com>2023-03-23 13:01:23 -0400
commita64cad847e7d24dc4d01d5ab22f6c8dc42f960ae (patch)
tree90bd4418ff3bdfbd03a225aa40e1695032682e09 /apps/plugin.h
parentd40a598970b04bfe3a867a5e12debc45c149b46b (diff)
downloadrockbox-a64cad847e7d24dc4d01d5ab22f6c8dc42f960ae.tar.gz
rockbox-a64cad847e7d24dc4d01d5ab22f6c8dc42f960ae.zip
playlist: Simplify playlist modified detection
Any modifications to the playlist (insert, delete, shuffle, etc) will cause the modified flag to be set. The flag is cleared when the playlist is saved. Code that generates playlists can manually clear the modified flag if appropriate; there is now a proper API for this so the tagcache and pictureflow don't need to resort to hacks. Change-Id: I8d3c723265a41db07a13de3f1d2abb0444528d57
Diffstat (limited to 'apps/plugin.h')
-rw-r--r--apps/plugin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugin.h b/apps/plugin.h
index cf6a1bc4e4..c54ef180ec 100644
--- a/apps/plugin.h
+++ b/apps/plugin.h
@@ -954,6 +954,7 @@ struct plugin_api {
954 bool (*tagtree_subentries_do_action)(bool (*action_cb)(const char *file_name)); 954 bool (*tagtree_subentries_do_action)(bool (*action_cb)(const char *file_name));
955#endif 955#endif
956 void (*adjust_volume)(int steps); 956 void (*adjust_volume)(int steps);
957 void (*playlist_set_modified)(struct playlist_info *playlist, bool modified);
957}; 958};
958 959
959/* plugin header */ 960/* plugin header */