diff options
author | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-09 13:30:25 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@lavabit.com> | 2009-05-09 13:30:25 +0200 |
commit | 2d49dfdd370852d5033b848fd69b6112368b7d20 (patch) | |
tree | e83bbefd73bc643df14b9e0728df1ff5eea11d6a /mpiosh | |
parent | 5c2e36136f0c6801ef73ddeaff7f7d4ac412681f (diff) | |
download | mpiosh-2d49dfdd370852d5033b848fd69b6112368b7d20.tar.gz mpiosh-2d49dfdd370852d5033b848fd69b6112368b7d20.tar.bz2 mpiosh-2d49dfdd370852d5033b848fd69b6112368b7d20.zip |
Drop id3 rewriting
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 |