]> git.tue.mpg.de Git - paraslash.git/commitdiff
server: Deprecate -l=c and -l=m of com_ls().
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 17 Mar 2024 14:08:09 +0000 (15:08 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 26 May 2024 16:15:48 +0000 (18:15 +0200)
These are not very useful. The implementation will be removed after
0.8.0.

aft.c
m4/lls/server_cmd.suite.m4

diff --git a/aft.c b/aft.c
index f1aca7fb8ccc3e31575303a4762d6a7ea35a054f..2fab49b5c627b65635a02259df144e7ac9ade0c6 100644 (file)
--- 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);
index 02afaabb5252a0580711547ad399cef932cfcadc..d694082beac70f0990f0356d1cc2443ca9c38657 100644 (file)
@@ -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