Commit 8983cce9 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠

gst: GST_EXPORT -> GST_API

We need different export decorators for the different libs.
For now no actual change though, just rename before the release,
and add prelude headers to define the new decorator to GST_EXPORT.
parent 7a008ea4
......@@ -25,7 +25,7 @@ DOC_SOURCE_DIR = $(top_srcdir)/gst
# Extra options to supply to gtkdoc-scan.
SCAN_OPTIONS=--deprecated-guards="GST_DISABLE_DEPRECATED" \
--ignore-decorators='GST_EXPORT'
--ignore-decorators='GST_API'
# Extra options to supply to gtkdoc-mkdb.
MKDB_OPTIONS=--sgml-mode --output-format=xml --ignore-files=parse
......
......@@ -256,7 +256,7 @@ gstenumtypes.h: $(gst_headers)
$(AM_V_GEN)$(GLIB_MKENUMS) \
--fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n#include <gst/gstconfig.h>\n\nG_BEGIN_DECLS\n" \
--fprod "\n/* enumerations from \"@filename@\" */\n" \
--vhead "GST_EXPORT GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--vhead "GST_API GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \
--ftail "G_END_DECLS\n\n#endif /* __GST_ENUM_TYPES_H__ */" \
$^ > gstenumtypes.h
......
......@@ -97,43 +97,43 @@
G_BEGIN_DECLS
GST_EXPORT
GST_API
void gst_init (int *argc, char **argv[]);
GST_EXPORT
GST_API
gboolean gst_init_check (int *argc, char **argv[],
GError ** err);
GST_EXPORT
GST_API
gboolean gst_is_initialized (void);
GST_EXPORT
GST_API
GOptionGroup * gst_init_get_option_group (void);
GST_EXPORT
GST_API
void gst_deinit (void);
GST_EXPORT
GST_API
void gst_version (guint *major, guint *minor,
guint *micro, guint *nano);
GST_EXPORT
GST_API
gchar * gst_version_string (void);
GST_EXPORT
GST_API
gboolean gst_segtrap_is_enabled (void);
GST_EXPORT
GST_API
void gst_segtrap_set_enabled (gboolean enabled);
GST_EXPORT
GST_API
gboolean gst_registry_fork_is_enabled (void);
GST_EXPORT
GST_API
void gst_registry_fork_set_enabled (gboolean enabled);
GST_EXPORT
GST_API
gboolean gst_update_registry (void);
GST_EXPORT
GST_API
const gchar * gst_get_main_executable_path (void);
G_END_DECLS
......
......@@ -38,7 +38,7 @@ extern const char g_log_domain_gstreamer[];
#include <stdlib.h>
#include <string.h>
/* Needed for GST_EXPORT */
/* Needed for GST_API */
#include "gst/gstconfig.h"
/* Needed for GstRegistry * */
......@@ -144,7 +144,7 @@ gboolean _priv_gst_registry_remove_cache_plugins (GstRegistry *registry);
G_GNUC_INTERNAL void _priv_gst_registry_cleanup (void);
GST_EXPORT
GST_API
gboolean _gst_plugin_loader_client_run (void);
G_GNUC_INTERNAL GstPlugin * _priv_gst_plugin_load_file_for_registry (const gchar *filename,
......@@ -226,12 +226,12 @@ GstCapsFeatures * __gst_caps_get_features_unchecked (const GstCaps * caps, guint
#ifndef GST_DISABLE_REGISTRY
/* Secret variable to initialise gst without registry cache */
GST_EXPORT gboolean _gst_disable_registry_cache;
GST_API gboolean _gst_disable_registry_cache;
#endif
/* Secret variable to let the plugin scanner use the same base path
* as the main application in order to determine dependencies */
GST_EXPORT gchar *_gst_executable_path;
GST_API gchar *_gst_executable_path;
/* provide inline gst_g_value_get_foo_unchecked(), used in gststructure.c */
#define DEFINE_INLINE_G_VALUE_GET_UNCHECKED(ret_type,name_type,v_field) \
......@@ -255,37 +255,37 @@ DEFINE_INLINE_G_VALUE_GET_UNCHECKED(const gchar *,string,v_pointer)
#ifndef GST_REMOVE_GST_DEBUG
GST_EXPORT GstDebugCategory *GST_CAT_GST_INIT;
GST_EXPORT GstDebugCategory *GST_CAT_MEMORY;
GST_EXPORT GstDebugCategory *GST_CAT_PARENTAGE;
GST_EXPORT GstDebugCategory *GST_CAT_STATES;
GST_EXPORT GstDebugCategory *GST_CAT_SCHEDULING;
GST_EXPORT GstDebugCategory *GST_CAT_BUFFER;
GST_EXPORT GstDebugCategory *GST_CAT_BUFFER_LIST;
GST_EXPORT GstDebugCategory *GST_CAT_BUS;
GST_EXPORT GstDebugCategory *GST_CAT_CAPS;
GST_EXPORT GstDebugCategory *GST_CAT_CLOCK;
GST_EXPORT GstDebugCategory *GST_CAT_ELEMENT_PADS;
GST_EXPORT GstDebugCategory *GST_CAT_PADS;
GST_EXPORT GstDebugCategory *GST_CAT_PERFORMANCE;
GST_EXPORT GstDebugCategory *GST_CAT_PIPELINE;
GST_EXPORT GstDebugCategory *GST_CAT_PLUGIN_LOADING;
GST_EXPORT GstDebugCategory *GST_CAT_PLUGIN_INFO;
GST_EXPORT GstDebugCategory *GST_CAT_PROPERTIES;
GST_EXPORT GstDebugCategory *GST_CAT_NEGOTIATION;
GST_EXPORT GstDebugCategory *GST_CAT_REFCOUNTING;
GST_EXPORT GstDebugCategory *GST_CAT_ERROR_SYSTEM;
GST_EXPORT GstDebugCategory *GST_CAT_EVENT;
GST_EXPORT GstDebugCategory *GST_CAT_MESSAGE;
GST_EXPORT GstDebugCategory *GST_CAT_PARAMS;
GST_EXPORT GstDebugCategory *GST_CAT_CALL_TRACE;
GST_EXPORT GstDebugCategory *GST_CAT_SIGNAL;
GST_EXPORT GstDebugCategory *GST_CAT_PROBE;
GST_EXPORT GstDebugCategory *GST_CAT_REGISTRY;
GST_EXPORT GstDebugCategory *GST_CAT_QOS;
GST_EXPORT GstDebugCategory *GST_CAT_META;
GST_EXPORT GstDebugCategory *GST_CAT_LOCKING;
GST_EXPORT GstDebugCategory *GST_CAT_CONTEXT;
GST_API GstDebugCategory *GST_CAT_GST_INIT;
GST_API GstDebugCategory *GST_CAT_MEMORY;
GST_API GstDebugCategory *GST_CAT_PARENTAGE;
GST_API GstDebugCategory *GST_CAT_STATES;
GST_API GstDebugCategory *GST_CAT_SCHEDULING;
GST_API GstDebugCategory *GST_CAT_BUFFER;
GST_API GstDebugCategory *GST_CAT_BUFFER_LIST;
GST_API GstDebugCategory *GST_CAT_BUS;
GST_API GstDebugCategory *GST_CAT_CAPS;
GST_API GstDebugCategory *GST_CAT_CLOCK;
GST_API GstDebugCategory *GST_CAT_ELEMENT_PADS;
GST_API GstDebugCategory *GST_CAT_PADS;
GST_API GstDebugCategory *GST_CAT_PERFORMANCE;
GST_API GstDebugCategory *GST_CAT_PIPELINE;
GST_API GstDebugCategory *GST_CAT_PLUGIN_LOADING;
GST_API GstDebugCategory *GST_CAT_PLUGIN_INFO;
GST_API GstDebugCategory *GST_CAT_PROPERTIES;
GST_API GstDebugCategory *GST_CAT_NEGOTIATION;
GST_API GstDebugCategory *GST_CAT_REFCOUNTING;
GST_API GstDebugCategory *GST_CAT_ERROR_SYSTEM;
GST_API GstDebugCategory *GST_CAT_EVENT;
GST_API GstDebugCategory *GST_CAT_MESSAGE;
GST_API GstDebugCategory *GST_CAT_PARAMS;
GST_API GstDebugCategory *GST_CAT_CALL_TRACE;
GST_API GstDebugCategory *GST_CAT_SIGNAL;
GST_API GstDebugCategory *GST_CAT_PROBE;
GST_API GstDebugCategory *GST_CAT_REGISTRY;
GST_API GstDebugCategory *GST_CAT_QOS;
GST_API GstDebugCategory *GST_CAT_META;
GST_API GstDebugCategory *GST_CAT_LOCKING;
GST_API GstDebugCategory *GST_CAT_CONTEXT;
/* Categories that should be completely private to
* libgstreamer should be done like this: */
......
......@@ -41,7 +41,7 @@ typedef struct _GstAllocatorClass GstAllocatorClass;
#define GST_TYPE_ALLOCATION_PARAMS (gst_allocation_params_get_type())
GST_EXPORT
GST_API
GType gst_allocation_params_get_type(void);
typedef struct _GstAllocationParams GstAllocationParams;
......@@ -53,7 +53,7 @@ typedef struct _GstAllocationParams GstAllocationParams;
* an alignment of 7 would be the same as what malloc() guarantees.
*/
GST_EXPORT gsize gst_memory_alignment;
GST_API gsize gst_memory_alignment;
/**
* GST_ALLOCATOR_SYSMEM:
......@@ -151,42 +151,42 @@ struct _GstAllocatorClass {
gpointer _gst_reserved[GST_PADDING];
};
GST_EXPORT
GST_API
GType gst_allocator_get_type (void);
/* allocators */
GST_EXPORT
GST_API
void gst_allocator_register (const gchar *name, GstAllocator *allocator);
GST_EXPORT
GST_API
GstAllocator * gst_allocator_find (const gchar *name);
GST_EXPORT
GST_API
void gst_allocator_set_default (GstAllocator * allocator);
/* allocation parameters */
GST_EXPORT
GST_API
void gst_allocation_params_init (GstAllocationParams *params);
GST_EXPORT
GST_API
GstAllocationParams *
gst_allocation_params_copy (const GstAllocationParams *params) G_GNUC_MALLOC;
GST_EXPORT
GST_API
void gst_allocation_params_free (GstAllocationParams *params);
/* allocating memory blocks */
GST_EXPORT
GST_API
GstMemory * gst_allocator_alloc (GstAllocator * allocator, gsize size,
GstAllocationParams *params);
GST_EXPORT
GST_API
void gst_allocator_free (GstAllocator * allocator, GstMemory *memory);
GST_EXPORT
GST_API
GstMemory * gst_memory_new_wrapped (GstMemoryFlags flags, gpointer data, gsize maxsize,
gsize offset, gsize size, gpointer user_data,
GDestroyNotify notify);
......
......@@ -41,28 +41,28 @@ G_BEGIN_DECLS
typedef struct _GstAtomicQueue GstAtomicQueue;
GST_EXPORT
GST_API
GType gst_atomic_queue_get_type (void);
GST_EXPORT
GST_API
GstAtomicQueue * gst_atomic_queue_new (guint initial_size) G_GNUC_MALLOC;
GST_EXPORT
GST_API
void gst_atomic_queue_ref (GstAtomicQueue * queue);
GST_EXPORT
GST_API
void gst_atomic_queue_unref (GstAtomicQueue * queue);
GST_EXPORT
GST_API
void gst_atomic_queue_push (GstAtomicQueue* queue, gpointer data);
GST_EXPORT
GST_API
gpointer gst_atomic_queue_pop (GstAtomicQueue* queue);
GST_EXPORT
GST_API
gpointer gst_atomic_queue_peek (GstAtomicQueue* queue);
GST_EXPORT
GST_API
guint gst_atomic_queue_length (GstAtomicQueue * queue);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
......
......@@ -192,62 +192,62 @@ struct _GstBinClass {
gpointer _gst_reserved[GST_PADDING-2];
};
GST_EXPORT
GST_API
GType gst_bin_get_type (void);
GST_EXPORT
GST_API
GstElement* gst_bin_new (const gchar *name);
/* add and remove elements from the bin */
GST_EXPORT
GST_API
gboolean gst_bin_add (GstBin *bin, GstElement *element);
GST_EXPORT
GST_API
gboolean gst_bin_remove (GstBin *bin, GstElement *element);
/* retrieve a single child */
GST_EXPORT
GST_API
GstElement* gst_bin_get_by_name (GstBin *bin, const gchar *name);
GST_EXPORT
GST_API
GstElement* gst_bin_get_by_name_recurse_up (GstBin *bin, const gchar *name);
GST_EXPORT
GST_API
GstElement* gst_bin_get_by_interface (GstBin *bin, GType iface);
/* retrieve multiple children */
GST_EXPORT
GST_API
GstIterator* gst_bin_iterate_elements (GstBin *bin);
GST_EXPORT
GST_API
GstIterator* gst_bin_iterate_sorted (GstBin *bin);
GST_EXPORT
GST_API
GstIterator* gst_bin_iterate_recurse (GstBin *bin);
GST_EXPORT
GST_API
GstIterator* gst_bin_iterate_sinks (GstBin *bin);
GST_EXPORT
GST_API
GstIterator* gst_bin_iterate_sources (GstBin *bin);
GST_EXPORT
GST_API
GstIterator* gst_bin_iterate_all_by_interface (GstBin *bin, GType iface);
/* latency */
GST_EXPORT
GST_API
gboolean gst_bin_recalculate_latency (GstBin * bin);
/* set and get suppressed flags */
GST_EXPORT
GST_API
void gst_bin_set_suppressed_flags (GstBin * bin, GstElementFlags flags);
GST_EXPORT
GST_API
GstElementFlags gst_bin_get_suppressed_flags (GstBin * bin);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
......
......@@ -31,7 +31,7 @@
G_BEGIN_DECLS
GST_EXPORT GType _gst_buffer_type;
GST_API GType _gst_buffer_type;
typedef struct _GstBuffer GstBuffer;
typedef struct _GstBufferPool GstBufferPool;
......@@ -277,133 +277,133 @@ struct _GstBuffer {
guint64 offset_end;
};
GST_EXPORT
GST_API
GType gst_buffer_get_type (void);
GST_EXPORT
GST_API
guint gst_buffer_get_max_memory (void);
/* allocation */
GST_EXPORT
GST_API
GstBuffer * gst_buffer_new (void);
GST_EXPORT
GST_API
GstBuffer * gst_buffer_new_allocate (GstAllocator * allocator, gsize size,
GstAllocationParams * params);
GST_EXPORT
GST_API
GstBuffer * gst_buffer_new_wrapped_full (GstMemoryFlags flags, gpointer data, gsize maxsize,
gsize offset, gsize size, gpointer user_data,
GDestroyNotify notify);
GST_EXPORT
GST_API
GstBuffer * gst_buffer_new_wrapped (gpointer data, gsize size);
/* memory blocks */
GST_EXPORT
GST_API
guint gst_buffer_n_memory (GstBuffer *buffer);
GST_EXPORT
GST_API
void gst_buffer_insert_memory (GstBuffer *buffer, gint idx, GstMemory *mem);
GST_EXPORT
GST_API
void gst_buffer_replace_memory_range (GstBuffer *buffer, guint idx, gint length, GstMemory *mem);
GST_EXPORT
GST_API
GstMemory * gst_buffer_peek_memory (GstBuffer *buffer, guint idx);
GST_EXPORT
GST_API
GstMemory * gst_buffer_get_memory_range (GstBuffer *buffer, guint idx, gint length);
GST_EXPORT
GST_API
void gst_buffer_remove_memory_range (GstBuffer *buffer, guint idx, gint length);
GST_EXPORT
GST_API
void gst_buffer_prepend_memory (GstBuffer *buffer, GstMemory *mem);
GST_EXPORT
GST_API
void gst_buffer_append_memory (GstBuffer *buffer, GstMemory *mem);
GST_EXPORT
GST_API
void gst_buffer_replace_memory (GstBuffer *buffer, guint idx, GstMemory *mem);
GST_EXPORT
GST_API
void gst_buffer_replace_all_memory (GstBuffer *buffer, GstMemory *mem);
GST_EXPORT
GST_API
GstMemory * gst_buffer_get_memory (GstBuffer *buffer, guint idx);
GST_EXPORT
GST_API
GstMemory * gst_buffer_get_all_memory (GstBuffer *buffer);
GST_EXPORT
GST_API
void gst_buffer_remove_memory (GstBuffer *buffer, guint idx);
GST_EXPORT
GST_API
void gst_buffer_remove_all_memory (GstBuffer *buffer);
GST_EXPORT
GST_API
gboolean gst_buffer_find_memory (GstBuffer *buffer, gsize offset, gsize size,
guint *idx, guint *length, gsize *skip);
GST_EXPORT
GST_API
gboolean gst_buffer_is_memory_range_writable (GstBuffer *buffer, guint idx, gint length);
GST_EXPORT
GST_API
gboolean gst_buffer_is_all_memory_writable (GstBuffer *buffer);
GST_EXPORT
GST_API
gsize gst_buffer_fill (GstBuffer *buffer, gsize offset,
gconstpointer src, gsize size);
GST_EXPORT
GST_API
gsize gst_buffer_extract (GstBuffer *buffer, gsize offset,
gpointer dest, gsize size);
GST_EXPORT
GST_API
gint gst_buffer_memcmp (GstBuffer *buffer, gsize offset,
gconstpointer mem, gsize size);
GST_EXPORT
GST_API
gsize gst_buffer_memset (GstBuffer *buffer, gsize offset,
guint8 val, gsize size);
GST_EXPORT
GST_API
gsize gst_buffer_get_sizes_range (GstBuffer *buffer, guint idx, gint length,
gsize *offset, gsize *maxsize);
GST_EXPORT
GST_API
gboolean gst_buffer_resize_range (GstBuffer *buffer, guint idx, gint length,
gssize offset, gssize size);
GST_EXPORT
GST_API
gsize gst_buffer_get_sizes (GstBuffer *buffer, gsize *offset, gsize *maxsize);
GST_EXPORT
GST_API
gsize gst_buffer_get_size (GstBuffer *buffer);
GST_EXPORT
GST_API
void gst_buffer_resize (GstBuffer *buffer, gssize offset, gssize size);
GST_EXPORT
GST_API
void gst_buffer_set_size (GstBuffer *buffer, gssize size);
GST_EXPORT
GST_API
gboolean gst_buffer_map_range (GstBuffer *buffer, guint idx, gint length,
GstMapInfo *info, GstMapFlags flags);
GST_EXPORT
GST_API
gboolean gst_buffer_map (GstBuffer *buffer, GstMapInfo *info, GstMapFlags flags);
GST_EXPORT
GST_API
void gst_buffer_unmap (GstBuffer *buffer, GstMapInfo *info);
GST_EXPORT
GST_API
void gst_buffer_extract_dup (GstBuffer *buffer, gsize offset,
gsize size, gpointer *dest,
gsize *dest_size);
GST_EXPORT
GST_API
GstBufferFlags gst_buffer_get_flags (GstBuffer * buffer);
GST_EXPORT
GST_API
gboolean gst_buffer_has_flags (GstBuffer * buffer, GstBufferFlags flags);
GST_EXPORT
GST_API
gboolean gst_buffer_set_flags (GstBuffer * buffer, GstBufferFlags flags);
GST_EXPORT
GST_API
gboolean gst_buffer_unset_flags (GstBuffer * buffer, GstBufferFlags flags);
......@@ -461,7 +461,7 @@ gst_buffer_copy (const GstBuffer * buf)
return GST_BUFFER (gst_mini_object_copy (GST_MINI_OBJECT_CONST_CAST (buf)));
}
GST_EXPORT
GST_API
GstBuffer * gst_buffer_copy_deep (const GstBuffer * buf);
/**
......@@ -513,7 +513,7 @@ typedef enum {
/* copies memory or metadata into newly allocated buffer */
GST_EXPORT
GST_API
gboolean gst_buffer_copy_into (GstBuffer *dest, GstBuffer *src,
GstBufferCopyFlags flags,
gsize offset, gsize size);
......@@ -579,16 +579,16 @@ gst_buffer_replace (GstBuffer **obuf, GstBuffer *nbuf)
/* creating a region */
GST_EXPORT
GST_API
GstBuffer* gst_buffer_copy_region (GstBuffer *parent, GstBufferCopyFlags flags,
gsize offset, gsize size);
/* append two buffers */
GST_EXPORT
GST_API
GstBuffer* gst_buffer_append_region (GstBuffer *buf1, GstBuffer *buf2,
gssize offset, gssize size);
GST_EXPORT
GST_API
GstBuffer* gst_buffer_append (GstBuffer *buf1, GstBuffer *buf2);
/* metadata */
......@@ -615,26 +615,26 @@ GstBuffer* gst_buffer_append (GstBuffer *buf1, GstBuffer *buf
typedef gboolean (*GstBufferForeachMetaFunc) (GstBuffer *buffer, GstMeta **meta,
gpointer user_data);
GST_EXPORT
GST_API
GstMeta * gst_buffer_get_meta (GstBuffer *buffer, GType api);
GST_EXPORT
GST_API
guint gst_buffer_get_n_meta (GstBuffer *buffer, GType api_type);
GST_EXPORT
GST_API
GstMeta * gst_buffer_add_meta (GstBuffer *buffer, const GstMetaInfo *info,
gpointer params);
GST_EXPORT
GST_API
gboolean gst_buffer_remove_meta (GstBuffer *buffer, GstMeta *meta);
GST_EXPORT
GST_API
GstMeta * gst_buffer_iterate_meta (GstBuffer *buffer, gpointer *state);
GST_EXPORT
GST_API
GstMeta * gst_buffer_iterate_meta_filtered (GstBuffer * buffer,
gpointer * state,
GType meta_api_type);
GST_EXPORT
GST_API
gboolean gst_buffer_foreach_meta (GstBuffer *buffer,
GstBufferForeachMetaFunc func,
gpointer user_data);
......@@ -693,7 +693,7 @@ struct _GstParentBufferMeta
GstBuffer *buffer;
};
GST_EXPORT
GST_API
GType gst_parent_buffer_meta_api_get_type (void);
#ifndef GST_DISABLE_DEPRECATED
#define GST_TYPE_PARENT_BUFFER_META_API_TYPE GST_PARENT_BUFFER_META_API_TYPE
......@@ -710,13 +710,13 @@ GType gst_parent_buffer_meta_api_get_type (void);
#define gst_buffer_get_parent_buffer_meta(b) \
((GstParentBufferMeta*)gst_buffer_get_meta((b),GST_PARENT_BUFFER_META_API_TYPE))
GST_EXPORT
GST_API
const GstMetaInfo *gst_parent_buffer_meta_get_info (void);
#define GST_PARENT_BUFFER_META_INFO (gst_parent_buffer_meta_get_info())
/* implementation */
GST_EXPORT
GST_API
GstParentBufferMeta *gst_buffer_add_parent_buffer_meta (GstBuffer *buffer,
GstBuffer *ref);
......@@ -751,23 +751,23 @@ struct _GstReferenceTimestampMeta
GstClockTime timestamp, duration;
};
GST_EXPORT
GST_API
GType gst_reference_timestamp_meta_api_get_type (void);
#define GST_REFERENCE_TIMESTAMP_META_API_TYPE (gst_reference_timestamp_meta_api_get_type())
GST_EXPORT
GST_API
const GstMetaInfo *gst_reference_timestamp_meta_get_info (void);
#define GST_REFERENCE_TIMESTAMP_META_INFO (gst_reference_timestamp_meta_get_info())
/* implementation */
GST_EXPORT
GST_API
GstReferenceTimestampMeta * gst_buffer_add_reference_timestamp_meta (GstBuffer * buffer,
GstCaps * reference,
GstClockTime timestamp,
GstClockTime duration);
GST_EXPORT
GST_API
GstReferenceTimestampMeta * gst_buffer_get_reference_timestamp_meta (GstBuffer * buffer,
GstCaps * reference);
......
......@@ -27,7 +27,7 @@
G_BEGIN_DECLS
GST_EXPORT GType _gst_buffer_list_type;
GST_API GType _gst_buffer_list_type;
#define GST_TYPE_BUFFER_LIST (_gst_buffer_list_type)
#define GST_IS_BUFFER_LIST(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_BUFFER_LIST))
......@@ -131,40 +131,40 @@ gst_buffer_list_copy (const GstBufferList * list)
*/
#define gst_buffer_list_make_writable(list) GST_BUFFER_LIST_CAST (gst_mini_object_make_writable (GST_MINI_OBJECT_CAST (list)))
GST_EXPORT
GST_API
GType gst_buffer_list_get_type (void);
/* allocation */
GST_EXPORT
GST_API
GstBufferList * gst_buffer_list_new (void) G_GNUC_MALLOC;
GST_EXPORT
GST_API
GstBufferList * gst_buffer_list_new_sized (guint size) G_GNUC_MALLOC;
GST_EXPORT
GST_API
guint gst_buffer_list_length (GstBufferList *list);
GST_EXPORT
GST_API
GstBuffer * gst_buffer_list_get (GstBufferList *list, guint idx);
GST_EXPORT
GST_API
GstBuffer * gst_buffer_list_get_writable (GstBufferList *list, guint idx);
GST_EXPORT
GST_API
void gst_buffer_list_insert (GstBufferList *list, gint idx, GstBuffer *buffer);
GST_EXPORT
GST_API
void gst_buffer_list_remove (GstBufferList *list, guint idx, guint length);
GST_EXPORT
GST_API
gboolean gst_buffer_list_foreach (GstBufferList *list,
GstBufferListFunc func,
gpointer user_data);
GST_EXPORT
GST_API
GstBufferList * gst_buffer_list_copy_deep (const GstBufferList * list);
GST_EXPORT
GST_API
gsize gst_buffer_list_calculate_size