summaryrefslogtreecommitdiff
path: root/gst/rtsp-server/rtsp-client.h
diff options
context:
space:
mode:
authorDavid Svensson Fors <davidsf@axis.com>2014-03-06 13:52:02 +0100
committerWim Taymans <wtaymans@redhat.com>2014-03-11 11:17:04 +0100
commitfaf0b31cbbdeba09217027fb9133946a3a72cf05 (patch)
treeb718cff48ced5accb7c453a9d50bf67067ae99be /gst/rtsp-server/rtsp-client.h
parentdffdbbf0906201ec6d6711d1e80e6245182d517c (diff)
rtsp-client: vmethod for modifying tunnel GET response
Add a vmethod tunnel_http_response where the response to the HTTP GET for tunneled connections can be modified. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=725879
Diffstat (limited to 'gst/rtsp-server/rtsp-client.h')
-rw-r--r--gst/rtsp-server/rtsp-client.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-client.h b/gst/rtsp-server/rtsp-client.h
index 17086e5..01f8208 100644
--- a/gst/rtsp-server/rtsp-client.h
+++ b/gst/rtsp-server/rtsp-client.h
@@ -85,6 +85,8 @@ struct _GstRTSPClient {
* RTSP response(ctx->response) via a call to gst_rtsp_message_init_response()
* @params_get: get parameters. This function should also initialize the
* RTSP response(ctx->response) via a call to gst_rtsp_message_init_response()
+ * @tunnel_http_response: called when a response to the GET request is about to
+ * be sent for a tunneled connection. The response can be modified. Since 1.4
*
* The client class structure.
*/
@@ -115,8 +117,10 @@ struct _GstRTSPClientClass {
void (*get_parameter_request) (GstRTSPClient *client, GstRTSPContext *ctx);
void (*handle_response) (GstRTSPClient *client, GstRTSPContext *ctx);
+ void (*tunnel_http_response) (GstRTSPClient * client, GstRTSPMessage * request,
+ GstRTSPMessage * response);
/*< private >*/
- gpointer _gst_reserved[GST_PADDING_LARGE];
+ gpointer _gst_reserved[GST_PADDING_LARGE-1];
};
GType gst_rtsp_client_get_type (void);