Skip to content

Commit

Permalink
Added CMD_PREV.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.daper.net/moc/trunk@809 910807d9-36e0-0310-a014-e9ea483e2ba4
  • Loading branch information
daper committed Dec 23, 2004
1 parent e9ca7db commit 7fc7a01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#define CMD_SEND_EVENTS 0x1d /* request for events */
#define CMD_GET_ERROR 0x1e /* get the error message */
#define CMD_GET_FTIME 0x1f /* get time of a file from the server */
#define CMD_PREV 0x20 /* start playing previous song if available */

char *socket_name ();
int get_int (int sock, int *i);
Expand Down
3 changes: 3 additions & 0 deletions server.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,9 @@ static void handle_command (struct client *cli)
case CMD_NEXT:
audio_next ();
break;
case CMD_PREV:
audio_prev ();
break;
case CMD_PING:
if (!send_int(cli->socket, EV_PONG))
err = 1;
Expand Down

0 comments on commit 7fc7a01

Please sign in to comment.