summaryrefslogtreecommitdiffstats
path: root/updates.go
diff options
context:
space:
mode:
Diffstat (limited to 'updates.go')
-rw-r--r--updates.go10
1 files changed, 6 insertions, 4 deletions
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