Data Structures | |
| struct | mpg123_string |
| struct | mpg123_text |
| struct | mpg123_id3v2 |
| struct | mpg123_id3v1 |
Defines | |
| #define | MPG123_ID3 0x3 |
| #define | MPG123_NEW_ID3 0x1 |
| #define | MPG123_ICY 0xc |
| #define | MPG123_NEW_ICY 0x4 |
Functions | |
| void | mpg123_init_string (mpg123_string *sb) |
| void | mpg123_free_string (mpg123_string *sb) |
| int | mpg123_resize_string (mpg123_string *sb, size_t news) |
| int | mpg123_grow_string (mpg123_string *sb, size_t news) |
| int | mpg123_copy_string (mpg123_string *from, mpg123_string *to) |
| int | mpg123_add_string (mpg123_string *sb, const char *stuff) |
| int | mpg123_add_substring (mpg123_string *sb, const char *stuff, size_t from, size_t count) |
| int | mpg123_set_string (mpg123_string *sb, const char *stuff) |
| int | mpg123_set_substring (mpg123_string *sb, const char *stuff, size_t from, size_t count) |
| int | mpg123_meta_check (mpg123_handle *mh) |
| int | mpg123_id3 (mpg123_handle *mh, mpg123_id3v1 **v1, mpg123_id3v2 **v2) |
| int | mpg123_icy (mpg123_handle *mh, char **icy_meta) |
| char * | mpg123_icy2utf8 (const char *icy_text) |
| #define MPG123_ID3 0x3 |
| #define MPG123_NEW_ID3 0x1 |
| #define MPG123_ICY 0xc |
| #define MPG123_NEW_ICY 0x4 |
| void mpg123_init_string | ( | mpg123_string * | sb | ) |
Create and allocate memory for a new mpg123_string
| void mpg123_free_string | ( | mpg123_string * | sb | ) |
Free-up mempory for an existing mpg123_string
| int mpg123_resize_string | ( | mpg123_string * | sb, | |
| size_t | news | |||
| ) |
Change the size of a mpg123_string
| int mpg123_grow_string | ( | mpg123_string * | sb, | |
| size_t | news | |||
| ) |
Increase size of a mpg123_string if necessary (it may stay larger). Note that the functions for adding and setting in current libmpg123 use this instead of mpg123_resize_string(). That way, you can preallocate memory and safely work afterwards with pieces.
| int mpg123_copy_string | ( | mpg123_string * | from, | |
| mpg123_string * | to | |||
| ) |
Copy the contents of one mpg123_string string to another.
| int mpg123_add_string | ( | mpg123_string * | sb, | |
| const char * | stuff | |||
| ) |
Append a C-String to an mpg123_string
| int mpg123_add_substring | ( | mpg123_string * | sb, | |
| const char * | stuff, | |||
| size_t | from, | |||
| size_t | count | |||
| ) |
Append a C-substring to an mpg123 string
| from | offset to copy from | |
| count | number of characters to copy (a null-byte is always appended) |
| int mpg123_set_string | ( | mpg123_string * | sb, | |
| const char * | stuff | |||
| ) |
Set the conents of a mpg123_string to a C-string
| int mpg123_set_substring | ( | mpg123_string * | sb, | |
| const char * | stuff, | |||
| size_t | from, | |||
| size_t | count | |||
| ) |
Set the contents of a mpg123_string to a C-substring
| from | offset to copy from | |
| count | number of characters to copy (a null-byte is always appended) |
| int mpg123_meta_check | ( | mpg123_handle * | mh | ) |
Query if there is (new) meta info, be it ID3 or ICY (or something new in future). The check function returns a combination of flags.
| int mpg123_id3 | ( | mpg123_handle * | mh, | |
| mpg123_id3v1 ** | v1, | |||
| mpg123_id3v2 ** | v2 | |||
| ) |
Point v1 and v2 to existing data structures wich may change on any next read/decode function call. v1 and/or v2 can be set to NULL when there is no corresponding data.
| int mpg123_icy | ( | mpg123_handle * | mh, | |
| char ** | icy_meta | |||
| ) |
Point icy_meta to existing data structure wich may change on any next read/decode function call.
| char* mpg123_icy2utf8 | ( | const char * | icy_text | ) |
Decode from windows-1252 (the encoding ICY metainfo used) to UTF-8.
| icy_text | The input data in ICY encoding |
1.5.4