00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef MP3SPLT_TAGS_UTILS_H
00034
00035 void splt_tu_free_original_tags(splt_state *state);
00036 void splt_tu_auto_increment_tracknumber(splt_state *state);
00037 int splt_tu_append_original_tags(splt_state *state);
00038 void splt_tu_reset_tags(splt_tags *tags);
00039 splt_tags *splt_tu_new_tags(splt_state *state, int *error);
00040 void splt_tu_free_one_tags(splt_tags **tags);
00041 void splt_tu_free_one_tags_content(splt_tags *tags);
00042 int splt_tu_has_one_tag_set(splt_tags *tags);
00043 void splt_tu_copy_tags(splt_tags *from, splt_tags *to, int *error);
00044 int splt_tu_new_tags_if_necessary(splt_state *state, int index);
00045 int splt_tu_tags_exists(splt_state *state, int index);
00046 int splt_tu_set_tags_field(splt_state *state, int index,
00047 int tags_field, const void *data);
00048 int splt_tu_set_like_x_tags_field(splt_state *state,
00049 int tags_field, const void *data);
00050 int splt_tu_set_original_tags_field(splt_state *state,
00051 int tags_field, const void *data);
00052 void splt_tu_set_original_tags_data(splt_state *state, void *data);
00053 void *splt_tu_get_original_tags_data(splt_state *state);
00054 splt_tags *splt_tu_get_tags(splt_state *state, int *tags_number);
00055 splt_tags *splt_tu_get_original_tags_tags(splt_state *state);
00056
00057 int splt_tu_set_tags_in_tags(splt_state *state, int current_tags);
00058 splt_tags *splt_tu_get_tags_at(splt_state *state, int tags_index);
00059 splt_tags splt_tu_get_last_tags(splt_state *state);
00060 void *splt_tu_get_tags_field(splt_state *state, int index, int tags_field);
00061 void splt_tu_free_tags(splt_state *state);
00062 splt_tags *splt_tu_get_tags_like_x(splt_state *state);
00063 splt_tags *splt_tu_get_current_tags(splt_state *state);
00064 void splt_tu_get_original_tags(splt_state *state, int *err);
00065
00066 char *splt_tu_get_artist_or_performer_ptr(splt_tags *tags);
00067
00068 int splt_tu_copy_first_common_tags_on_all_tracks(splt_state *state, int tracks);
00069
00070 int splt_tu_set_field_on_tags(splt_tags *tags, int tags_field, const void *data);
00071
00072 int splt_tu_append_tags(splt_state *state,
00073 const char *title, const char *artist,
00074 const char *album, const char *performer,
00075 const char *year, const char *comment,
00076 int track, const char *genre, int set_original_tags);
00077
00078 void splt_tu_append_tags_to_state(splt_state *state, splt_tags *tags,
00079 int append_null_tags, int *error);
00080
00081 void splt_tu_set_new_tags_where_current_tags_are_null(splt_state *state,
00082 splt_tags *current_tags, splt_tags *new_tags,
00083 int index, int *error);
00084
00085 int splt_tu_append_only_non_null_previous_tags(splt_state *state,
00086 const char *title, const char *artist,
00087 const char *album, const char *performer,
00088 const char *year, const char *comment,
00089 int track, const char *genre, int set_original_tags);
00090
00091 #define MP3SPLT_TAGS_UTILS_H
00092
00093 #endif
00094
00095