From 7eeefed0d5e4ec515dbaf980b58b9866b7d7dd5c Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Wed, 31 Mar 2010 18:52:10 +0200 Subject: apev2 editing; apev2->id3v2.4 converter; apev2 writer --- junklib.h | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'junklib.h') diff --git a/junklib.h b/junklib.h index cf956e25..a3a8884c 100644 --- a/junklib.h +++ b/junklib.h @@ -24,10 +24,10 @@ struct playItem_s; int -junk_read_id3v1 (struct playItem_s *it, DB_FILE *fp); +junk_id3v1_read (struct playItem_s *it, DB_FILE *fp); int -junk_read_id3v2_full (struct playItem_s *it, DB_id3v2_tag_t *tag, DB_FILE *fp); +junk_id3v2_read_full (struct playItem_s *it, DB_id3v2_tag_t *tag, DB_FILE *fp); int junk_id3v2_convert_24_to_23 (DB_id3v2_tag_t *tag24, DB_id3v2_tag_t *tag23); @@ -38,6 +38,9 @@ junk_id3v2_convert_23_to_24 (DB_id3v2_tag_t *tag23, DB_id3v2_tag_t *tag24); int junk_id3v2_convert_22_to_24 (DB_id3v2_tag_t *tag22, DB_id3v2_tag_t *tag24); +int +junk_id3v2_convert_apev2_to_24 (DB_apev2_tag_t *ape, DB_id3v2_tag_t *tag24); + DB_id3v2_frame_t * junk_id3v2_add_text_frame_23 (DB_id3v2_tag_t *tag, const char *frame_id, const char *value); @@ -48,16 +51,28 @@ int junk_id3v2_remove_frames (DB_id3v2_tag_t *tag, const char *frame_id); int -junk_write_id3v2 (const char *fname, DB_id3v2_tag_t *tag); +junk_id3v2_write (FILE *file, DB_id3v2_tag_t *tag); void -junk_free_id3v2 (DB_id3v2_tag_t *tag); +junk_id3v2_free (DB_id3v2_tag_t *tag); int -junk_read_id3v2 (struct playItem_s *it, DB_FILE *fp); +junk_id3v2_read (struct playItem_s *it, DB_FILE *fp); + +int +junk_apev2_read_full (struct playItem_s *it, DB_apev2_tag_t *tag_store, DB_FILE *fp); + +int +junk_apev2_read (struct playItem_s *it, DB_FILE *fp); + +DB_apev2_frame_t * +junk_apev2_add_text_frame (DB_apev2_tag_t *tag, const char *frame_id, const char *value); + +void +junk_apev2_free (DB_apev2_tag_t *tag); int -junk_read_ape (struct playItem_s *it, DB_FILE *fp); +junk_apev2_write (FILE *fp, DB_apev2_tag_t *tag, int write_header, int write_footer); int junk_get_leading_size_stdio (FILE *fp); -- cgit v1.2.3