Mercurial > audlegacy
comparison src/libid3tag/id3tag.h @ 2563:bdd0ee5888e0 trunk
[svn] - add support for opening id3 tags from a live vfs handle.
Patch by Christian Birchinger (joker).
author | nenolod |
---|---|
date | Sat, 24 Feb 2007 07:41:14 -0800 |
parents | 10692383c103 |
children | 7bf7f83a217e |
comparison
equal
deleted
inserted
replaced
2562:07b990906823 | 2563:bdd0ee5888e0 |
---|---|
26 # define LIBID3TAG_ID3TAG_H | 26 # define LIBID3TAG_ID3TAG_H |
27 | 27 |
28 # ifdef __cplusplus | 28 # ifdef __cplusplus |
29 extern "C" { | 29 extern "C" { |
30 # endif | 30 # endif |
31 | |
32 #include <audacious/vfs.h> | |
31 | 33 |
32 # define ID3_TAG_VERSION 0x0400 | 34 # define ID3_TAG_VERSION 0x0400 |
33 # define ID3_TAG_VERSION_MAJOR(x) (((x) >> 8) & 0xff) | 35 # define ID3_TAG_VERSION_MAJOR(x) (((x) >> 8) & 0xff) |
34 # define ID3_TAG_VERSION_MINOR(x) (((x) >> 0) & 0xff) | 36 # define ID3_TAG_VERSION_MINOR(x) (((x) >> 0) & 0xff) |
35 | 37 |
243 ID3_FILE_MODE_READONLY = 0, | 245 ID3_FILE_MODE_READONLY = 0, |
244 ID3_FILE_MODE_READWRITE | 246 ID3_FILE_MODE_READWRITE |
245 }; | 247 }; |
246 | 248 |
247 struct id3_file *id3_file_open(char const *, enum id3_file_mode); | 249 struct id3_file *id3_file_open(char const *, enum id3_file_mode); |
250 struct id3_file *id3_file_vfsopen(VFSFile *, enum id3_file_mode); | |
248 struct id3_file *id3_file_fdopen(int, enum id3_file_mode); | 251 struct id3_file *id3_file_fdopen(int, enum id3_file_mode); |
249 int id3_file_close(struct id3_file *); | 252 int id3_file_close(struct id3_file *); |
250 | 253 |
251 struct id3_tag *id3_file_tag(struct id3_file const *); | 254 struct id3_tag *id3_file_tag(struct id3_file const *); |
252 | 255 |