1 /* GStreamer
2 * Copyright (C) 2007-2008 Wouter Cloetens <wouter@mind.be>
3 * Copyright (C) 2021 Igalia S.L.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more
14 */
15
16 #ifdef HAVE_CONFIG_H
17 #include "config.h"
18 #endif
19
20 #include <gst/gst-i18n-plugin.h>
21
22 #include "gstsoupelements.h"
23 #include "gstsouploader.h"
24
25 static gboolean
plugin_init(GstPlugin * plugin)26 plugin_init (GstPlugin * plugin)
27 {
28 gboolean ret = FALSE;
29
30 ret |= GST_ELEMENT_REGISTER (souphttpsrc, plugin);
31 #ifndef OHOS_EXT_FUNC // ohos.ext.func.0007
32 ret |= GST_ELEMENT_REGISTER (souphttpclientsink, plugin);
33 #endif
34
35 return ret;
36 }
37
38 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
39 GST_VERSION_MINOR,
40 soup,
41 "libsoup HTTP client src/sink",
42 plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
43