G_CONST_RETURN will be deprecated soon.
https://bugzilla.gnome.org/show_bug.cgi?id=652211
GstFormat format, GstSeekFlags flags,
GstSeekType cur_type, gint64 cur,
GstSeekType stop_type, gint64 stop);
-G_CONST_RETURN GstQueryType*
- gst_element_get_query_types (GstElement *element);
+const GstQueryType* gst_element_get_query_types (GstElement *element);
gboolean gst_element_query (GstElement *element, GstQuery *query);
/* messages */
*
* Returns: the longname
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_element_factory_get_longname (GstElementFactory * factory)
{
g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), NULL);
*
* Returns: the class
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_element_factory_get_klass (GstElementFactory * factory)
{
g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), NULL);
*
* Returns: the description
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_element_factory_get_description (GstElementFactory * factory)
{
g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), NULL);
*
* Returns: the author
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_element_factory_get_author (GstElementFactory * factory)
{
g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), NULL);
return factory->details.author;
}
-static G_CONST_RETURN gchar *
+static const gchar *
gst_element_factory_get_meta_data (GstElementFactory * factory,
const gchar * key)
{
*
* Returns: the documentation uri
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_element_factory_get_documentation_uri (GstElementFactory * factory)
{
g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), NULL);
*
* Returns: the icon name
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_element_factory_get_icon_name (GstElementFactory * factory)
{
g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), NULL);
* Returns: (transfer none) (element-type Gst.StaticPadTemplate): the
* static pad templates
*/
-G_CONST_RETURN GList *
+const GList *
gst_element_factory_get_static_pad_templates (GstElementFactory * factory)
{
g_return_val_if_fail (GST_IS_ELEMENT_FACTORY (factory), NULL);
GstElementFactory * gst_element_factory_find (const gchar *name);
GType gst_element_factory_get_element_type (GstElementFactory *factory);
-G_CONST_RETURN gchar * gst_element_factory_get_longname (GstElementFactory *factory);
-G_CONST_RETURN gchar * gst_element_factory_get_klass (GstElementFactory *factory);
-G_CONST_RETURN gchar * gst_element_factory_get_description (GstElementFactory *factory);
-G_CONST_RETURN gchar * gst_element_factory_get_author (GstElementFactory *factory);
-G_CONST_RETURN gchar * gst_element_factory_get_documentation_uri (GstElementFactory *factory);
-G_CONST_RETURN gchar * gst_element_factory_get_icon_name (GstElementFactory *factory);
+const gchar * gst_element_factory_get_longname (GstElementFactory *factory);
+const gchar * gst_element_factory_get_klass (GstElementFactory *factory);
+const gchar * gst_element_factory_get_description (GstElementFactory *factory);
+const gchar * gst_element_factory_get_author (GstElementFactory *factory);
+const gchar * gst_element_factory_get_documentation_uri (GstElementFactory *factory);
+const gchar * gst_element_factory_get_icon_name (GstElementFactory *factory);
guint gst_element_factory_get_num_pad_templates (GstElementFactory *factory);
-G_CONST_RETURN GList * gst_element_factory_get_static_pad_templates (GstElementFactory *factory);
+const GList * gst_element_factory_get_static_pad_templates (GstElementFactory *factory);
gint gst_element_factory_get_uri_type (GstElementFactory *factory);
gchar ** gst_element_factory_get_uri_protocols (GstElementFactory *factory);
gboolean gst_element_factory_has_interface (GstElementFactory *factory,
gboolean gst_formats_contains (const GstFormat *formats, GstFormat format);
/* query for format details */
-G_CONST_RETURN GstFormatDefinition*
+const GstFormatDefinition*
gst_format_get_details (GstFormat format);
GstIterator* gst_format_iterate_definitions (void);
{
}
-G_CONST_RETURN gchar *
+const gchar *
gst_debug_level_get_name (GstDebugLevel level)
{
return "NONE";
return GST_LEVEL_NONE;
}
-G_CONST_RETURN gchar *
+const gchar *
gst_debug_category_get_name (GstDebugCategory * category)
{
return "";
return 0;
}
-G_CONST_RETURN gchar *
+const gchar *
gst_debug_category_get_description (GstDebugCategory * category)
{
return "";
/* do no use these functions, use the GST_DEBUG*_FUNCPTR macros */
void _gst_debug_register_funcptr (GstDebugFuncPtr func,
const gchar * ptrname);
-G_CONST_RETURN gchar *
+const gchar *
_gst_debug_nameof_funcptr (GstDebugFuncPtr func) G_GNUC_NO_INSTRUMENT;
GstDebugMessage * message,
gpointer unused) G_GNUC_NO_INSTRUMENT;
-G_CONST_RETURN gchar *
- gst_debug_level_get_name (GstDebugLevel level);
+const gchar * gst_debug_level_get_name (GstDebugLevel level);
void gst_debug_add_log_function (GstLogFunction func,
gpointer data);
GstDebugLevel level);
void gst_debug_category_reset_threshold (GstDebugCategory * category);
GstDebugLevel gst_debug_category_get_threshold (GstDebugCategory * category);
-G_CONST_RETURN gchar *
- gst_debug_category_get_name (GstDebugCategory * category);
+const gchar * gst_debug_category_get_name (GstDebugCategory * category);
guint gst_debug_category_get_color (GstDebugCategory * category);
-G_CONST_RETURN gchar *
- gst_debug_category_get_description (GstDebugCategory * category);
+const gchar * gst_debug_category_get_description (GstDebugCategory * category);
GSList * gst_debug_get_all_categories (void);
*
* Returns: a static string with the name of the flow return.
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_flow_get_name (GstFlowReturn ret)
{
gint i;
#define GST_FLOW_IS_SUCCESS(ret) ((ret) >= GST_FLOW_OK)
#endif
-G_CONST_RETURN gchar* gst_flow_get_name (GstFlowReturn ret);
+const gchar* gst_flow_get_name (GstFlowReturn ret);
GQuark gst_flow_to_quark (GstFlowReturn ret);
/**
void gst_pad_set_fixatecaps_function (GstPad *pad, GstPadFixateCapsFunction fixatecaps);
void gst_pad_set_setcaps_function (GstPad *pad, GstPadSetCapsFunction setcaps);
-G_CONST_RETURN GstCaps* gst_pad_get_pad_template_caps (GstPad *pad);
+const GstCaps* gst_pad_get_pad_template_caps (GstPad *pad);
/* capsnego function for linked/unlinked pads */
GstCaps * gst_pad_get_caps_reffed (GstPad * pad);
/* generic query function */
void gst_pad_set_query_type_function (GstPad *pad, GstPadQueryTypeFunction type_func);
-G_CONST_RETURN GstQueryType*
- gst_pad_get_query_types (GstPad *pad);
-G_CONST_RETURN GstQueryType*
- gst_pad_get_query_types_default (GstPad *pad);
+const GstQueryType* gst_pad_get_query_types (GstPad *pad);
+const GstQueryType* gst_pad_get_query_types_default (GstPad *pad);
gboolean gst_pad_query (GstPad *pad, GstQuery *query);
gboolean gst_pad_peer_query (GstPad *pad, GstQuery *query);
*
* Returns: the long name of the plugin
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_plugin_get_description (GstPlugin * plugin)
{
g_return_val_if_fail (plugin != NULL, NULL);
*
* Returns: the filename of the plugin
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_plugin_get_filename (GstPlugin * plugin)
{
g_return_val_if_fail (plugin != NULL, NULL);
*
* Returns: the version of the plugin
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_plugin_get_version (GstPlugin * plugin)
{
g_return_val_if_fail (plugin != NULL, NULL);
*
* Returns: the license of the plugin
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_plugin_get_license (GstPlugin * plugin)
{
g_return_val_if_fail (plugin != NULL, NULL);
*
* Returns: the source of the plugin
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_plugin_get_source (GstPlugin * plugin)
{
g_return_val_if_fail (plugin != NULL, NULL);
*
* Returns: the package of the plugin
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_plugin_get_package (GstPlugin * plugin)
{
g_return_val_if_fail (plugin != NULL, NULL);
*
* Returns: the origin of the plugin
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_plugin_get_origin (GstPlugin * plugin)
{
g_return_val_if_fail (plugin != NULL, NULL);
*
* Since: 0.10.24
*/
-G_CONST_RETURN GstStructure *
+const GstStructure *
gst_plugin_get_cache_data (GstPlugin * plugin)
{
g_return_val_if_fail (GST_IS_PLUGIN (plugin), NULL);
const gchar *origin,
gpointer user_data);
-G_CONST_RETURN gchar* gst_plugin_get_name (GstPlugin *plugin);
-G_CONST_RETURN gchar* gst_plugin_get_description (GstPlugin *plugin);
-G_CONST_RETURN gchar* gst_plugin_get_filename (GstPlugin *plugin);
-G_CONST_RETURN gchar* gst_plugin_get_version (GstPlugin *plugin);
-G_CONST_RETURN gchar* gst_plugin_get_license (GstPlugin *plugin);
-G_CONST_RETURN gchar* gst_plugin_get_source (GstPlugin *plugin);
-G_CONST_RETURN gchar* gst_plugin_get_package (GstPlugin *plugin);
-G_CONST_RETURN gchar* gst_plugin_get_origin (GstPlugin *plugin);
-G_CONST_RETURN GstStructure* gst_plugin_get_cache_data (GstPlugin * plugin);
-void gst_plugin_set_cache_data (GstPlugin * plugin, GstStructure *cache_data);
+const gchar* gst_plugin_get_name (GstPlugin *plugin);
+const gchar* gst_plugin_get_description (GstPlugin *plugin);
+const gchar* gst_plugin_get_filename (GstPlugin *plugin);
+const gchar* gst_plugin_get_version (GstPlugin *plugin);
+const gchar* gst_plugin_get_license (GstPlugin *plugin);
+const gchar* gst_plugin_get_source (GstPlugin *plugin);
+const gchar* gst_plugin_get_package (GstPlugin *plugin);
+const gchar* gst_plugin_get_origin (GstPlugin *plugin);
+const GstStructure* gst_plugin_get_cache_data (GstPlugin * plugin);
+void gst_plugin_set_cache_data (GstPlugin * plugin, GstStructure *cache_data);
GModule * gst_plugin_get_module (GstPlugin *plugin);
gboolean gst_plugin_is_loaded (GstPlugin *plugin);
*
* Returns: the name
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_plugin_feature_get_name (GstPluginFeature * feature)
{
g_return_val_if_fail (GST_IS_PLUGIN_FEATURE (feature), NULL);
void gst_plugin_feature_set_rank (GstPluginFeature *feature, guint rank);
void gst_plugin_feature_set_name (GstPluginFeature *feature, const gchar *name);
guint gst_plugin_feature_get_rank (GstPluginFeature *feature);
-G_CONST_RETURN gchar *gst_plugin_feature_get_name (GstPluginFeature *feature);
+const gchar *gst_plugin_feature_get_name (GstPluginFeature *feature);
void gst_plugin_feature_list_free (GList *list);
GList *gst_plugin_feature_list_copy (GList *list);
/* query for query details */
-G_CONST_RETURN GstQueryTypeDefinition*
+const GstQueryTypeDefinition*
gst_query_type_get_details (GstQueryType type);
GstIterator* gst_query_type_iterate_definitions (void);
gint *refcount);
void gst_structure_free (GstStructure *structure);
-G_CONST_RETURN gchar * gst_structure_get_name (const GstStructure *structure);
+const gchar * gst_structure_get_name (const GstStructure *structure);
GQuark gst_structure_get_name_id (const GstStructure *structure);
gboolean gst_structure_has_name (const GstStructure *structure,
const gchar *name);
GQuark first_field_id,
...) G_GNUC_NULL_TERMINATED;
-G_CONST_RETURN GValue * gst_structure_id_get_value (const GstStructure *structure,
+const GValue * gst_structure_id_get_value (const GstStructure *structure,
GQuark field);
-G_CONST_RETURN GValue * gst_structure_get_value (const GstStructure *structure,
+const GValue * gst_structure_get_value (const GstStructure *structure,
const gchar *fieldname);
void gst_structure_remove_field (GstStructure *structure,
const gchar *fieldname);
gboolean gst_structure_get_clock_time (const GstStructure *structure,
const gchar *fieldname,
GstClockTime *value);
-G_CONST_RETURN gchar * gst_structure_get_string (const GstStructure *structure,
+const gchar * gst_structure_get_string (const GstStructure *structure,
const gchar *fieldname);
gboolean gst_structure_get_enum (const GstStructure *structure,
const gchar *fieldname,
* Returns: (transfer none): The GValue for the specified entry or NULL if the
* tag wasn't available or the tag doesn't have as many entries
*/
-G_CONST_RETURN GValue *
+const GValue *
gst_tag_list_get_value_index (const GstTagList * list, const gchar * tag,
guint index)
{
/* basic tag support */
gboolean gst_tag_exists (const gchar * tag);
GType gst_tag_get_type (const gchar * tag);
-G_CONST_RETURN gchar * gst_tag_get_nick (const gchar * tag);
-G_CONST_RETURN gchar * gst_tag_get_description (const gchar * tag);
+const gchar * gst_tag_get_nick (const gchar * tag);
+const gchar * gst_tag_get_description (const gchar * tag);
GstTagFlag gst_tag_get_flag (const gchar * tag);
gboolean gst_tag_is_fixed (const gchar * tag);
GstTagForeachFunc func,
gpointer user_data);
-G_CONST_RETURN GValue *
+const GValue *
gst_tag_list_get_value_index (const GstTagList * list,
const gchar * tag,
guint index);
* Returns: (transfer none): a current snapshot of the taglist used in the
* setter or NULL if none is used.
*/
-G_CONST_RETURN GstTagList *
+const GstTagList *
gst_tag_setter_get_tag_list (GstTagSetter * setter)
{
g_return_val_if_fail (GST_IS_TAG_SETTER (setter), NULL);
const gchar * tag,
const GValue * value);
-G_CONST_RETURN GstTagList *
+const GstTagList *
gst_tag_setter_get_tag_list (GstTagSetter * setter);
void gst_tag_setter_set_tag_merge_mode (GstTagSetter * setter,
extern GStaticMutex _gst_trace_mutex;
gboolean gst_alloc_trace_available (void);
-G_CONST_RETURN GList* gst_alloc_trace_list (void);
+const GList* gst_alloc_trace_list (void);
GstAllocTrace* _gst_alloc_trace_register (const gchar *name);
int gst_alloc_trace_live_all (void);
* Returns NULL if there are no URI currently handled. The
* returned string must not be modified or freed.
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_uri_handler_get_uri (GstURIHandler * handler)
{
GstURIHandlerInterface *iface;
gchar ** (* get_protocols) (void);
/* using the interface */
- G_CONST_RETURN gchar *(* get_uri) (GstURIHandler * handler);
+ const gchar * (* get_uri) (GstURIHandler * handler);
gboolean (* set_uri) (GstURIHandler * handler,
const gchar * uri);
guint gst_uri_handler_get_uri_type (GstURIHandler * handler);
gchar ** gst_uri_handler_get_protocols (GstURIHandler * handler);
-G_CONST_RETURN
-gchar * gst_uri_handler_get_uri (GstURIHandler * handler);
+const gchar * gst_uri_handler_get_uri (GstURIHandler * handler);
gboolean gst_uri_handler_set_uri (GstURIHandler * handler,
const gchar * uri);
void gst_uri_handler_new_uri (GstURIHandler * handler,
*
* Returns: (transfer none): a string with the name of the state.
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_element_state_get_name (GstState state)
{
switch (state) {
*
* Since: 0.10.11
*/
-G_CONST_RETURN gchar *
+const gchar *
gst_element_state_change_return_get_name (GstStateChangeReturn state_ret)
{
switch (state_ret) {
GstPadTemplate* gst_element_get_compatible_pad_template (GstElement *element, GstPadTemplate *compattempl);
-G_CONST_RETURN gchar* gst_element_state_get_name (GstState state);
-G_CONST_RETURN gchar * gst_element_state_change_return_get_name (GstStateChangeReturn state_ret);
+const gchar* gst_element_state_get_name (GstState state);
+const gchar * gst_element_state_change_return_get_name (GstStateChangeReturn state_ret);
gboolean gst_element_link (GstElement *src, GstElement *dest);
gboolean gst_element_link_many (GstElement *element_1,
const GValue *value1,
const GValue *value2);
guint gst_value_list_get_size (const GValue *value);
-G_CONST_RETURN GValue *
- gst_value_list_get_value (const GValue *value,
+const GValue * gst_value_list_get_value (const GValue *value,
guint index);
/* array */
void gst_value_array_prepend_value (GValue *value,
const GValue *prepend_value);
guint gst_value_array_get_size (const GValue *value);
-G_CONST_RETURN GValue *
- gst_value_array_get_value (const GValue *value,
+const GValue * gst_value_array_get_value (const GValue *value,
guint index);
/* fourcc */
gdouble gst_value_get_double_range_max (const GValue *value);
/* caps */
-G_CONST_RETURN GstCaps *
- gst_value_get_caps (const GValue *value);
+const GstCaps * gst_value_get_caps (const GValue *value);
void gst_value_set_caps (GValue *value,
const GstCaps *caps);
/* structure */
-G_CONST_RETURN GstStructure *
+const GstStructure *
gst_value_get_structure (const GValue *value);
void gst_value_set_structure (GValue *value,
const GstStructure *structure);
const GValue *gst_value_get_fraction_range_max (const GValue *value);
/* date */
-G_CONST_RETURN GDate *
- gst_value_get_date (const GValue *value);
+const GDate * gst_value_get_date (const GValue *value);
void gst_value_set_date (GValue *value,
const GDate *date);