gst/gstinfo.*: Make some internal API take const gchar * instead of just gchar * to avoid compiler warnings with g++-...

Original commit message from CVS:
* gst/gstinfo.c:
* gst/gstinfo.h:
Make some internal API take const gchar * instead of just
gchar * to avoid compiler warnings with g++-4.2.2 when
passing string constants (partially fixes #478092).
This commit is contained in:
Tim-Philipp Müller 2007-09-18 22:13:57 +00:00
parent d59d330076
commit 134da6c28e
3 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,11 @@
2007-09-18 Tim-Philipp Müller <tim at centricular dot net>
* gst/gstinfo.c:
* gst/gstinfo.h:
Make some internal API take const gchar * instead of just
gchar * to avoid compiler warnings with g++-4.2.2 when
passing string constants (partially fixes #478092).
2007-09-17 Wim Taymans <wim.taymans@gmail.com>
* gst/gstbin.c: (bin_query_latency_fold), (gst_bin_query):

View file

@ -1031,7 +1031,8 @@ gst_debug_unset_threshold_for_name (const gchar * name)
}
GstDebugCategory *
_gst_debug_category_new (gchar * name, guint color, gchar * description)
_gst_debug_category_new (const gchar * name, guint color,
const gchar * description)
{
GstDebugCategory *cat;

View file

@ -337,9 +337,9 @@ void gst_debug_unset_threshold_for_name (const gchar * name);
*/
#define GST_DEBUG_CATEGORY_STATIC(cat) static GstDebugCategory *cat = NULL
/* do not use this function, use the macros below */
GstDebugCategory *_gst_debug_category_new (gchar * name,
GstDebugCategory *_gst_debug_category_new (const gchar * name,
guint color,
gchar * description);
const gchar * description);
/**
* GST_DEBUG_CATEGORY_INIT:
* @cat: the category to initialize.