sticker: don't export sticker_list_values()
sticker_list_values() is only used internally in sticker.c. Remove sticker_song_list_values() completely, it is superseded by sticker_song_get().
This commit is contained in:
@@ -40,22 +40,6 @@ sticker_song_get_value(const struct song *song, const char *name)
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
GHashTable *
|
|
||||||
sticker_song_list_values(const struct song *song)
|
|
||||||
{
|
|
||||||
char *uri;
|
|
||||||
GHashTable *hash;
|
|
||||||
|
|
||||||
assert(song != NULL);
|
|
||||||
assert(song_in_database(song));
|
|
||||||
|
|
||||||
uri = song_get_uri(song);
|
|
||||||
hash = sticker_list_values("song", uri);
|
|
||||||
g_free(uri);
|
|
||||||
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
sticker_song_set_value(const struct song *song,
|
sticker_song_set_value(const struct song *song,
|
||||||
const char *name, const char *value)
|
const char *name, const char *value)
|
||||||
|
@@ -41,13 +41,6 @@ bool
|
|||||||
sticker_song_set_value(const struct song *song,
|
sticker_song_set_value(const struct song *song,
|
||||||
const char *name, const char *value);
|
const char *name, const char *value);
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a hash table of key value pairs from a song's sticker record.
|
|
||||||
* The caller must free the GHashTable with g_hash_table_destroy().
|
|
||||||
*/
|
|
||||||
GHashTable *
|
|
||||||
sticker_song_list_values(const struct song *song);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes a sticker from the database. All values are deleted.
|
* Deletes a sticker from the database. All values are deleted.
|
||||||
*/
|
*/
|
||||||
|
@@ -194,7 +194,7 @@ sticker_load_value(const char *type, const char *uri, const char *name)
|
|||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
GHashTable *
|
static GHashTable *
|
||||||
sticker_list_values(const char *type, const char *uri)
|
sticker_list_values(const char *type, const char *uri)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
@@ -66,14 +66,6 @@ sticker_global_finish(void);
|
|||||||
bool
|
bool
|
||||||
sticker_enabled(void);
|
sticker_enabled(void);
|
||||||
|
|
||||||
/**
|
|
||||||
* Populates a GHashTable with GStrings of sticker keys and values
|
|
||||||
* from an object's sticker record. The caller must free the returned
|
|
||||||
* GHashTable with g_hash_list_destroy().
|
|
||||||
*/
|
|
||||||
GHashTable *
|
|
||||||
sticker_list_values(const char *type, const char *uri);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns one value from an object's sticker record. The caller must
|
* Returns one value from an object's sticker record. The caller must
|
||||||
* free the return value with g_free().
|
* free the return value with g_free().
|
||||||
|
Reference in New Issue
Block a user