• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) 2018, Collabora Ltd.
3  * Copyright (C) 2018, SK Telecom, Co., Ltd.
4  *   Author: Jeongseok Kim <jeongseok.kim@sk.com>
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., 51 Franklin St, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  */
21 
22 #ifndef __GST_SRT_ENUM_H__
23 #define __GST_SRT_ENUM_H__
24 
25 #include <gst/gst.h>
26 
27 G_BEGIN_DECLS
28 
29 /**
30  * GstSRTConnectionMode:
31  * @GST_SRT_CONNECTION_MODE_NONE: not connected
32  * @GST_SRT_CONNECTION_MODE_CALLER: The mode to send the connection request like a client
33  * @GST_SRT_CONNECTION_MODE_LISTENER: The mode to wait for being connected by peer caller
34  * @GST_SRT_CONNECTION_MODE_RENDEZVOUS: The mode to support one-to-one only connection
35  *
36  * SRT connection types.
37  */
38 typedef enum
39 {
40   GST_SRT_CONNECTION_MODE_NONE = 0,
41   GST_SRT_CONNECTION_MODE_CALLER,
42   GST_SRT_CONNECTION_MODE_LISTENER,
43   GST_SRT_CONNECTION_MODE_RENDEZVOUS,
44 } GstSRTConnectionMode;
45 
46 /**
47  * GstSRTKeyLengthBits:
48  * @GST_SRT_KEY_LENGTH_NO_KEY: no encryption
49  * @GST_SRT_KEY_LENGTH_0: no encryption
50  * @GST_SRT_KEY_LENGTH_16: 16 bytes (128-bit) length
51  * @GST_SRT_KEY_LENGTH_24: 24 bytes (192-bit) length
52  * @GST_SRT_KEY_LENGTH_32: 32 bytes (256-bit) length
53  *
54  * Crypto key length in bits
55  */
56 typedef enum
57 {
58   GST_SRT_KEY_LENGTH_NO_KEY = 0,
59   GST_SRT_KEY_LENGTH_0 = GST_SRT_KEY_LENGTH_NO_KEY,
60   GST_SRT_KEY_LENGTH_16 = 16,
61   GST_SRT_KEY_LENGTH_24 = 24,
62   GST_SRT_KEY_LENGTH_32 = 32,
63 } GstSRTKeyLength;
64 
65 G_END_DECLS
66 
67 #endif // __GST_SRT_ENUM_H__
68