NONE,
EXIT,
STAT,
+ INFO,
UPLOAD_SAMPLE,
PLAY_SAMPLE,
REMOVE_SAMPLE,
case PA_CONTEXT_READY:
switch (action) {
case STAT:
- actions = 2;
pa_operation_unref(pa_context_stat(c, stat_callback, NULL));
+ break;
+
+ case INFO:
pa_operation_unref(pa_context_get_server_info(c, get_server_info_callback, NULL));
break;
static void help(const char *argv0) {
printf(_("%s [options] stat\n"
+ "%s [options] info\n"
"%s [options] list [TYPE]\n"
"%s [options] exit\n"
"%s [options] upload-sample FILENAME [NAME]\n"
argv0, argv0, argv0, argv0, argv0,
argv0, argv0, argv0, argv0, argv0,
argv0, argv0, argv0, argv0, argv0,
- argv0, argv0);
+ argv0, argv0, argv0);
}
enum {
if (pa_streq(argv[optind], "stat"))
action = STAT;
+ else if (pa_streq(argv[optind], "info"))
+ action = INFO;
+
else if (pa_streq(argv[optind], "exit"))
action = EXIT;