diff options
Diffstat (limited to 'mpiosh')
-rw-r--r-- | mpiosh/callback.c | 44 | ||||
-rw-r--r-- | mpiosh/global.c | 6 | ||||
-rw-r--r-- | mpiosh/mpiosh.c | 4 |
3 files changed, 0 insertions, 54 deletions
diff --git a/mpiosh/callback.c b/mpiosh/callback.c index 10e5a0a..e98a334 100644 --- a/mpiosh/callback.c +++ b/mpiosh/callback.c @@ -297,10 +297,6 @@ mpiosh_cmd_open(char *args[]) if ((mpiosh.dev) && (mpiosh.config->charset)) mpio_charset_set(mpiosh.dev, mpiosh.config->charset); - if (mpiosh.dev) { - mpio_id3_set(mpiosh.dev, mpiosh.config->id3_rewriting); - mpio_id3_format_set(mpiosh.dev, mpiosh.config->id3_format); - } } void @@ -1246,46 +1242,6 @@ mpiosh_cmd_lmkdir(char *args[]) } void -mpiosh_cmd_id3(char *args[]) -{ - BYTE status; - int n; - - MPIOSH_CHECK_CONNECTION_CLOSED; - - if (args[0] == NULL) { - status = mpio_id3_get(mpiosh.dev); - printf("ID3 rewriting is %s\n", (status?"ON":"OFF")); - return; - } else { - if (!strcmp(args[0], "on")) { - status = mpio_id3_set(mpiosh.dev, 1); - } else if (!strcmp(args[0], "off")) { - status = mpio_id3_set(mpiosh.dev, 0); - } else { - fprintf(stderr, "unknown id3 command\n"); - return; - } - printf("ID3 rewriting is now %s\n", (status?"ON":"OFF")); - } -} - -void -mpiosh_cmd_id3_format(char *args[]) -{ - CHAR format[INFO_LINE]; - - MPIOSH_CHECK_CONNECTION_CLOSED; - - if (args[0] == NULL) { - mpio_id3_format_get(mpiosh.dev, format); - printf("current format line: \"%s\"\n", format); - } else { - mpio_id3_format_set(mpiosh.dev, args[0]); - } -} - -void mpiosh_cmd_font_upload(char *args[]) { BYTE * p; diff --git a/mpiosh/global.c b/mpiosh/global.c index 09a63f3..04fd9e7 100644 --- a/mpiosh/global.c +++ b/mpiosh/global.c @@ -125,12 +125,6 @@ struct mpiosh_cmd_t commands[] = { { "health", NULL, NULL, " show the health status from the selected memory", mpiosh_cmd_health, NULL }, - { "id3", NULL, "[<on|off>]", - " enable/disable ID3 rewriting support", - mpiosh_cmd_id3, mpiosh_readline_comp_onoff }, - { "id3_format", NULL, "[<format>]", - " define/show the format line for ID3 rewriting", - mpiosh_cmd_id3_format, NULL }, { "font_upload", NULL, "[<fontfile>]", " upload the give fontfile to the internal memory", mpiosh_cmd_font_upload, NULL }, diff --git a/mpiosh/mpiosh.c b/mpiosh/mpiosh.c index 7a5370a..e74278d 100644 --- a/mpiosh/mpiosh.c +++ b/mpiosh/mpiosh.c @@ -66,10 +66,6 @@ mpiosh_init(void) if ((mpiosh.dev) && (mpiosh.config->charset)) mpio_charset_set(mpiosh.dev, mpiosh.config->charset); - if (mpiosh.dev) { - mpio_id3_set(mpiosh.dev, mpiosh.config->id3_rewriting); - mpio_id3_format_set(mpiosh.dev, mpiosh.config->id3_format); - } } void |