summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2018-02-06 17:58:49 +0100
committerMathieu Duponchelle <mathieu@centricular.com>2018-02-06 18:06:49 +0100
commit57b2835a41ed31339e5bd523cacbc07a170e2120 (patch)
treea633aa74b804374a40512cf910935a3fb09926d4
parent0ea5b5521e6c8fbe5e41b632077f1f3a65397bd8 (diff)
rtsp-client: add type annotations
gi doesn't seem to be able to figure out the type of the signal parameters when defined with G_DEFINE_POINTER_TYPE
-rw-r--r--gst/rtsp-server/rtsp-client.c77
1 files changed, 66 insertions, 11 deletions
diff --git a/gst/rtsp-server/rtsp-client.c b/gst/rtsp-server/rtsp-client.c
index cf78b17..52c543c 100644
--- a/gst/rtsp-server/rtsp-client.c
+++ b/gst/rtsp-server/rtsp-client.c
@@ -243,7 +243,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-options-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -257,6 +257,11 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic, GST_TYPE_RTSP_STATUS_CODE, 1,
GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::options-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_OPTIONS_REQUEST] =
g_signal_new ("options-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass, options_request),
@@ -266,7 +271,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-describe-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -280,6 +285,11 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic, GST_TYPE_RTSP_STATUS_CODE, 1,
GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::describe-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_DESCRIBE_REQUEST] =
g_signal_new ("describe-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass, describe_request),
@@ -289,7 +299,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-setup-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -303,6 +313,11 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic, GST_TYPE_RTSP_STATUS_CODE, 1,
GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::setup-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_SETUP_REQUEST] =
g_signal_new ("setup-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass, setup_request),
@@ -312,7 +327,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-play-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -326,6 +341,11 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic, GST_TYPE_RTSP_STATUS_CODE, 1,
GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::play-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_PLAY_REQUEST] =
g_signal_new ("play-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass, play_request),
@@ -335,7 +355,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-pause-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -349,6 +369,11 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic, GST_TYPE_RTSP_STATUS_CODE, 1,
GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::pause-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_PAUSE_REQUEST] =
g_signal_new ("pause-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass, pause_request),
@@ -358,7 +383,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-teardown-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -372,6 +397,11 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic, GST_TYPE_RTSP_STATUS_CODE, 1,
GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::teardown-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_TEARDOWN_REQUEST] =
g_signal_new ("teardown-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass, teardown_request),
@@ -381,7 +411,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-set-parameter-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -395,6 +425,11 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic,
GST_TYPE_RTSP_STATUS_CODE, 1, GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::set-parameter-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_SET_PARAMETER_REQUEST] =
g_signal_new ("set-parameter-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass,
@@ -404,7 +439,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-get-parameter-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -418,12 +453,22 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic, GST_TYPE_RTSP_STATUS_CODE, 1,
GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::get-parameter-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_GET_PARAMETER_REQUEST] =
g_signal_new ("get-parameter-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass,
get_parameter_request), NULL, NULL, g_cclosure_marshal_generic,
G_TYPE_NONE, 1, GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::handle-response:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_HANDLE_RESPONSE] =
g_signal_new ("handle-response", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass,
@@ -445,7 +490,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-announce-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -459,6 +504,11 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic, GST_TYPE_RTSP_STATUS_CODE, 1,
GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::announce-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_ANNOUNCE_REQUEST] =
g_signal_new ("announce-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass, announce_request),
@@ -468,7 +518,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::pre-record-request:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
*
* Returns: a #GstRTSPStatusCode, GST_RTSP_STS_OK in case of success,
* otherwise an appropriate return code
@@ -482,6 +532,11 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
g_cclosure_marshal_generic, GST_TYPE_RTSP_STATUS_CODE, 1,
GST_TYPE_RTSP_CONTEXT);
+ /**
+ * GstRTSPClient::record-request:
+ * @client: a #GstRTSPClient
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
+ */
gst_rtsp_client_signals[SIGNAL_RECORD_REQUEST] =
g_signal_new ("record-request", G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstRTSPClientClass, record_request),
@@ -491,7 +546,7 @@ gst_rtsp_client_class_init (GstRTSPClientClass * klass)
/**
* GstRTSPClient::check-requirements:
* @client: a #GstRTSPClient
- * @ctx: a #GstRTSPContext
+ * @ctx: (type GstRtspServer.RTSPContext): a #GstRTSPContext
* @arr: a NULL-terminated array of strings
*
* Returns: a newly allocated string with comma-separated list of