From 2d49dfdd370852d5033b848fd69b6112368b7d20 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sat, 9 May 2009 13:30:25 +0200 Subject: Drop id3 rewriting --- mpiosh/callback.c | 44 -------------------------------------------- mpiosh/global.c | 6 ------ mpiosh/mpiosh.c | 4 ---- 3 files changed, 54 deletions(-) (limited to 'mpiosh') 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 @@ -1245,46 +1241,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[]) { 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, "[]", - " enable/disable ID3 rewriting support", - mpiosh_cmd_id3, mpiosh_readline_comp_onoff }, - { "id3_format", NULL, "[]", - " define/show the format line for ID3 rewriting", - mpiosh_cmd_id3_format, NULL }, { "font_upload", NULL, "[]", " 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 -- cgit v1.2.3