Add consts to appropriate parameters in debug and info handlers.

Original commit message from CVS:
Add consts to appropriate parameters in debug and info handlers.
Add appropriate types for some of the memebers of the GTypeInfo struct.
This commit is contained in:
Richard Boulton 2001-06-25 20:09:10 +00:00
parent 75d3b2f90b
commit 71beaf9179
3 changed files with 23 additions and 17 deletions

View file

@ -100,18 +100,18 @@ struct _GTypeInfo
/* interface types, classed types, instantiated types */
guint16 class_size;
gpointer base_init;
GBaseInitFunc base_init;
gpointer base_finalize;
/* classed types, instantiated types */
gpointer class_init;
GClassInitFunc class_init;
gpointer class_finalize;
gconstpointer class_data;
/* instantiated types */
guint16 instance_size;
guint16 n_preallocs;
gpointer instance_init;
GInstanceInitFunc instance_init;
/* value handling */
const gpointer value_table;

View file

@ -142,9 +142,10 @@ guint32 _gst_debug_categories = 0x00000000;
* DEBUG(pid:cid):gst_function:542(args): [elementname] something neat happened
*/
void
gst_default_debug_handler (gint category, gboolean incore, gchar *file, gchar *function,
gint line, gchar *debug_string,
void *element, gchar *string)
gst_default_debug_handler (gint category, gboolean incore,
const gchar *file, const gchar *function,
gint line, const gchar *debug_string,
void *element, gchar *string)
{
gchar *empty = "";
gchar *elementname = empty,*location = empty;
@ -257,9 +258,10 @@ guint32 _gst_info_categories = 0x00000001;
* INFO:gst_function:542(args): [elementname] something neat happened
*/
void
gst_default_info_handler (gint category, gboolean incore,gchar *file, gchar *function,
gint line, gchar *debug_string,
void *element, gchar *string)
gst_default_info_handler (gint category, gboolean incore,
const gchar *file, const gchar *function,
gint line, const gchar *debug_string,
void *element, gchar *string)
{
gchar *empty = "";
gchar *elementname = empty,*location = empty;

View file

@ -116,12 +116,14 @@ extern const gchar *_gst_category_colors[32];
//#endif
typedef void (*GstDebugHandler) (gint category,gboolean core,gchar *file,gchar *function,
gint line,gchar *debug_string,
typedef void (*GstDebugHandler) (gint category,gboolean core,
const gchar *file,const gchar *function,
gint line,const gchar *debug_string,
void *element,gchar *string);
void gst_default_debug_handler (gint category,gboolean incore,gchar *file,gchar *function,
gint line,gchar *debug_string,
void gst_default_debug_handler (gint category,gboolean incore,
const gchar *file, const gchar *function,
gint line,const gchar *debug_string,
void *element,gchar *string);
extern guint32 _gst_debug_categories;
@ -233,12 +235,14 @@ G_GNUC_UNUSED static GModule *_debug_self_module = NULL;
* INFO system
**********************************************************************/
typedef void (*GstInfoHandler) (gint category,gboolean incore,gchar *file,gchar *function,
gint line,gchar *debug_string,
typedef void (*GstInfoHandler) (gint category,gboolean incore,
const gchar *file,const gchar *function,
gint line,const gchar *debug_string,
void *element,gchar *string);
void gst_default_info_handler (gint category,gboolean incore,gchar *file,gchar *function,
gint line,gchar *debug_string,
void gst_default_info_handler (gint category,gboolean incore,
const gchar *file,const gchar *function,
gint line,const gchar *debug_string,
void *element,gchar *string);
extern GstInfoHandler _gst_info_handler;