aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-04-01 17:27:59 +0200
committerMax Kellermann <max@duempel.org>2009-04-01 17:27:59 +0200
commitefcf40f55b422f95646ba84b1ef3ee8c0a9fcf76 (patch)
treea5bfd48b6bf6f9c6b8d1e6f1f817c7d5fed52f8b /src
parent8ce2ec7aedf995a37953711e0866a9beef0ae243 (diff)
downloadmpd-efcf40f55b422f95646ba84b1ef3ee8c0a9fcf76.tar.gz
mpd-efcf40f55b422f95646ba84b1ef3ee8c0a9fcf76.tar.xz
mpd-efcf40f55b422f95646ba84b1ef3ee8c0a9fcf76.zip
sticker: pass const sticker to sticker_foreach()
Diffstat (limited to 'src')
-rw-r--r--src/sticker.c4
-rw-r--r--src/sticker.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sticker.c b/src/sticker.c
index e7f828ab1..255bfe177 100644
--- a/src/sticker.c
+++ b/src/sticker.c
@@ -457,7 +457,7 @@ sticker_free(struct sticker *sticker)
}
const char *
-sticker_get_value(struct sticker *sticker, const char *name)
+sticker_get_value(const struct sticker *sticker, const char *name)
{
return g_hash_table_lookup(sticker->table, name);
}
@@ -477,7 +477,7 @@ sticker_foreach_func(gpointer key, gpointer value, gpointer user_data)
}
void
-sticker_foreach(struct sticker *sticker,
+sticker_foreach(const struct sticker *sticker,
void (*func)(const char *name, const char *value,
gpointer user_data),
gpointer user_data)
diff --git a/src/sticker.h b/src/sticker.h
index 3de4801f9..77363d61e 100644
--- a/src/sticker.h
+++ b/src/sticker.h
@@ -104,7 +104,7 @@ sticker_free(struct sticker *sticker);
* @return the sticker value, or NULL if none was found
*/
const char *
-sticker_get_value(struct sticker *sticker, const char *name);
+sticker_get_value(const struct sticker *sticker, const char *name);
/**
* Iterates over all sticker items in a sticker.
@@ -114,7 +114,7 @@ sticker_get_value(struct sticker *sticker, const char *name);
* @param user_data an opaque pointer for the callback function
*/
void
-sticker_foreach(struct sticker *sticker,
+sticker_foreach(const struct sticker *sticker,
void (*func)(const char *name, const char *value,
gpointer user_data),
gpointer user_data);