1 | /* GStreamer ClearKey common encryption decryptor |
2 | * |
3 | * Copyright (C) 2016 Metrological |
4 | * Copyright (C) 2016 Igalia S.L |
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 | #pragma once |
23 | |
24 | #if ENABLE(ENCRYPTED_MEDIA) && USE(GSTREAMER) |
25 | |
26 | #include "WebKitCommonEncryptionDecryptorGStreamer.h" |
27 | |
28 | G_BEGIN_DECLS |
29 | |
30 | #define WEBKIT_TYPE_MEDIA_CK_DECRYPT (webkit_media_clear_key_decrypt_get_type()) |
31 | #define WEBKIT_MEDIA_CK_DECRYPT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_TYPE_MEDIA_CK_DECRYPT, WebKitMediaClearKeyDecrypt)) |
32 | #define WEBKIT_MEDIA_CK_DECRYPT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_TYPE_MEDIA_CK_DECRYPT, WebKitMediaClearKeyDecryptClass)) |
33 | #define WEBKIT_IS_MEDIA_CK_DECRYPT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_TYPE_MEDIA_CK_DECRYPT)) |
34 | #define WEBKIT_IS_MEDIA_CK_DECRYPT_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_TYPE_MEDIA_CK_DECRYPT)) |
35 | |
36 | typedef struct _WebKitMediaClearKeyDecrypt WebKitMediaClearKeyDecrypt; |
37 | typedef struct _WebKitMediaClearKeyDecryptClass WebKitMediaClearKeyDecryptClass; |
38 | typedef struct _WebKitMediaClearKeyDecryptPrivate WebKitMediaClearKeyDecryptPrivate; |
39 | |
40 | GType webkit_media_clear_key_decrypt_get_type(void); |
41 | |
42 | struct _WebKitMediaClearKeyDecrypt { |
43 | WebKitMediaCommonEncryptionDecrypt parent; |
44 | |
45 | WebKitMediaClearKeyDecryptPrivate* priv; |
46 | }; |
47 | |
48 | struct _WebKitMediaClearKeyDecryptClass { |
49 | WebKitMediaCommonEncryptionDecryptClass parentClass; |
50 | }; |
51 | |
52 | G_END_DECLS |
53 | |
54 | #endif // ENABLE(ENCRYPTED_MEDIA) && USE(GSTREAMER) |
55 | |