Recently Written · git

sad

sad (2f30.org simple audio daemon) with a Cygwin/OSS port on branch cygwin

git clone https://github.com/equwal/sad

Log | Files | Refs


commit 221c0dbd0a37256fad30d7ced4bd1ee52fca13ba
sin <sin@2f30.org>
2015-01-02 15:31:28 +0000

Update PROTOCOL and rename delete to remove

 PROTOCOL | 5 ++---
 cmd.c    | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/PROTOCOL b/PROTOCOL
index e4295ed..cc0371a 100644
--- a/PROTOCOL
+++ b/PROTOCOL
@@ -29,9 +29,8 @@ Play previous song.
 stop
 Stop playback.
 
-add [ID]
-Add the given song ID from the library to the playlist.  If no ID
-is provided, all songs in the library are added.
+add ID
+Add the given song ID from the library to the playlist.
 
 clear
 Clear playlist and stop playback.
diff --git a/cmd.c b/cmd.c
index 2c696f0..708f13b 100644
--- a/cmd.c
+++ b/cmd.c
@@ -250,7 +250,7 @@ cmdempty(int fd, char *arg)
 }
 
 static void
-cmddelete(int fd, char *arg)
+cmdremove(int fd, char *arg)
 {
 }
 
@@ -401,7 +401,7 @@ static Cmd cmds[] = {
 	{ "add",        cmdadd        },
 	{ "clear",      cmdclear      },
 	{ "empty",      cmdempty      },
-	{ "delete",     cmddelete     },
+	{ "remove",     cmdremove     },
 	{ "playlist",   cmdplaylist   },
 	{ "library",    cmdlibrary    },
 	{ "learn",      cmdlearn      },