mirror of https://github.com/xiph/flac
un-inline iterator functions
This commit is contained in:
parent
42d57fa648
commit
8370a7b050
|
@ -572,6 +572,30 @@ char *FLAC_plugin__canonical_get_formatted(FLAC__tag_iterator it)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* enumeration
|
||||
*/
|
||||
unsigned FLAC_plugin__canonical_get_count(FLAC_Plugin__CanonicalTag *tag)
|
||||
{
|
||||
return tag->count;
|
||||
}
|
||||
FLAC__tag_iterator FLAC_plugin__canonical_first(FLAC_Plugin__CanonicalTag *tag)
|
||||
{
|
||||
return tag->head;
|
||||
}
|
||||
FLAC__tag_iterator FLAC_plugin__canonical_next(FLAC__tag_iterator it)
|
||||
{
|
||||
return it->next;
|
||||
}
|
||||
wchar_t *FLAC_plugin__canonical_get_name(FLAC__tag_iterator it)
|
||||
{
|
||||
return it->name;
|
||||
}
|
||||
wchar_t *FLAC_plugin__canonical_get_value(FLAC__tag_iterator it)
|
||||
{
|
||||
return it->value;
|
||||
}
|
||||
|
||||
/*
|
||||
* merging
|
||||
*/
|
||||
|
|
|
@ -70,26 +70,11 @@ FLAC__bool FLAC_plugin__canonical_remove(FLAC_Plugin__CanonicalTag *tag, const w
|
|||
void FLAC_plugin__canonical_remove_all(FLAC_Plugin__CanonicalTag *tag, const wchar_t *name);
|
||||
|
||||
/* enumeration */
|
||||
static __inline unsigned FLAC_plugin__canonical_get_count(FLAC_Plugin__CanonicalTag *tag)
|
||||
{
|
||||
return tag->count;
|
||||
}
|
||||
static __inline FLAC__tag_iterator FLAC_plugin__canonical_first(FLAC_Plugin__CanonicalTag *tag)
|
||||
{
|
||||
return tag->head;
|
||||
}
|
||||
static __inline FLAC__tag_iterator FLAC_plugin__canonical_next(FLAC__tag_iterator it)
|
||||
{
|
||||
return it->next;
|
||||
}
|
||||
static __inline wchar_t *FLAC_plugin__canonical_get_name(FLAC__tag_iterator it)
|
||||
{
|
||||
return it->name;
|
||||
}
|
||||
static __inline wchar_t *FLAC_plugin__canonical_get_value(FLAC__tag_iterator it)
|
||||
{
|
||||
return it->value;
|
||||
}
|
||||
unsigned FLAC_plugin__canonical_get_count(FLAC_Plugin__CanonicalTag *tag);
|
||||
FLAC__tag_iterator FLAC_plugin__canonical_first(FLAC_Plugin__CanonicalTag *tag);
|
||||
FLAC__tag_iterator FLAC_plugin__canonical_next(FLAC__tag_iterator it);
|
||||
wchar_t *FLAC_plugin__canonical_get_name(FLAC__tag_iterator it);
|
||||
wchar_t *FLAC_plugin__canonical_get_value(FLAC__tag_iterator it);
|
||||
|
||||
/* returns a new string containing the current entry in UTF-8 in "NAME=VALUE" form */
|
||||
char *FLAC_plugin__canonical_get_formatted(FLAC__tag_iterator it);
|
||||
|
|
Loading…
Reference in New Issue