summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-21 21:21:09 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-01-21 21:21:09 +0100
commitc88b07cd7a1380482fad62ac6f1716f2ff3524e7 (patch)
tree44c25d17e4b17979f4be43034482e0a847c40820 /deadbeef.h
parent439db34d8cbd2c558829eac501279adb83dddb95 (diff)
added filenumber column
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/deadbeef.h b/deadbeef.h
index df52223e..cb804113 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -53,6 +53,7 @@ extern "C" {
// DON'T release plugins without DB_PLUGIN_SET_API_VERSION
// api version history:
+// 0.6 -- deadbeef-0.3.3
// 0.5 -- deadbeef-0.3.2
// 0.4 -- deadbeef-0.3.0
// 0.3 -- deadbeef-0.2.3.2
@@ -60,7 +61,7 @@ extern "C" {
// 0.1 -- deadbeef-0.2.0
#define DB_API_VERSION_MAJOR 0
-#define DB_API_VERSION_MINOR 5
+#define DB_API_VERSION_MINOR 6
#define DB_PLUGIN_SET_API_VERSION\
.plugin.api_vmajor = DB_API_VERSION_MAJOR,\
@@ -173,6 +174,7 @@ enum {
// preset columns, working using IDs
enum pl_column_t {
+ DB_COLUMN_FILENUMBER = 0,
DB_COLUMN_PLAYING = 1,
DB_COLUMN_ARTIST_ALBUM = 2,
DB_COLUMN_ARTIST = 3,
@@ -180,7 +182,7 @@ enum pl_column_t {
DB_COLUMN_TITLE = 5,
DB_COLUMN_DURATION = 6,
DB_COLUMN_TRACK = 7,
- DB_COLUMN_ID_MAX = 7
+ DB_COLUMN_ID_MAX
};
// message ids for communicating with player
@@ -295,6 +297,7 @@ typedef struct {
/*
this function formats line for display in playlist
@it pointer to playlist item
+ @idx number of that item in playlist (or -1)
@s output buffer
@size size of output buffer
@id one of IDs defined in pl_column_id_t enum, can be -1
@@ -311,7 +314,7 @@ typedef struct {
%r copyright
more to come
*/
- int (*pl_format_title) (DB_playItem_t *it, char *s, int size, int id, const char *fmt);
+ int (*pl_format_title) (DB_playItem_t *it, int idx, char *s, int size, int id, const char *fmt);
void (*pl_format_item_display_name) (DB_playItem_t *it, char *str, int len);
// void (*pl_set_next) (DB_playItem_t *it, DB_playItem_t *next, int iter);
// void (*pl_set_prev) (DB_playItem_t *it, DB_playItem_t *prev, int iter);