summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2013-12-12 00:36:07 +0000
committerTim-Philipp Müller <tim@centricular.com>2013-12-12 00:36:07 +0000
commit91fac8eb29f4f68ec1f44db8bca32eef1cea1182 (patch)
tree4e50aa9249884403de6fb2413ceae7bd32567b80
parentab3651d3393d3771975e6f1180ea9adf1fde0605 (diff)
rtsp-server: add padding to many public structures
Not mini objects though, since they are not subclassable anyway, nor kept on the stack or inlined in a structure.
-rw-r--r--gst/rtsp-server/rtsp-address-pool.h4
-rw-r--r--gst/rtsp-server/rtsp-auth.h4
-rw-r--r--gst/rtsp-server/rtsp-client.h5
-rw-r--r--gst/rtsp-server/rtsp-context.h3
-rw-r--r--gst/rtsp-server/rtsp-media-factory-uri.h5
-rw-r--r--gst/rtsp-server/rtsp-media-factory.h4
-rw-r--r--gst/rtsp-server/rtsp-media.h4
-rw-r--r--gst/rtsp-server/rtsp-mount-points.h4
-rw-r--r--gst/rtsp-server/rtsp-server.h5
-rw-r--r--gst/rtsp-server/rtsp-session-media.h4
-rw-r--r--gst/rtsp-server/rtsp-session-pool.h4
-rw-r--r--gst/rtsp-server/rtsp-session.h4
-rw-r--r--gst/rtsp-server/rtsp-stream-transport.h4
-rw-r--r--gst/rtsp-server/rtsp-stream.h5
-rw-r--r--gst/rtsp-server/rtsp-thread-pool.h4
-rw-r--r--gst/rtsp-server/rtsp-token.h2
16 files changed, 63 insertions, 2 deletions
diff --git a/gst/rtsp-server/rtsp-address-pool.h b/gst/rtsp-server/rtsp-address-pool.h
index 8320dd9..a473bdf 100644
--- a/gst/rtsp-server/rtsp-address-pool.h
+++ b/gst/rtsp-server/rtsp-address-pool.h
@@ -134,6 +134,7 @@ struct _GstRTSPAddressPool {
/*< private >*/
GstRTSPAddressPoolPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -143,6 +144,9 @@ struct _GstRTSPAddressPool {
*/
struct _GstRTSPAddressPoolClass {
GObjectClass parent_class;
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_address_pool_get_type (void);
diff --git a/gst/rtsp-server/rtsp-auth.h b/gst/rtsp-server/rtsp-auth.h
index c2dd971..cb281f0 100644
--- a/gst/rtsp-server/rtsp-auth.h
+++ b/gst/rtsp-server/rtsp-auth.h
@@ -48,7 +48,9 @@ G_BEGIN_DECLS
struct _GstRTSPAuth {
GObject parent;
+ /*< private >*/
GstRTSPAuthPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -70,6 +72,8 @@ struct _GstRTSPAuthClass {
gboolean (*authenticate) (GstRTSPAuth *auth, GstRTSPContext *ctx);
gboolean (*check) (GstRTSPAuth *auth, GstRTSPContext *ctx,
const gchar *check);
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_auth_get_type (void);
diff --git a/gst/rtsp-server/rtsp-client.h b/gst/rtsp-server/rtsp-client.h
index 88d888e..94d52df 100644
--- a/gst/rtsp-server/rtsp-client.h
+++ b/gst/rtsp-server/rtsp-client.h
@@ -68,7 +68,9 @@ typedef gboolean (*GstRTSPClientSendFunc) (GstRTSPClient *client,
struct _GstRTSPClient {
GObject parent;
+ /*< private >*/
GstRTSPClientPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -106,6 +108,9 @@ struct _GstRTSPClientClass {
void (*set_parameter_request) (GstRTSPClient *client, GstRTSPContext *ctx);
void (*get_parameter_request) (GstRTSPClient *client, GstRTSPContext *ctx);
void (*handle_response) (GstRTSPClient *client, GstRTSPContext *ctx);
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING_LARGE];
};
GType gst_rtsp_client_get_type (void);
diff --git a/gst/rtsp-server/rtsp-context.h b/gst/rtsp-server/rtsp-context.h
index 9e001aa..2b31bdd 100644
--- a/gst/rtsp-server/rtsp-context.h
+++ b/gst/rtsp-server/rtsp-context.h
@@ -69,6 +69,9 @@ struct _GstRTSPContext {
GstRTSPMedia *media;
GstRTSPStream *stream;
GstRTSPMessage *response;
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_context_get_type (void);
diff --git a/gst/rtsp-server/rtsp-media-factory-uri.h b/gst/rtsp-server/rtsp-media-factory-uri.h
index fd1eb98..6dc3a40 100644
--- a/gst/rtsp-server/rtsp-media-factory-uri.h
+++ b/gst/rtsp-server/rtsp-media-factory-uri.h
@@ -48,7 +48,9 @@ typedef struct _GstRTSPMediaFactoryURIPrivate GstRTSPMediaFactoryURIPrivate;
struct _GstRTSPMediaFactoryURI {
GstRTSPMediaFactory parent;
+ /*< private >*/
GstRTSPMediaFactoryURIPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -58,6 +60,9 @@ struct _GstRTSPMediaFactoryURI {
*/
struct _GstRTSPMediaFactoryURIClass {
GstRTSPMediaFactoryClass parent_class;
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_media_factory_uri_get_type (void);
diff --git a/gst/rtsp-server/rtsp-media-factory.h b/gst/rtsp-server/rtsp-media-factory.h
index 63f4d82..11aaaeb 100644
--- a/gst/rtsp-server/rtsp-media-factory.h
+++ b/gst/rtsp-server/rtsp-media-factory.h
@@ -54,6 +54,7 @@ struct _GstRTSPMediaFactory {
/*< private >*/
GstRTSPMediaFactoryPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -91,6 +92,9 @@ struct _GstRTSPMediaFactoryClass {
/* signals */
void (*media_constructed) (GstRTSPMediaFactory *factory, GstRTSPMedia *media);
void (*media_configure) (GstRTSPMediaFactory *factory, GstRTSPMedia *media);
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING_LARGE];
};
GType gst_rtsp_media_factory_get_type (void);
diff --git a/gst/rtsp-server/rtsp-media.h b/gst/rtsp-server/rtsp-media.h
index 402b7ea..bb55835 100644
--- a/gst/rtsp-server/rtsp-media.h
+++ b/gst/rtsp-server/rtsp-media.h
@@ -98,6 +98,7 @@ struct _GstRTSPMedia {
/*< private >*/
GstRTSPMediaPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -132,6 +133,9 @@ struct _GstRTSPMediaClass {
void (*unprepared) (GstRTSPMedia *media);
void (*new_state) (GstRTSPMedia *media, GstState state);
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING_LARGE];
};
GType gst_rtsp_media_get_type (void);
diff --git a/gst/rtsp-server/rtsp-mount-points.h b/gst/rtsp-server/rtsp-mount-points.h
index 18a691a..ed13d59 100644
--- a/gst/rtsp-server/rtsp-mount-points.h
+++ b/gst/rtsp-server/rtsp-mount-points.h
@@ -49,6 +49,7 @@ struct _GstRTSPMountPoints {
/*< private >*/
GstRTSPMountPointsPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -62,6 +63,9 @@ struct _GstRTSPMountPointsClass {
gchar * (*make_path) (GstRTSPMountPoints *mounts,
const GstRTSPUrl *url);
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_mount_points_get_type (void);
diff --git a/gst/rtsp-server/rtsp-server.h b/gst/rtsp-server/rtsp-server.h
index 610c9a0..afe145a 100644
--- a/gst/rtsp-server/rtsp-server.h
+++ b/gst/rtsp-server/rtsp-server.h
@@ -51,7 +51,9 @@ typedef struct _GstRTSPServerPrivate GstRTSPServerPrivate;
struct _GstRTSPServer {
GObject parent;
+ /*< private >*/
GstRTSPServerPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -71,6 +73,9 @@ struct _GstRTSPServerClass {
/* signals */
void (*client_connected) (GstRTSPServer *server, GstRTSPClient *client);
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING_LARGE];
};
GType gst_rtsp_server_get_type (void);
diff --git a/gst/rtsp-server/rtsp-session-media.h b/gst/rtsp-server/rtsp-session-media.h
index 65867ab..0b7c8c8 100644
--- a/gst/rtsp-server/rtsp-session-media.h
+++ b/gst/rtsp-server/rtsp-session-media.h
@@ -50,11 +50,15 @@ struct _GstRTSPSessionMedia
/*< private >*/
GstRTSPSessionMediaPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
struct _GstRTSPSessionMediaClass
{
GObjectClass parent_class;
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_session_media_get_type (void);
diff --git a/gst/rtsp-server/rtsp-session-pool.h b/gst/rtsp-server/rtsp-session-pool.h
index 82468b1..3b0c12d 100644
--- a/gst/rtsp-server/rtsp-session-pool.h
+++ b/gst/rtsp-server/rtsp-session-pool.h
@@ -50,6 +50,7 @@ struct _GstRTSPSessionPool {
/*< private >*/
GstRTSPSessionPoolPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -63,6 +64,9 @@ struct _GstRTSPSessionPoolClass {
gchar * (*create_session_id) (GstRTSPSessionPool *pool);
GstRTSPSession * (*create_session) (GstRTSPSessionPool *pool, const gchar *id);
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING_LARGE];
};
/**
diff --git a/gst/rtsp-server/rtsp-session.h b/gst/rtsp-server/rtsp-session.h
index 60ed6fa..d9c0f18 100644
--- a/gst/rtsp-server/rtsp-session.h
+++ b/gst/rtsp-server/rtsp-session.h
@@ -69,10 +69,14 @@ struct _GstRTSPSession {
/*< private >*/
GstRTSPSessionPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
struct _GstRTSPSessionClass {
GObjectClass parent_class;
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_session_get_type (void);
diff --git a/gst/rtsp-server/rtsp-stream-transport.h b/gst/rtsp-server/rtsp-stream-transport.h
index fad6911..bc02df8 100644
--- a/gst/rtsp-server/rtsp-stream-transport.h
+++ b/gst/rtsp-server/rtsp-stream-transport.h
@@ -74,10 +74,14 @@ struct _GstRTSPStreamTransport {
/*< private >*/
GstRTSPStreamTransportPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
struct _GstRTSPStreamTransportClass {
GObjectClass parent_class;
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_stream_transport_get_type (void);
diff --git a/gst/rtsp-server/rtsp-stream.h b/gst/rtsp-server/rtsp-stream.h
index 9303a62..71efa62 100644
--- a/gst/rtsp-server/rtsp-stream.h
+++ b/gst/rtsp-server/rtsp-stream.h
@@ -55,10 +55,13 @@ struct _GstRTSPStream {
/*< private >*/
GstRTSPStreamPrivate *priv;
-};
+ gpointer _gst_reserved[GST_PADDING];};
struct _GstRTSPStreamClass {
GObjectClass parent_class;
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_stream_get_type (void);
diff --git a/gst/rtsp-server/rtsp-thread-pool.h b/gst/rtsp-server/rtsp-thread-pool.h
index 8165125..e360034 100644
--- a/gst/rtsp-server/rtsp-thread-pool.h
+++ b/gst/rtsp-server/rtsp-thread-pool.h
@@ -127,6 +127,7 @@ struct _GstRTSPThreadPool {
/*< private >*/
GstRTSPThreadPoolPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
};
/**
@@ -157,6 +158,9 @@ struct _GstRTSPThreadPoolClass {
GstRTSPThread *thread);
void (*thread_leave) (GstRTSPThreadPool *pool,
GstRTSPThread *thread);
+
+ /*< private >*/
+ gpointer _gst_reserved[GST_PADDING];
};
GType gst_rtsp_thread_pool_get_type (void);
diff --git a/gst/rtsp-server/rtsp-token.h b/gst/rtsp-server/rtsp-token.h
index b7c06c4..265d8d3 100644
--- a/gst/rtsp-server/rtsp-token.h
+++ b/gst/rtsp-server/rtsp-token.h
@@ -39,7 +39,7 @@ GType gst_rtsp_token_get_type(void);
* GstRTSPToken:
*
* An opaque object used for checking authorisations.
- * It is generated after successfull authentication.
+ * It is generated after successful authentication.
*/
struct _GstRTSPToken {
GstMiniObject mini_object;