summaryrefslogtreecommitdiff
path: root/playlist.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-04-13 21:03:52 +0200
committerGravatar waker <wakeroid@gmail.com>2011-04-13 21:15:54 +0200
commita0116d4496107e368b791d86295834c6e844a6e8 (patch)
tree0294bd3a66ea21a634190016bb6065c9c6f86b33 /playlist.h
parent8d6dab0928866350d981793cd9207d0fb284fb4d (diff)
got rid of plt_lock and global_lock in favor of just using pl_lock for all playlist access;
added playlist modification time functions for tracking playlist changes; fixed gtkui playlist group rebuilding
Diffstat (limited to 'playlist.h')
-rw-r--r--playlist.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/playlist.h b/playlist.h
index c96c1870..3aa48b49 100644
--- a/playlist.h
+++ b/playlist.h
@@ -52,6 +52,7 @@ typedef struct playlist_s {
struct playlist_s *next;
int count[2];
float totaltime;
+ time_t modification_time;
playItem_t *head[PL_MAX_ITERATORS]; // head of linked list
playItem_t *tail[PL_MAX_ITERATORS]; // tail of linked list
int current_row[PL_MAX_ITERATORS]; // current row (cursor)
@@ -71,18 +72,11 @@ pl_lock (void);
void
pl_unlock (void);
-void
-plt_lock (void);
-
-void
-plt_unlock (void);
-
-void
-pl_global_lock (void);
-
-void
-pl_global_unlock (void);
-
+//void
+//plt_lock (void);
+//
+//void
+//plt_unlock (void);
// playlist management functions
@@ -132,6 +126,12 @@ plt_get_title (playlist_t *plt, char *buffer, int bufsize);
int
plt_set_title (playlist_t *plt, const char *title);
+void
+plt_modified (playlist_t *plt);
+
+time_t
+plt_get_modification_time (playlist_t *plt);
+
// moves playlist #from to position #to
void
plt_move (int from, int to);