summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2012-02-21 11:47:06 (GMT)
committer Jaromil <jaromil@dyne.org>2012-02-21 11:47:06 (GMT)
commitd25f7b5d3fe67570c9cb062cff6646407f17a561 (patch)
tree68bdb3de9d833add39bf92e5e577167296b981dd
parentcd64abc335f06346fb76ba7a39c34079be543902 (diff)
renamed command 'get' to 'status'
-rw-r--r--src/cmdline.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/cmdline.c b/src/cmdline.c
index ab0211a..e3bc5b1 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -80,7 +80,7 @@ void cmdline(int argc, char **argv) {
" play start playing the selected file\n"
" pause pause currently running playback\n"
" stop stop playback and return to menu\n"
- " get get the current status of the device\n"
+ " status print the current status of the device\n"
" jump seek to a position in time (00:00:00)\n"
"\n"
" none means load and play URL, or use - to read xml from stdin\n"
@@ -253,14 +253,15 @@ int main(int argc, char **argv) {
}
break;
- case 's': // stop
- render_upnp(upnp,"Stop","");
- break;
+ case 's':
- case 'g': // dump a parsable full state of the device
- render_upnp(upnp,"GetTransportInfo","");
- parser = GetTransportInfo;
-
+ if(command[2]=='o') // stop
+ render_upnp(upnp,"Stop","");
+ else if(command[2]=='a') { // status
+ // dump a parsable full state of the device
+ render_upnp(upnp,"GetTransportInfo","");
+ parser = GetTransportInfo;
+ }
break;
case 'm': // set the playmode: