static void add_frameFromTupleStr (const Tuple * tuple, int field, int id3_field, GHashTable * dict) { char * str = tuple_get_str (tuple, field); add_text_frame (id3_field, str, dict); str_unref (str); }
static void add_frameFromTupleInt (const Tuple * tuple, int field, int id3_field, GHashTable * dict) { if (tuple_get_value_type (tuple, field) != TUPLE_INT) { remove_frame (id3_field, dict); return; } char scratch[16]; str_itoa (tuple_get_int (tuple, field), scratch, sizeof scratch); add_text_frame (id3_field, scratch, dict); }
static void add_frameFromTupleInt (const Tuple * tuple, gint field, gint id3_field, mowgli_dictionary_t * dict) { if (tuple_get_value_type (tuple, field, NULL) != TUPLE_INT) { remove_frame (id3_field, dict); return; } gchar scratch[16]; snprintf (scratch, sizeof scratch, "%d", tuple_get_int (tuple, field, NULL)); add_text_frame (id3_field, scratch, dict); }
static void add_frameFromTupleStr (const Tuple * tuple, gint field, gint id3_field, mowgli_dictionary_t * dict) { add_text_frame (id3_field, tuple_get_string (tuple, field, NULL), dict); }