diff options
author | waker <wakeroid@gmail.com> | 2012-04-06 10:32:38 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-04-06 10:32:38 +0200 |
commit | 26293f4882d7476459a0aa90e992ad67a4585375 (patch) | |
tree | 4c2e65559e5af2145ad58d7ca7e0909760e67357 /deadbeef.h | |
parent | 721aae59d8d10a242850033f66ac5685ddb9e769 (diff) |
added random sort (based on patch from defusix)
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -295,6 +295,13 @@ enum { DDB_REPLAYGAIN_TRACKPEAK, }; +// sort order constants +enum ddb_sort_order_t { + DDB_SORT_DESCENDING, + DDB_SORT_ASCENDING, + DDB_SORT_RANDOM, // available since API 1.3 +}; + // typecasting macros #define DB_PLUGIN(x) ((DB_plugin_t *)(x)) #define DB_CALLBACK(x) ((DB_callback_t)(x)) @@ -476,7 +483,7 @@ typedef struct { void (*plt_copy_items) (ddb_playlist_t *to, int iter, ddb_playlist_t * from, DB_playItem_t *before, uint32_t *indices, int cnt); void (*plt_search_reset) (ddb_playlist_t *plt); void (*plt_search_process) (ddb_playlist_t *plt, const char *text); - void (*plt_sort) (ddb_playlist_t *plt, int iter, int id, const char *format, int ascending); + void (*plt_sort) (ddb_playlist_t *plt, int iter, int id, const char *format, int order); // add files and folders to current playlist int (*plt_add_file) (ddb_playlist_t *plt, const char *fname, int (*cb)(DB_playItem_t *it, void *data), void *user_data); |