From c5856a0d115cb46760a359d45a3a734fc1d51b52 Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 7 Aug 2011 18:48:51 -0700 Subject: move (reorder) and move updates --- updates.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'updates.go') diff --git a/updates.go b/updates.go index c36bda8..33f12a9 100644 --- a/updates.go +++ b/updates.go @@ -5,12 +5,14 @@ import ( ) const ( - addAction = 0 - removeAction = 1 + addAction = 0 + removeAction = 1 + moveUpAction = 2 + moveDownAction = 3 ) type Update struct { Song *Song - Action uint8 + Action uint Timestamp int64 Next *Update } @@ -22,7 +24,7 @@ func init() { tailUpdates = make(map[int]*Update) } -func addUpdate(pid int, action uint8, song *Song) { +func addUpdate(pid int, action uint, song *Song) { update := new(Update) update.Song = song update.Action = action -- cgit v1.2.3