mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-15 10:45:20 +00:00
Add padding to structures and objects
Original commit message from CVS: Add padding to structures and objects
This commit is contained in:
parent
f20644277f
commit
85a63494bf
26 changed files with 106 additions and 19 deletions
|
@ -54,6 +54,8 @@ typedef enum {
|
||||||
|
|
||||||
struct _GstAutoplug {
|
struct _GstAutoplug {
|
||||||
GstObject object;
|
GstObject object;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstAutoplugClass {
|
struct _GstAutoplugClass {
|
||||||
|
@ -65,6 +67,8 @@ struct _GstAutoplugClass {
|
||||||
/* perform the autoplugging */
|
/* perform the autoplugging */
|
||||||
GstElement* (*autoplug_to_caps) (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, va_list args);
|
GstElement* (*autoplug_to_caps) (GstAutoplug *autoplug, GstCaps *srccaps, GstCaps *sinkcaps, va_list args);
|
||||||
GstElement* (*autoplug_to_renderers) (GstAutoplug *autoplug, GstCaps *srccaps, GstElement *target, va_list args);
|
GstElement* (*autoplug_to_renderers) (GstAutoplug *autoplug, GstCaps *srccaps, GstElement *target, va_list args);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ struct _GstBin {
|
||||||
gpointer pre_iterate_data;
|
gpointer pre_iterate_data;
|
||||||
gpointer post_iterate_data;
|
gpointer post_iterate_data;
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstBinClass {
|
struct _GstBinClass {
|
||||||
|
@ -101,7 +101,7 @@ struct _GstBinClass {
|
||||||
void (*element_added) (GstBin *bin, GstElement *child);
|
void (*element_added) (GstBin *bin, GstElement *child);
|
||||||
void (*element_removed) (GstBin *bin, GstElement *child);
|
void (*element_removed) (GstBin *bin, GstElement *child);
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_bin_get_type (void);
|
GType gst_bin_get_type (void);
|
||||||
|
|
|
@ -108,6 +108,8 @@ struct _GstBuffer {
|
||||||
GstBufferPool *pool;
|
GstBufferPool *pool;
|
||||||
/* pointer to pool private data of parent buffer in case of a subbuffer */
|
/* pointer to pool private data of parent buffer in case of a subbuffer */
|
||||||
gpointer pool_private;
|
gpointer pool_private;
|
||||||
|
|
||||||
|
GST_STRUCT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
/* bufferpools */
|
/* bufferpools */
|
||||||
|
@ -131,6 +133,8 @@ struct _GstBufferPool {
|
||||||
GstBufferPoolBufferFreeFunction buffer_free;
|
GstBufferPoolBufferFreeFunction buffer_free;
|
||||||
|
|
||||||
gpointer user_data;
|
gpointer user_data;
|
||||||
|
|
||||||
|
GST_STRUCT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
/* allocation */
|
/* allocation */
|
||||||
|
|
|
@ -47,6 +47,8 @@ struct _GstByteStream {
|
||||||
|
|
||||||
/* if we are in the seek state (waiting for DISCONT) */
|
/* if we are in the seek state (waiting for DISCONT) */
|
||||||
gboolean in_seek;
|
gboolean in_seek;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GstByteStream* gst_bytestream_new (GstPad *pad);
|
GstByteStream* gst_bytestream_new (GstPad *pad);
|
||||||
|
|
|
@ -137,7 +137,7 @@ struct _GstClock {
|
||||||
GCond *active_cond;
|
GCond *active_cond;
|
||||||
gboolean stats;
|
gboolean stats;
|
||||||
|
|
||||||
gpointer dummy[4];
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstClockClass {
|
struct _GstClockClass {
|
||||||
|
@ -158,6 +158,8 @@ struct _GstClockClass {
|
||||||
GstClockEntryStatus (*wait_async) (GstClock *clock, GstClockEntry *entry);
|
GstClockEntryStatus (*wait_async) (GstClock *clock, GstClockEntry *entry);
|
||||||
void (*unschedule) (GstClock *clock, GstClockEntry *entry);
|
void (*unschedule) (GstClock *clock, GstClockEntry *entry);
|
||||||
void (*unlock) (GstClock *clock, GstClockEntry *entry);
|
void (*unlock) (GstClock *clock, GstClockEntry *entry);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_clock_get_type (void);
|
GType gst_clock_get_type (void);
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
#include <gst/gstatomic.h>
|
#include <gst/gstatomic.h>
|
||||||
|
#include <gst/gsttypes.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@ -73,6 +74,8 @@ struct _GstData {
|
||||||
/* utility function pointers, can override default */
|
/* utility function pointers, can override default */
|
||||||
GstDataFreeFunction free; /* free the data */
|
GstDataFreeFunction free; /* free the data */
|
||||||
GstDataCopyFunction copy; /* copy the data */
|
GstDataCopyFunction copy; /* copy the data */
|
||||||
|
|
||||||
|
GST_STRUCT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
/* function used by subclasses only */
|
/* function used by subclasses only */
|
||||||
|
|
|
@ -166,7 +166,7 @@ struct _GstElement {
|
||||||
GAsyncQueue *prop_value_queue;
|
GAsyncQueue *prop_value_queue;
|
||||||
GMutex *property_mutex;
|
GMutex *property_mutex;
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstElementClass {
|
struct _GstElementClass {
|
||||||
|
@ -218,8 +218,7 @@ struct _GstElementClass {
|
||||||
GstIndex* (*get_index) (GstElement *element);
|
GstIndex* (*get_index) (GstElement *element);
|
||||||
void (*set_index) (GstElement *element, GstIndex *index);
|
void (*set_index) (GstElement *element, GstIndex *index);
|
||||||
|
|
||||||
/* padding */
|
GST_CLASS_PADDING
|
||||||
gpointer dummy[8];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void gst_element_class_add_pad_template (GstElementClass *klass, GstPadTemplate *templ);
|
void gst_element_class_add_pad_template (GstElementClass *klass, GstPadTemplate *templ);
|
||||||
|
@ -360,6 +359,8 @@ struct _GstElementDetails {
|
||||||
gchar *version; /* version of the element */
|
gchar *version; /* version of the element */
|
||||||
gchar *author; /* who wrote this thing? */
|
gchar *author; /* who wrote this thing? */
|
||||||
gchar *copyright; /* copyright details (year, etc.) */
|
gchar *copyright; /* copyright details (year, etc.) */
|
||||||
|
|
||||||
|
GST_STRUCT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GST_TYPE_ELEMENT_FACTORY (gst_element_factory_get_type())
|
#define GST_TYPE_ELEMENT_FACTORY (gst_element_factory_get_type())
|
||||||
|
@ -386,10 +387,14 @@ struct _GstElementFactory {
|
||||||
|
|
||||||
GList *padtemplates;
|
GList *padtemplates;
|
||||||
guint16 numpadtemplates;
|
guint16 numpadtemplates;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstElementFactoryClass {
|
struct _GstElementFactoryClass {
|
||||||
GstPluginFeatureClass parent_class;
|
GstPluginFeatureClass parent_class;
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_element_factory_get_type (void);
|
GType gst_element_factory_get_type (void);
|
||||||
|
|
|
@ -184,6 +184,8 @@ struct _GstEvent {
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
} caps;
|
} caps;
|
||||||
} event_data;
|
} event_data;
|
||||||
|
|
||||||
|
GST_STRUCT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
void _gst_event_initialize (void);
|
void _gst_event_initialize (void);
|
||||||
|
|
|
@ -168,7 +168,7 @@ struct _GstIndex {
|
||||||
GHashTable *writers;
|
GHashTable *writers;
|
||||||
gint last_id;
|
gint last_id;
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstIndexClass {
|
struct _GstIndexClass {
|
||||||
|
@ -189,7 +189,7 @@ struct _GstIndexClass {
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*entry_added) (GstIndex *index, GstIndexEntry *entry);
|
void (*entry_added) (GstIndex *index, GstIndexEntry *entry);
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_CLASS_PADDING;
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_index_get_type (void);
|
GType gst_index_get_type (void);
|
||||||
|
@ -251,10 +251,14 @@ struct _GstIndexFactory {
|
||||||
|
|
||||||
gchar *longdesc; /* long description of the index (well, don't overdo it..) */
|
gchar *longdesc; /* long description of the index (well, don't overdo it..) */
|
||||||
GType type; /* unique GType of the index */
|
GType type; /* unique GType of the index */
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstIndexFactoryClass {
|
struct _GstIndexFactoryClass {
|
||||||
GstPluginFeatureClass parent;
|
GstPluginFeatureClass parent;
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_index_factory_get_type (void);
|
GType gst_index_factory_get_type (void);
|
||||||
|
|
|
@ -52,6 +52,8 @@ typedef struct _GstInterfaceClass {
|
||||||
/* virtual functions */
|
/* virtual functions */
|
||||||
gboolean (* supported) (GstInterface *iface,
|
gboolean (* supported) (GstInterface *iface,
|
||||||
GType iface_type);
|
GType iface_type);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
} GstInterfaceClass;
|
} GstInterfaceClass;
|
||||||
|
|
||||||
#define GST_INTERFACE_CHECK_INSTANCE_CAST(obj, type, cast_t) \
|
#define GST_INTERFACE_CHECK_INSTANCE_CAST(obj, type, cast_t) \
|
||||||
|
|
|
@ -76,6 +76,8 @@ struct _GstObject {
|
||||||
GstObject *parent;
|
GstObject *parent;
|
||||||
|
|
||||||
guint32 flags;
|
guint32 flags;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
/* signal_object is used to signal to the whole class */
|
/* signal_object is used to signal to the whole class */
|
||||||
|
@ -97,7 +99,7 @@ struct _GstObjectClass {
|
||||||
xmlNodePtr (*save_thyself) (GstObject *object, xmlNodePtr parent);
|
xmlNodePtr (*save_thyself) (GstObject *object, xmlNodePtr parent);
|
||||||
void (*restore_thyself) (GstObject *object, xmlNodePtr self);
|
void (*restore_thyself) (GstObject *object, xmlNodePtr self);
|
||||||
|
|
||||||
gpointer dummy[4];
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
#define GST_FLAGS(obj) (GST_OBJECT_CAST (obj)->flags)
|
#define GST_FLAGS(obj) (GST_OBJECT_CAST (obj)->flags)
|
||||||
|
|
16
gst/gstpad.h
16
gst/gstpad.h
|
@ -172,10 +172,14 @@ struct _GstPad {
|
||||||
gpointer element_private;
|
gpointer element_private;
|
||||||
|
|
||||||
GstPadTemplate *padtemplate; /* the template for this pad */
|
GstPadTemplate *padtemplate; /* the template for this pad */
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstPadClass {
|
struct _GstPadClass {
|
||||||
GstObjectClass parent_class;
|
GstObjectClass parent_class;
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstRealPad {
|
struct _GstRealPad {
|
||||||
|
@ -216,6 +220,8 @@ struct _GstRealPad {
|
||||||
GstPadBufferPoolFunction bufferpoolfunc;
|
GstPadBufferPoolFunction bufferpoolfunc;
|
||||||
|
|
||||||
GstProbeDispatcher probedisp;
|
GstProbeDispatcher probedisp;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstRealPadClass {
|
struct _GstRealPadClass {
|
||||||
|
@ -226,16 +232,22 @@ struct _GstRealPadClass {
|
||||||
|
|
||||||
void (*linked) (GstPad *pad, GstPad *peer);
|
void (*linked) (GstPad *pad, GstPad *peer);
|
||||||
void (*unlinked) (GstPad *pad, GstPad *peer);
|
void (*unlinked) (GstPad *pad, GstPad *peer);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstGhostPad {
|
struct _GstGhostPad {
|
||||||
GstPad pad;
|
GstPad pad;
|
||||||
|
|
||||||
GstRealPad *realpad;
|
GstRealPad *realpad;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstGhostPadClass {
|
struct _GstGhostPadClass {
|
||||||
GstPadClass parent_class;
|
GstPadClass parent_class;
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -321,6 +333,8 @@ struct _GstPadTemplate {
|
||||||
GstPadDirection direction;
|
GstPadDirection direction;
|
||||||
GstPadPresence presence;
|
GstPadPresence presence;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstPadTemplateClass {
|
struct _GstPadTemplateClass {
|
||||||
|
@ -328,6 +342,8 @@ struct _GstPadTemplateClass {
|
||||||
|
|
||||||
/* signal callbacks */
|
/* signal callbacks */
|
||||||
void (*pad_created) (GstPadTemplate *templ, GstPad *pad);
|
void (*pad_created) (GstPadTemplate *templ, GstPad *pad);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef G_HAVE_ISO_VARARGS
|
#ifdef G_HAVE_ISO_VARARGS
|
||||||
|
|
|
@ -43,13 +43,13 @@ typedef struct _GstPipelineClass GstPipelineClass;
|
||||||
struct _GstPipeline {
|
struct _GstPipeline {
|
||||||
GstBin bin;
|
GstBin bin;
|
||||||
|
|
||||||
gpointer dummy[32];
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstPipelineClass {
|
struct _GstPipelineClass {
|
||||||
GstBinClass parent_class;
|
GstBinClass parent_class;
|
||||||
|
|
||||||
gpointer dummy[32];
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_pipeline_get_type (void);
|
GType gst_pipeline_get_type (void);
|
||||||
|
|
|
@ -57,6 +57,8 @@ struct _GstPlugin {
|
||||||
gpointer manager; /* managing registry */
|
gpointer manager; /* managing registry */
|
||||||
GModule *module; /* contains the module if the plugin is loaded */
|
GModule *module; /* contains the module if the plugin is loaded */
|
||||||
gboolean init_called; /* if the init function has been called */
|
gboolean init_called; /* if the init function has been called */
|
||||||
|
|
||||||
|
GST_STRUCT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Initialiser function: returns TRUE if plugin initialised successfully */
|
/* Initialiser function: returns TRUE if plugin initialised successfully */
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#define __GST_PLUGIN_FEATURE_H__
|
#define __GST_PLUGIN_FEATURE_H__
|
||||||
|
|
||||||
#include <glib-object.h>
|
#include <glib-object.h>
|
||||||
|
#include <gst/gsttypes.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
@ -48,12 +49,16 @@ struct _GstPluginFeature {
|
||||||
|
|
||||||
/* --- private --- */
|
/* --- private --- */
|
||||||
gpointer manager;
|
gpointer manager;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstPluginFeatureClass {
|
struct _GstPluginFeatureClass {
|
||||||
GObjectClass parent_class;
|
GObjectClass parent_class;
|
||||||
|
|
||||||
void (*unload_thyself) (GstPluginFeature *feature);
|
void (*unload_thyself) (GstPluginFeature *feature);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -85,6 +85,8 @@ struct _GstQueue {
|
||||||
|
|
||||||
GTimeVal *timeval; /* the timeout for the queue locking */
|
GTimeVal *timeval; /* the timeout for the queue locking */
|
||||||
GAsyncQueue *events; /* upstream events get decoupled here */
|
GAsyncQueue *events; /* upstream events get decoupled here */
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstQueueClass {
|
struct _GstQueueClass {
|
||||||
|
@ -92,6 +94,8 @@ struct _GstQueueClass {
|
||||||
|
|
||||||
/* signal callbacks */
|
/* signal callbacks */
|
||||||
void (*full) (GstQueue *queue);
|
void (*full) (GstQueue *queue);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_queue_get_type (void);
|
GType gst_queue_get_type (void);
|
||||||
|
|
|
@ -86,7 +86,7 @@ struct _GstRegistry {
|
||||||
|
|
||||||
GList *paths;
|
GList *paths;
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstRegistryClass {
|
struct _GstRegistryClass {
|
||||||
|
@ -105,7 +105,7 @@ struct _GstRegistryClass {
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*plugin_added) (GstRegistry *registry, GstPlugin *plugin);
|
void (*plugin_added) (GstRegistry *registry, GstPlugin *plugin);
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ struct _GstScheduler {
|
||||||
|
|
||||||
GList *schedulers;
|
GList *schedulers;
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstSchedulerClass {
|
struct _GstSchedulerClass {
|
||||||
|
@ -105,7 +105,7 @@ struct _GstSchedulerClass {
|
||||||
void (*object_sync) (GstScheduler *sched, GstClock *clock, GstObject *object,
|
void (*object_sync) (GstScheduler *sched, GstClock *clock, GstObject *object,
|
||||||
GstClockID id);
|
GstClockID id);
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_scheduler_get_type (void);
|
GType gst_scheduler_get_type (void);
|
||||||
|
@ -160,10 +160,14 @@ struct _GstSchedulerFactory {
|
||||||
|
|
||||||
gchar *longdesc; /* long description of the scheduler (well, don't overdo it..) */
|
gchar *longdesc; /* long description of the scheduler (well, don't overdo it..) */
|
||||||
GType type; /* unique GType of the scheduler */
|
GType type; /* unique GType of the scheduler */
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstSchedulerFactoryClass {
|
struct _GstSchedulerFactoryClass {
|
||||||
GstPluginFeatureClass parent;
|
GstPluginFeatureClass parent;
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_scheduler_factory_get_type (void);
|
GType gst_scheduler_factory_get_type (void);
|
||||||
|
|
|
@ -44,10 +44,14 @@ struct _GstSystemClock {
|
||||||
|
|
||||||
GMutex * mutex;
|
GMutex * mutex;
|
||||||
GCond * cond;
|
GCond * cond;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstSystemClockClass {
|
struct _GstSystemClockClass {
|
||||||
GstClockClass parent_class;
|
GstClockClass parent_class;
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_system_clock_get_type (void);
|
GType gst_system_clock_get_type (void);
|
||||||
|
|
|
@ -65,7 +65,7 @@ struct _GstThread {
|
||||||
GMutex *lock; /* thread lock/condititon pairs */
|
GMutex *lock; /* thread lock/condititon pairs */
|
||||||
GCond *cond; /* used to control the thread */
|
GCond *cond; /* used to control the thread */
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstThreadClass {
|
struct _GstThreadClass {
|
||||||
|
@ -74,7 +74,7 @@ struct _GstThreadClass {
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*shutdown) (GstThread *thread);
|
void (*shutdown) (GstThread *thread);
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_thread_get_type (void);
|
GType gst_thread_get_type (void);
|
||||||
|
|
|
@ -45,6 +45,8 @@ struct _GstType {
|
||||||
gchar *exts; /* space-delimited list of extensions */
|
gchar *exts; /* space-delimited list of extensions */
|
||||||
|
|
||||||
GSList *factories; /* factories providing this type */
|
GSList *factories; /* factories providing this type */
|
||||||
|
|
||||||
|
GST_STRUCT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstTypeDefinition {
|
struct _GstTypeDefinition {
|
||||||
|
@ -68,13 +70,13 @@ struct _GstTypeFactory {
|
||||||
gchar *exts;
|
gchar *exts;
|
||||||
GstTypeFindFunc typefindfunc;
|
GstTypeFindFunc typefindfunc;
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstTypeFactoryClass {
|
struct _GstTypeFactoryClass {
|
||||||
GstPluginFeatureClass parent;
|
GstPluginFeatureClass parent;
|
||||||
|
|
||||||
gpointer dummy[8];
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,8 @@ struct _GstTypeFind {
|
||||||
GstByteStream *bs;
|
GstByteStream *bs;
|
||||||
|
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstTypeFindClass {
|
struct _GstTypeFindClass {
|
||||||
|
@ -58,6 +60,8 @@ struct _GstTypeFindClass {
|
||||||
/* signals */
|
/* signals */
|
||||||
void (*have_type) (GstElement *element,
|
void (*have_type) (GstElement *element,
|
||||||
GstCaps *caps);
|
GstCaps *caps);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_type_find_get_type (void);
|
GType gst_type_find_get_type (void);
|
||||||
|
|
|
@ -58,6 +58,10 @@ typedef enum {
|
||||||
GST_RESULT_NOT_IMPL
|
GST_RESULT_NOT_IMPL
|
||||||
} GstResult;
|
} GstResult;
|
||||||
|
|
||||||
|
#define GST_STRUCT_PADDING gpointer _gst_reserved[4];
|
||||||
|
#define GST_CLASS_PADDING gpointer _gst_reserved[4];
|
||||||
|
#define GST_OBJECT_PADDING gpointer _gst_reserved[4];
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_TYPES_H__ */
|
#endif /* __GST_TYPES_H__ */
|
||||||
|
|
|
@ -49,10 +49,14 @@ struct _GstURIHandler {
|
||||||
gchar *longdesc; /* description of the uri */
|
gchar *longdesc; /* description of the uri */
|
||||||
gchar *element; /* The element that can handle this uri */
|
gchar *element; /* The element that can handle this uri */
|
||||||
gchar *property; /* The property on the element to set the uri */
|
gchar *property; /* The property on the element to set the uri */
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstURIHandlerClass {
|
struct _GstURIHandlerClass {
|
||||||
GstPluginFeatureClass parent;
|
GstPluginFeatureClass parent;
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_uri_handler_get_type (void);
|
GType gst_uri_handler_get_type (void);
|
||||||
|
|
|
@ -48,6 +48,8 @@ struct _GstXML {
|
||||||
GList *topelements;
|
GList *topelements;
|
||||||
|
|
||||||
xmlNsPtr ns;
|
xmlNsPtr ns;
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _GstXMLNs GstXMLNs;
|
typedef struct _GstXMLNs GstXMLNs;
|
||||||
|
@ -58,6 +60,8 @@ struct _GstXMLClass {
|
||||||
/* signal callbacks */
|
/* signal callbacks */
|
||||||
void (*object_loaded) (GstXML *xml, GstObject *object, xmlNodePtr self);
|
void (*object_loaded) (GstXML *xml, GstObject *object, xmlNodePtr self);
|
||||||
void (*object_saved) (GstXML *xml, GstObject *object, xmlNodePtr self);
|
void (*object_saved) (GstXML *xml, GstObject *object, xmlNodePtr self);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_xml_get_type (void);
|
GType gst_xml_get_type (void);
|
||||||
|
|
|
@ -85,6 +85,8 @@ struct _GstQueue {
|
||||||
|
|
||||||
GTimeVal *timeval; /* the timeout for the queue locking */
|
GTimeVal *timeval; /* the timeout for the queue locking */
|
||||||
GAsyncQueue *events; /* upstream events get decoupled here */
|
GAsyncQueue *events; /* upstream events get decoupled here */
|
||||||
|
|
||||||
|
GST_OBJECT_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
struct _GstQueueClass {
|
struct _GstQueueClass {
|
||||||
|
@ -92,6 +94,8 @@ struct _GstQueueClass {
|
||||||
|
|
||||||
/* signal callbacks */
|
/* signal callbacks */
|
||||||
void (*full) (GstQueue *queue);
|
void (*full) (GstQueue *queue);
|
||||||
|
|
||||||
|
GST_CLASS_PADDING
|
||||||
};
|
};
|
||||||
|
|
||||||
GType gst_queue_get_type (void);
|
GType gst_queue_get_type (void);
|
||||||
|
|
Loading…
Reference in a new issue