tizen 2.0 init
[framework/multimedia/gst-plugins-good0.10.git] / ext / soup / gstsoup.c
1 /* GStreamer
2  * Copyright (C) 2007-2008 Wouter Cloetens <wouter@mind.be>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more
13  */
14
15 #ifdef HAVE_CONFIG_H
16 #include "config.h"
17 #endif
18
19 #include <gst/gst-i18n-plugin.h>
20
21 #include "gstsouphttpsrc.h"
22 #include "gstsouphttpclientsink.h"
23
24
25 static gboolean
26 plugin_init (GstPlugin * plugin)
27 {
28 #ifdef ENABLE_NLS
29   GST_DEBUG ("binding text domain %s to locale dir %s", GETTEXT_PACKAGE,
30       LOCALEDIR);
31   bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
32   bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
33 #endif
34
35   gst_element_register (plugin, "souphttpsrc", GST_RANK_PRIMARY,
36       GST_TYPE_SOUP_HTTP_SRC);
37   gst_element_register (plugin, "souphttpclientsink", GST_RANK_NONE,
38       GST_TYPE_SOUP_HTTP_CLIENT_SINK);
39
40   return TRUE;
41 }
42
43 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
44     GST_VERSION_MINOR,
45     "soup",
46     "libsoup HTTP client src/sink",
47     plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)