From 0efd765588da43ec8cc08c5eabde49254eeb44b8 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sat, 7 Feb 2009 16:12:03 +0200 Subject: Implement ID3v2 read-only access. * .gitignore: Add core. * gnulib.modules: Add argmatch and linked-list. * src/.gitignore: Add .gdbinit * src/slist.c: New file * src/Makefile.am (id3ed_SOURCES): Add new files. * src/cmdline.opt: Remove all options, except -q and --latin1. Add new options: --all and --set. * src/getopt.m4 (BEGIN): Fix handling of optional arguments. * src/id3ed.h: Include xalloc.h, gl_linked_list.h and argmatch.h (v1_block,title,artist,album,year,comment,track,genre): Remove. (DEFAULT_ED_LIST): New define. (set_id3v1): Takes 2 arguments. (string_list_action_fn): new data type. (new_string_list,do_string_list,concat_string_list) (print_string_list): New prototypes. (ed_list_add_item,ed_list_print,ed_list_add_assignment): New prototypes. * src/id3v1.c (id3v1_read,id3v1_write): Bugfixes. (set_id3v1): Take a pointer to id3v1_block as 2nd argument. * src/id3v2.c: Implement show_tags. * src/main.c: Rewrite. --- src/Makefile.am | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index c4205a8..f9d0736 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,12 @@ bin_PROGRAMS=id3ed -id3ed_SOURCES=id3ed.h id3v1.c id3v1.h id3v2.c main.c cmdline.h +id3ed_SOURCES=\ + id3ed.h\ + id3v1.c\ + id3v1.h\ + id3v2.c\ + main.c\ + cmdline.h\ + slist.c BUILT_SOURCES=cmdline.h EXTRA_DIST=cmdline.opt getopt.m4 INCLUDES=-I$(top_srcdir)/gnu -I$(top_builddir)/gnu -- cgit v1.2.1