|
1 /* GStreamer |
|
2 * Copyright (C) <1999> Erik Walthinsen <omega@cse.ogi.edu> |
|
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 details. |
|
13 * |
|
14 * You should have received a copy of the GNU Library General Public |
|
15 * License along with this library; if not, write to the |
|
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
17 * Boston, MA 02111-1307, USA. |
|
18 */ |
|
19 |
|
20 #ifdef HAVE_CONFIG_H |
|
21 #include "config.h" |
|
22 #endif |
|
23 |
|
24 #include <gst/dataprotocol/dataprotocol.h> |
|
25 #include "gsttcpclientsrc.h" |
|
26 #include "gsttcpclientsink.h" |
|
27 #include "gsttcpserversrc.h" |
|
28 #include "gsttcpserversink.h" |
|
29 #include "gstmultifdsink.h" |
|
30 |
|
31 GST_DEBUG_CATEGORY (tcp_debug); |
|
32 |
|
33 static gboolean |
|
34 plugin_init (GstPlugin * plugin) |
|
35 { |
|
36 gst_dp_init (); |
|
37 |
|
38 if (!gst_element_register (plugin, "tcpclientsink", GST_RANK_NONE, |
|
39 GST_TYPE_TCP_CLIENT_SINK)) |
|
40 return FALSE; |
|
41 if (!gst_element_register (plugin, "tcpclientsrc", GST_RANK_NONE, |
|
42 GST_TYPE_TCP_CLIENT_SRC)) |
|
43 return FALSE; |
|
44 if (!gst_element_register (plugin, "tcpserversink", GST_RANK_NONE, |
|
45 GST_TYPE_TCP_SERVER_SINK)) |
|
46 return FALSE; |
|
47 if (!gst_element_register (plugin, "tcpserversrc", GST_RANK_NONE, |
|
48 GST_TYPE_TCP_SERVER_SRC)) |
|
49 return FALSE; |
|
50 if (!gst_element_register (plugin, "multifdsink", GST_RANK_NONE, |
|
51 GST_TYPE_MULTI_FD_SINK)) |
|
52 return FALSE; |
|
53 |
|
54 GST_DEBUG_CATEGORY_INIT (tcp_debug, "tcp", 0, "TCP calls"); |
|
55 |
|
56 return TRUE; |
|
57 } |
|
58 |
|
59 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, |
|
60 GST_VERSION_MINOR, |
|
61 "tcp", |
|
62 "transfer data over the network via TCP", |
|
63 plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN); |
|
64 |
|
65 #ifdef __SYMBIAN32__ |
|
66 EXPORT_C |
|
67 #endif |
|
68 GstPluginDesc* _GST_PLUGIN_DESC() |
|
69 { |
|
70 return &gst_plugin_desc; |
|
71 } |