const gchar* key)
{
g_return_val_if_fail (KATZE_IS_ITEM (item), NULL);
+ g_return_val_if_fail (key != NULL, NULL);
return g_hash_table_lookup (item->metadata, key);
}
const gchar* value)
{
g_return_if_fail (KATZE_IS_ITEM (item));
+ g_return_if_fail (key != NULL);
g_hash_table_insert (item->metadata, g_strdup (key), g_strdup (value));
/* TODO: Emit meta-key-changed */
gpointer value;
g_return_val_if_fail (KATZE_IS_ITEM (item), -1);
+ g_return_val_if_fail (key != NULL, -1);
if (g_hash_table_lookup_extended (item->metadata, key, NULL, &value))
return g_ascii_strtoll (value, NULL, 0);
gint64 value)
{
g_return_if_fail (KATZE_IS_ITEM (item));
+ g_return_if_fail (key != NULL);
g_hash_table_insert (item->metadata, g_strdup (key), g_strdup_printf ("%lu", value));
/* TODO: Emit meta-key-changed */