un-inline iterator functions

This commit is contained in:
Josh Coalson 2004-09-25 23:46:26 +00:00
parent 42d57fa648
commit 8370a7b050
2 changed files with 29 additions and 20 deletions

View File

@ -572,6 +572,30 @@ char *FLAC_plugin__canonical_get_formatted(FLAC__tag_iterator it)
return NULL; 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 * merging
*/ */

View File

@ -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); void FLAC_plugin__canonical_remove_all(FLAC_Plugin__CanonicalTag *tag, const wchar_t *name);
/* enumeration */ /* enumeration */
static __inline unsigned FLAC_plugin__canonical_get_count(FLAC_Plugin__CanonicalTag *tag) unsigned FLAC_plugin__canonical_get_count(FLAC_Plugin__CanonicalTag *tag);
{ FLAC__tag_iterator FLAC_plugin__canonical_first(FLAC_Plugin__CanonicalTag *tag);
return tag->count; FLAC__tag_iterator FLAC_plugin__canonical_next(FLAC__tag_iterator it);
} wchar_t *FLAC_plugin__canonical_get_name(FLAC__tag_iterator it);
static __inline FLAC__tag_iterator FLAC_plugin__canonical_first(FLAC_Plugin__CanonicalTag *tag) wchar_t *FLAC_plugin__canonical_get_value(FLAC__tag_iterator it);
{
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;
}
/* returns a new string containing the current entry in UTF-8 in "NAME=VALUE" form */ /* 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); char *FLAC_plugin__canonical_get_formatted(FLAC__tag_iterator it);