|
Audacious
$Id:Doxyfile42802007-03-2104:39:00Znenolod$
|
Basic Tuple handling API. More...
#include <libaudcore/core.h>Go to the source code of this file.
Enumerations | |
| enum | { FIELD_ARTIST = 0, FIELD_TITLE, FIELD_ALBUM, FIELD_COMMENT, FIELD_GENRE, FIELD_TRACK_NUMBER, FIELD_LENGTH, FIELD_YEAR, FIELD_QUALITY, FIELD_CODEC, FIELD_FILE_NAME, FIELD_FILE_PATH, FIELD_FILE_EXT, FIELD_SONG_ARTIST, FIELD_COMPOSER, FIELD_PERFORMER, FIELD_COPYRIGHT, FIELD_DATE, FIELD_SUBSONG_ID, FIELD_SUBSONG_NUM, FIELD_MIMETYPE, FIELD_BITRATE, FIELD_SEGMENT_START, FIELD_SEGMENT_END, FIELD_GAIN_ALBUM_GAIN, FIELD_GAIN_ALBUM_PEAK, FIELD_GAIN_TRACK_GAIN, FIELD_GAIN_TRACK_PEAK, FIELD_GAIN_GAIN_UNIT, FIELD_GAIN_PEAK_UNIT, TUPLE_FIELDS } |
| Ordered enum for basic #Tuple fields. More... | |
| enum | TupleValueType { TUPLE_STRING, TUPLE_INT, TUPLE_UNKNOWN } |
Functions | |
| int | tuple_field_by_name (const char *name) |
| const char * | tuple_field_get_name (int field) |
| TupleValueType | tuple_field_get_type (int field) |
| Tuple * | tuple_new (void) |
| Tuple * | tuple_ref (Tuple *tuple) |
| void | tuple_unref (Tuple *tuple) |
| Tuple * | tuple_copy (const Tuple *) |
| Creates a copy of given Tuple structure, with copied data. More... | |
| void | tuple_set_filename (Tuple *tuple, const char *filename) |
| Sets filename/URI related fields of a #Tuple structure, based on the given filename argument. More... | |
| Tuple * | tuple_new_from_filename (const char *filename) |
| Allocates a new #Tuple structure, setting filename/URI related fields based on the given filename argument by calling tuple_set_filename. More... | |
| void | tuple_set_int (Tuple *tuple, int nfield, const char *field, int x) |
| void | tuple_set_str (Tuple *tuple, int nfield, const char *field, const char *str) |
| void | tuple_unset (Tuple *tuple, int nfield, const char *field) |
| TupleValueType | tuple_get_value_type (const Tuple *tuple, int nfield, const char *field) |
| Returns TupleValueType of given #Tuple field. More... | |
| char * | tuple_get_str (const Tuple *tuple, int nfield, const char *field) |
| int | tuple_get_int (const Tuple *tuple, int nfield, const char *field) |
| Returns integer associated to #Tuple field. More... | |
| void | tuple_set_format (Tuple *tuple, const char *format, int channels, int samplerate, int bitrate) |
| void | tuple_set_subtunes (Tuple *tuple, int n_subtunes, const int *subtunes) |
| int | tuple_get_n_subtunes (Tuple *tuple) |
| int | tuple_get_nth_subtune (Tuple *tuple, int n) |
| char * | tuple_format_title (Tuple *tuple, const char *format) |
Basic Tuple handling API.
Definition in file tuple.h.
| anonymous enum |
Ordered enum for basic #Tuple fields.
| enum TupleValueType |
| Tuple* tuple_copy | ( | const Tuple * | old | ) |
| int tuple_field_by_name | ( | const char * | name | ) |
Definition at line 165 of file tuple.c.
Referenced by tuple_evalctx_add_var(), tuple_get_int(), tuple_get_str(), tuple_get_value_type(), tuple_set_int(), tuple_set_str(), and tuple_unset().
| const char* tuple_field_get_name | ( | int | field | ) |
Definition at line 178 of file tuple.c.
Referenced by audacious_rc_get_tuple_fields().
| TupleValueType tuple_field_get_type | ( | int | field | ) |
Definition at line 186 of file tuple.c.
Referenced by tuple_evalctx_add_var().
| char* tuple_format_title | ( | Tuple * | tuple, |
| const char * | format | ||
| ) |
Definition at line 600 of file tuple.c.
Referenced by title_from_tuple().
Returns integer associated to #Tuple field.
Desired field can be specified either by key name or if it is one of basic fields, by TupleBasicType index.
| [in] | tuple | #Tuple structure pointer. |
| [in] | cnfield | TupleBasicType index or -1 if key name is to be used instead. |
| [in] | field | String acting as key name or NULL if nfield is used. |
Definition at line 509 of file tuple.c.
Referenced by entry_set_tuple_real(), playback_thread(), read_gain_from_tuple(), tf_get_fieldval(), tuple_compare_int(), and tuple_value_to_gvalue().
| int tuple_get_n_subtunes | ( | Tuple * | tuple | ) |
Definition at line 578 of file tuple.c.
Referenced by add_file().
Definition at line 588 of file tuple.c.
Referenced by add_file().
| char* tuple_get_str | ( | const Tuple * | tuple, |
| int | nfield, | ||
| const char * | field | ||
| ) |
Definition at line 478 of file tuple.c.
Referenced by get_nonblank_field(), playlist_select_by_patterns(), tf_get_fieldval(), tuple_compare_string(), tuple_format_title(), and tuple_value_to_gvalue().
| TupleValueType tuple_get_value_type | ( | const Tuple * | tuple, |
| int | nfield, | ||
| const char * | field | ||
| ) |
Returns TupleValueType of given #Tuple field.
Desired field can be specified either by key name or if it is one of basic fields, by TupleBasicType index.
| [in] | tuple | #Tuple structure pointer. |
| [in] | cnfield | TupleBasicType index or -1 if key name is to be used instead. |
| [in] | field | String acting as key name or NULL if nfield is used. |
Definition at line 459 of file tuple.c.
Referenced by entry_set_tuple_real(), playback_thread(), tf_get_fieldval(), tuple_compare_int(), and tuple_value_to_gvalue().
| Tuple* tuple_new | ( | void | ) |
Definition at line 267 of file tuple.c.
Referenced by tuple_copy(), and tuple_new_from_filename().
| Tuple* tuple_new_from_filename | ( | const char * | filename | ) |
Allocates a new #Tuple structure, setting filename/URI related fields based on the given filename argument by calling tuple_set_filename.
| [in] | filename | Filename URI. |
Definition at line 373 of file tuple.c.
Referenced by entry_set_failed().
| Tuple* tuple_ref | ( | Tuple * | tuple | ) |
Definition at line 274 of file tuple.c.
Referenced by playback_entry_get_tuple(), and playlist_entry_get_tuple().
| void tuple_set_filename | ( | Tuple * | tuple, |
| const char * | filename | ||
| ) |
Sets filename/URI related fields of a #Tuple structure, based on the given filename argument.
The fields set are: FIELD_FILE_PATH, FIELD_FILE_NAME and FIELD_FILE_EXT.
| [in] | filename | Filename URI. |
| [in,out] | tuple | Tuple structure to manipulate. |
Definition at line 305 of file tuple.c.
Referenced by tuple_new_from_filename().
Definition at line 381 of file tuple.c.
Referenced by tuple_set_filename(), and tuple_set_format().
| void tuple_set_str | ( | Tuple * | tuple, |
| int | nfield, | ||
| const char * | field, | ||
| const char * | str | ||
| ) |
Definition at line 396 of file tuple.c.
Referenced by tuple_set_filename(), and tuple_set_format().
| void tuple_unref | ( | Tuple * | tuple | ) |
Definition at line 284 of file tuple.c.
Referenced by add_file(), entry_free(), entry_set_tuple_real(), get_field(), get_mpris_metadata(), index_free_tuples(), mpris_emit_track_change(), playback_thread(), playlist_remove_duplicates_by_scheme(), playlist_save(), playlist_select_by_patterns(), and scan_request_free().
| void tuple_unset | ( | Tuple * | tuple, |
| int | nfield, | ||
| const char * | field | ||
| ) |
Definition at line 425 of file tuple.c.
Referenced by tuple_set_str().
1.8.5