[pkg-mad-maintainers] Bug#436239: Bug#436239: libid3tag0-dev: header file "/usr/include/id3tag.h" does not contain definition for struct id3_file altough it references it

Folkert van Heusden folkert at vanheusden.com
Mon Aug 6 15:20:37 UTC 2007


> > See subject
> > libid3tag0-dev: header file "/usr/include/id3tag.h" does not contain definition for struct id3_file altough it references it
> > folkert at belle:~/Personal/src/acpitail$ grep id3_file /usr/include/id3tag.h | grep -v "^enum id3_file_mode"
> > struct id3_file *id3_file_open(char const *, enum id3_file_mode);
> > struct id3_file *id3_file_fdopen(int, enum id3_file_mode);
> > int id3_file_close(struct id3_file *);
> > struct id3_tag *id3_file_tag(struct id3_file const *);
> > int id3_file_update(struct id3_file *);
> > as you can see some functions require this structure but it is not defined anywhere
> 
> Looks to me like this is an opaque data type.   Its only ever referenced
> as a pointer type so the user of the API never needs to know what the
> layout of the type really is.

Hmmm, I could do (tested and it compiles):

	void *handle = (void *)id3_file_open(...);

but I wonder if that is guaranteed to work.


Folkert van Heusden

-- 
To MultiTail einai ena polymorfiko ergaleio gia ta logfiles kai tin
eksodo twn entolwn. Prosferei: filtrarisma, xrwmatismo, sygxwneysi,
diaforetikes provoles. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com




More information about the pkg-mad-maintainers mailing list