Tizen 2.1 base
[platform/core/multimedia/gst-rtsp-server-wfd.git] / src / rtsp-params.c
1 /* GStreamer
2  * Copyright (C) 2008 Wim Taymans <wim.taymans at gmail.com>
3
4 * Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  *
21
22 * * Modifications by Samsung Electronics Co., Ltd.
23
24 * 1. Applied Miracast WFD Server function
25 */
26 #include <string.h>
27
28 #include "rtsp-params.h"
29
30 GstRTSPResult
31 gst_rtsp_params_set (GstRTSPClient * client, GstRTSPClientState * state)
32 {
33   GstRTSPStatusCode code;
34
35   /* FIXME, actually parse the request based on the mime type and try to repond
36    * with a list of the parameters */
37   code = GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD;
38
39   gst_rtsp_message_init_response (state->response, code,
40       gst_rtsp_status_as_text (code), state->request);
41
42   return GST_RTSP_OK;
43 }
44
45 GstRTSPResult
46 gst_rtsp_params_get (GstRTSPClient * client, GstRTSPClientState * state)
47 {
48   GstRTSPStatusCode code;
49
50   /* FIXME, actually parse the request based on the mime type and try to repond
51    * with a list of the parameters */
52   code = GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD;
53
54   gst_rtsp_message_init_response (state->response, code,
55       gst_rtsp_status_as_text (code), state->request);
56
57   return GST_RTSP_OK;
58 }