diff options
author | raylu <raylu@mixpanel.com> | 2011-08-07 18:48:51 -0700 |
---|---|---|
committer | raylu <raylu@mixpanel.com> | 2011-08-07 18:48:51 -0700 |
commit | c5856a0d115cb46760a359d45a3a734fc1d51b52 (patch) | |
tree | f3cccc20d5f4793490ccc9208de7524896edd6a0 /updates.go | |
parent | f61e03f7f43536adce71c5783536aa67f63f029d (diff) | |
download | audioaxis-c5856a0d115cb46760a359d45a3a734fc1d51b52.tar.xz |
move (reorder) and move updates
Diffstat (limited to 'updates.go')
-rw-r--r-- | updates.go | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |