a G_GNUC_CONST function is not allowed to change global memory, so it is not suited for _get_type() functions.

Original commit message from CVS:
a G_GNUC_CONST function is not allowed to change global
memory, so it is not suited for _get_type() functions.
Backport Makefile addition from HEAD.
This commit is contained in:
Wim Taymans 2005-03-21 12:55:45 +00:00
parent 81f1e2e671
commit dba80e1cf5
8 changed files with 20 additions and 6 deletions

View file

@ -1,3 +1,15 @@
2005-03-21 Wim Taymans <wim@fluendo.com>
* gst/gstcaps.h:
* gst/gstdata.h:
* gst/gstprobe.h:
* gst/gststructure.h:
* gst/gsttaginterface.h:
* gst/schedulers/Makefile.am:
a G_GNUC_CONST function is not allowed to change global
memory, so it is not suited for _get_type() functions.
Backport Makefile addition from HEAD.
2005-03-21 Wim Taymans <wim@fluendo.com> 2005-03-21 Wim Taymans <wim@fluendo.com>
* gst/Makefile.am: * gst/Makefile.am:

View file

@ -81,7 +81,7 @@ struct _GstStaticCaps {
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
}; };
GType gst_caps_get_type (void) G_GNUC_CONST; GType gst_caps_get_type (void);
GstCaps * gst_caps_new_empty (void); GstCaps * gst_caps_new_empty (void);
GstCaps * gst_caps_new_any (void); GstCaps * gst_caps_new_any (void);
GstCaps * gst_caps_new_simple (const char *media_type, GstCaps * gst_caps_new_simple (const char *media_type,

View file

@ -102,7 +102,7 @@ GstData* gst_data_ref_by_count (GstData* data, gint count);
void gst_data_unref (GstData* data); void gst_data_unref (GstData* data);
/* GType for GstData */ /* GType for GstData */
GType gst_data_get_type (void) G_GNUC_CONST; GType gst_data_get_type (void);
G_END_DECLS G_END_DECLS

View file

@ -34,7 +34,7 @@ G_BEGIN_DECLS
typedef struct _GstProbe GstProbe; typedef struct _GstProbe GstProbe;
GType gst_probe_get_type (void) G_GNUC_CONST; GType gst_probe_get_type (void);
/* the callback should return FALSE if the data should be discarded */ /* the callback should return FALSE if the data should be discarded */
typedef gboolean (*GstProbeCallback) (GstProbe *probe, typedef gboolean (*GstProbeCallback) (GstProbe *probe,

View file

@ -54,7 +54,7 @@ struct _GstStructure {
gpointer _gst_reserved[GST_PADDING]; gpointer _gst_reserved[GST_PADDING];
}; };
GType gst_structure_get_type (void) G_GNUC_CONST; GType gst_structure_get_type (void);
GstStructure * gst_structure_empty_new (const gchar * name); GstStructure * gst_structure_empty_new (const gchar * name);
GstStructure * gst_structure_id_empty_new (GQuark quark); GstStructure * gst_structure_id_empty_new (GQuark quark);

View file

@ -46,7 +46,7 @@ struct _GstTagSetterIFace
/* virtual table */ /* virtual table */
}; };
GType gst_tag_setter_get_type (void) G_GNUC_CONST; GType gst_tag_setter_get_type (void);
void gst_tag_setter_merge (GstTagSetter * setter, void gst_tag_setter_merge (GstTagSetter * setter,
const GstTagList * list, const GstTagList * list,

View file

@ -46,7 +46,7 @@ struct _GstTagSetterIFace
/* virtual table */ /* virtual table */
}; };
GType gst_tag_setter_get_type (void) G_GNUC_CONST; GType gst_tag_setter_get_type (void);
void gst_tag_setter_merge (GstTagSetter * setter, void gst_tag_setter_merge (GstTagSetter * setter,
const GstTagList * list, const GstTagList * list,

View file

@ -15,6 +15,8 @@ if AS_LIBTOOL_WIN32
as_libtool_noinst_DATA_files = $(AS_LIBTOOL_LIB).lib as_libtool_noinst_DATA_files = $(AS_LIBTOOL_LIB).lib
as_libtool_LDFLAGS = -no-undefined
# depend on this in install-data-local # depend on this in install-data-local
as-libtool-install-data-local: as-libtool-install-data-local:
for i in $(AS_LIBTOOL_LIBS); do \ for i in $(AS_LIBTOOL_LIBS); do \