summaryrefslogtreecommitdiff
path: root/src/input/input_net.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input/input_net.c')
-rw-r--r--src/input/input_net.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/src/input/input_net.c b/src/input/input_net.c
index 7ea5c8b23..1b023e38e 100644
--- a/src/input/input_net.c
+++ b/src/input/input_net.c
@@ -331,24 +331,11 @@ static void net_plugin_dispose (input_plugin_t *this_gen ) {
free (this_gen);
}
-/*
- *
- */
-input_plugin_t *init_input_plugin (int iface, xine_t *xine) {
+void *init_input_plugin (xine_t *xine, void *data) {
net_input_plugin_t *this;
config_values_t *config;
- if (iface != 8) {
- LOG_MSG(xine,
- _("net input plugin doesn't support plugin API version %d.\n"
- "PLUGIN DISABLED.\n"
- "This means there's a version mismatch between xine and this input"
- "plugin.\nInstalling current input plugins should help.\n"),
- iface);
- return NULL;
- }
-
this = (net_input_plugin_t *) xine_xmalloc(sizeof(net_input_plugin_t));
config = xine->config;
this->xine = xine;
@@ -380,5 +367,16 @@ input_plugin_t *init_input_plugin (int iface, xine_t *xine) {
this->curpos = 0;
this->nbc = NULL;
- return (input_plugin_t *) this;
+ return this;
}
+
+/*
+ * exported plugin catalog entry
+ */
+
+plugin_info_t xine_plugin_info[] = {
+ /* type, API, "name", version, special_info, init_function */
+ { PLUGIN_INPUT, 8, "tcp", XINE_VERSION_CODE, NULL, init_input_plugin },
+ { PLUGIN_NONE, 0, "", 0, NULL, NULL }
+};
+