From 82e19fd1e3896c0775b721c5b39eec63d4813701 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 17 Mar 2024 15:08:09 +0100 Subject: [PATCH] server: Deprecate -l=c and -l=m of com_ls(). These are not very useful. The implementation will be removed after 0.8.0. --- aft.c | 10 +++++++--- m4/lls/server_cmd.suite.m4 | 9 +++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/aft.c b/aft.c index f1aca7fb..2fab49b5 100644 --- a/aft.c +++ b/aft.c @@ -1475,11 +1475,15 @@ static int com_ls(struct command_context *cc, struct lls_parse_result *lpr) opts->mode = LS_MODE_SHORT; else if (!strcmp(val, "v") || !strcmp(val, "verbose")) opts->mode = LS_MODE_VERBOSE; - else if (!strcmp(val, "m") || !strcmp(val, "mbox")) + else if (!strcmp(val, "m") || !strcmp(val, "mbox")) { + send_sb_va(&cc->scc, SBD_WARNING_LOG, + "Warning: mbox listing mode is deprecated\n"); opts->mode = LS_MODE_MBOX; - else if (!strcmp(val, "c") || !strcmp(val, "chunk-table")) + } else if (!strcmp(val, "c") || !strcmp(val, "chunk-table")) { + send_sb_va(&cc->scc, SBD_WARNING_LOG, + "Warning: chunk table listing mode is deprecated\n"); opts->mode = LS_MODE_CHUNKS; - else if (!strcmp(val, "p") || !strcmp(val, "parser-friendly")) + } else if (!strcmp(val, "p") || !strcmp(val, "parser-friendly")) opts->mode = LS_MODE_PARSER; else { ret = -ERRNO_TO_PARA_ERROR(EINVAL); diff --git a/m4/lls/server_cmd.suite.m4 b/m4/lls/server_cmd.suite.m4 index 02afaabb..d694082b 100644 --- a/m4/lls/server_cmd.suite.m4 +++ b/m4/lls/server_cmd.suite.m4 @@ -216,11 +216,12 @@ m4_include(`com_ll.m4') a length field. mbox (m). Generate output suitable to be viewed with a mail - program. One "mail" per matching audio file. - - chunk-table (c). Print path (or basename, depending on whether -p is - also given), chunk time and chunk offsets. + program. One "mail" per matching audio file. This listing mode is + deprecated and will be removed after paraslash-0.8.0 has been released. + chunk-table (c). Print path (or basename, depending on whether -p + is also given), chunk time and chunk offsets. This listing mode is + deprecated and will be removed after paraslash-0.8.0 has been released. [/help] [option limit] short_opt = L -- 2.39.5