gsttaglist.h: Whoops, foreach function returns void. Also fix some constness.

Original commit message from CVS:
2005-11-19  Andy Wingo  <wingo@pobox.com>

* gsttaglist.h: Whoops, foreach function returns void. Also fix
some constness.
This commit is contained in:
Andy Wingo 2005-11-19 16:05:11 +00:00
parent e89aaa7e30
commit ff1eca9d57
3 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,8 @@
2005-11-19 Andy Wingo <wingo@pobox.com>
* gsttaglist.h: Whoops, foreach function returns void. Also fix
some constness.
* gst/gsttaglist.c:
* gst/gsttaglist.h (gst_tag_list_foreach): Operates on a const
GstTagList*. Fixes #143472.

View file

@ -777,7 +777,7 @@ gst_tag_list_remove_tag (GstTagList * list, const gchar * tag)
typedef struct
{
GstTagForeachFunc func;
GstTagList *tag_list;
const GstTagList *tag_list;
gpointer data;
}
TagForeachData;

View file

@ -64,13 +64,10 @@ typedef GstStructure GstTagList;
*
* A function that will be called in gst_tag_list_foreach(). The function may
* not modify the tag list.
*
* Returns: TRUE if the foreach operation should continue, FALSE if
* the foreach operation should stop with FALSE.
*/
typedef gboolean (*GstTagForeachFunc) (const GstTagList *list,
const gchar * tag,
gpointer user_data);
typedef void (*GstTagForeachFunc) (const GstTagList *list,
const gchar * tag,
gpointer user_data);
typedef void (* GstTagMergeFunc) (GValue *dest, const GValue *src);