Replace gst-i18n-*.h with gi18n-lib.h
[platform/upstream/gstreamer.git] / subprojects / gst-plugins-good / ext / soup / gstsoup.c
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 <glib/gi18n-lib.h>
21
22 #include "gstsoupelements.h"
23 #include "gstsouploader.h"
24
25 GST_DEBUG_CATEGORY (gst_soup_debug);
26
27 #define GST_CAT_DEFAULT gst_soup_debug
28
29 static gboolean
30 plugin_init (GstPlugin * plugin)
31 {
32   gboolean ret = FALSE;
33
34   GST_DEBUG_CATEGORY_INIT (gst_soup_debug, "soup", 0, "soup");
35
36 #ifndef STATIC_SOUP
37   if (!gst_soup_load_library ()) {
38     GST_WARNING ("Failed to load libsoup library");
39     return TRUE;
40   }
41 #endif
42
43   ret |= GST_ELEMENT_REGISTER (souphttpsrc, plugin);
44   ret |= GST_ELEMENT_REGISTER (souphttpclientsink, plugin);
45
46   return ret;
47 }
48
49 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
50     GST_VERSION_MINOR,
51     soup,
52     "libsoup HTTP client src/sink",
53     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)