aboutsummaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authoralcoheca <alcoheca@svn>2010-03-26 23:42:37 +0000
committeralcoheca <alcoheca@svn>2010-03-26 23:42:37 +0000
commitaf8cb2a400e9caacea314b8db33d32c1b4dadd82 (patch)
treeebf5b01882ec1f80179a4dc386bde8c047d5f8a0 /addons
parent6d3222ee864c9e94c2c25a4f44b572e3eea9b5b8 (diff)
Revert "wip"
This reverts commit 0e8d33e10e4d1649827865b3aec4bb5231666f88. git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@28883 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'addons')
-rw-r--r--addons/com.1ting.scraper/1ting.xml (renamed from addons/cn.1ting.scraper/1ting.xml)0
-rw-r--r--addons/com.1ting.scraper/default.tbn (renamed from addons/cn.1ting.scraper/default.tbn)bin17047 -> 17047 bytes
-rw-r--r--addons/com.1ting.scraper/description.xml (renamed from addons/cn.1ting.scraper/description.xml)0
-rw-r--r--addons/org.xbmc.addons.dxspectrum/addon.xml17
-rw-r--r--addons/org.xbmc.addons.glspectrum/addon.xml15
-rwxr-xr-xaddons/org.xbmc.addons.glspectrum/opengl_spectrum.visbin25492 -> 0 bytes
-rwxr-xr-xaddons/org.xbmc.addons.waveform/Waveform.visbin19971 -> 0 bytes
-rw-r--r--addons/org.xbmc.core.vfs/core.c256
-rw-r--r--addons/org.xbmc.core.vfs/core.h128
-rw-r--r--addons/org.xbmc.core.vfs/plugin.xml15
-rw-r--r--addons/org.xbmc.core.vfs/vfsprovider.xsd27
11 files changed, 0 insertions, 458 deletions
diff --git a/addons/cn.1ting.scraper/1ting.xml b/addons/com.1ting.scraper/1ting.xml
index 050e8170dd..050e8170dd 100644
--- a/addons/cn.1ting.scraper/1ting.xml
+++ b/addons/com.1ting.scraper/1ting.xml
diff --git a/addons/cn.1ting.scraper/default.tbn b/addons/com.1ting.scraper/default.tbn
index 2c4c603e6f..2c4c603e6f 100644
--- a/addons/cn.1ting.scraper/default.tbn
+++ b/addons/com.1ting.scraper/default.tbn
Binary files differ
diff --git a/addons/cn.1ting.scraper/description.xml b/addons/com.1ting.scraper/description.xml
index 906f847b5d..906f847b5d 100644
--- a/addons/cn.1ting.scraper/description.xml
+++ b/addons/com.1ting.scraper/description.xml
diff --git a/addons/org.xbmc.addons.dxspectrum/addon.xml b/addons/org.xbmc.addons.dxspectrum/addon.xml
deleted file mode 100644
index 33ca2f446e..0000000000
--- a/addons/org.xbmc.addons.dxspectrum/addon.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addoninfo>
- <id>vis.dxspectrum</id>
- <type>visualization</type>
- <title>DirectX Spectrum</title>
- <librarywin32>Spectrum_win32dx.vis</librarywin32>
- <version>1.0.0</version>
- <platforms>
- <platform>windows</platform>
- </platforms>
- <minversion>
- <xbmc>28000</xbmc>
- </minversion>
- <summary>DirectX Visualization</summary>
- <description>Visualisation showing a rotating 3D Spectrum Analyzer</description>
- <author>TEAMXBMC</author>
-</addoninfo>
diff --git a/addons/org.xbmc.addons.glspectrum/addon.xml b/addons/org.xbmc.addons.glspectrum/addon.xml
deleted file mode 100644
index 01a2fc9f9a..0000000000
--- a/addons/org.xbmc.addons.glspectrum/addon.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<addon
- id="org.xbmc.addons.glspectrum"
- version="1.0.0"
- name="OpenGL Spectrum"
- summary="Visualisation showing a rotating 3D Spectrum Analyzer"
- provider-name="TEAMXBMC">
- <requires>
- <import addon="org.xbmc.core" version="28000"/>
- </requires>
- <extension
- point="org.xbmc.player.viz"
- name="OpenGL Spectrum"
- visualization="glspectrum"/>
-</addon>
diff --git a/addons/org.xbmc.addons.glspectrum/opengl_spectrum.vis b/addons/org.xbmc.addons.glspectrum/opengl_spectrum.vis
deleted file mode 100755
index 58b3e0ef53..0000000000
--- a/addons/org.xbmc.addons.glspectrum/opengl_spectrum.vis
+++ /dev/null
Binary files differ
diff --git a/addons/org.xbmc.addons.waveform/Waveform.vis b/addons/org.xbmc.addons.waveform/Waveform.vis
deleted file mode 100755
index e0d3c9efb7..0000000000
--- a/addons/org.xbmc.addons.waveform/Waveform.vis
+++ /dev/null
Binary files differ
diff --git a/addons/org.xbmc.core.vfs/core.c b/addons/org.xbmc.core.vfs/core.c
deleted file mode 100644
index 124de7babe..0000000000
--- a/addons/org.xbmc.core.vfs/core.c
+++ /dev/null
@@ -1,256 +0,0 @@
-/*
-* Copyright (C) 2010 Team XBMC
-* http://www.xbmc.org
-*
-* This Program is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 2, or (at your option)
-* any later version.
-*
-* This Program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with XBMC; see the file COPYING. If not, write to
-* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-* http://www.gnu.org/copyleft/gpl.html
-*
-*/
-
-#include "core.h"
-
-/* ------------------------------------------------------------------------
- * Data types
- * ----------------------------------------------------------------------*/
-
-
-/** Type for xbmc_vfs_ops structure */
-typedef struct xbmc_vfs_ops *vfsprovider_t;
-
-/** Plug-in instance data */
-struct plugin_data_t {
-
- /** The plug-in context */
- cp_context_t *ctx;
-
- /** Number of registered providers */
- int num_providers;
-
- /** An array of registered file system providers */
- registered_vfsprovider_t *providers;
-};
-
-typedef struct plugin_data_t plugin_data_t;
-
-/** Registered vfs addon info */
-struct registered_vfsprovider_t {
- const char *protocol;
- xbmc_vfs_ops *ops;
-};
-
-
-/* ------------------------------------------------------------------------
- * Internal functions
- * ----------------------------------------------------------------------*/
-
-/**
- * A run function for the core plug-in. In this case this function acts as
- * the application main function so there is no need for us to split the
- * execution into small steps. Rather, we execute the whole main loop at
- * once to make it simpler.
- */
-static int run(void *d) {
- plugin_data_t *data = d;
- char **argv;
- int argc;
- int i;
-
- // Go through all files listed as command arguments
- for (i = 1; argv[i] != NULL; i++) {
- int j;
- int classified = 0;
-
- // Print file name
- printf("%s: ", argv[i]);
-
- // Try providers in order of descending priority
- for (j = 0; !classified && j < data->num_providers; j++) {
- vfsprovider_t *cl
- = data->providers[j].provider;
-
- classified = cl->direxists(cl->data, argv[i]);
- }
-
- // Check if unknown file
- if (!classified) {
- fputs("unknown file type\n", stdout);
- }
- }
-
- // All done
- return 0;
-}
-
-/**
- * Creates a new plug-in instance.
- */
-static void *create(cp_context_t *ctx) {
- plugin_data_t *data = malloc(sizeof(plugin_data_t));
- if (data != NULL) {
- data->ctx = ctx;
- data->num_providers = 0;
- data->providers = NULL;
- } else {
- cp_log(ctx, CP_LOG_ERROR,
- "Insufficient memory for plug-in data.");
- }
- return data;
-}
-
-/**
- * Initializes and starts the plug-in.
- */
-static int start(void *d) {
- plugin_data_t *data = d;
- cp_extension_t **pr_exts;
- int num_pr_exts;
- cp_status_t status;
- int i;
-
- // Obtain list of registered file system providers
- pr_exts = cp_get_extensions_info(
- data->ctx,
- "org.xbmc.vfs.providers",
- &status,
- &num_pr_exts
- );
- if (pr_exts == NULL) {
-
- // An error occurred and framework logged it
- return status;
- }
-
- // Allocate memory for vfsprovider information, if any
- if (num_pr_exts > 0) {
- data->providers = malloc(
- num_pr_exts * sizeof(registered_vfsprovider_t)
- );
- if (data->providers == NULL) {
- // Memory allocation failed
- cp_log(data->ctx, CP_LOG_ERROR,
- "Insufficient memory for providers list.");
- return CP_ERR_RESOURCE;
- }
- }
-
- /* Resolve providers functions. This will implicitly start
- * plug-ins providing the file systems. */
- for (i = 0; i < num_pr_exts; i++) {
- const char *str;
- vfsprovider_t *pr;
-
- // Resolve provider data pointer
- str = cp_lookup_cfg_value(
- pr_exts[i]->configuration, "@provider");
- if (str == NULL) {
-
- // Provider symbol name is missing
- cp_log(data->ctx, CP_LOG_ERROR,
- "Ignoring vfsprovider without symbol name.");
- continue;
- }
- pr = cp_resolve_symbol(
- data->ctx,
- pr_exts[i]->plugin->identifier,
- str,
- NULL
- );
- if (pr == NULL) {
-
- // Could not resolve provider symbol
- cp_log(data->ctx, CP_LOG_ERROR,
- "Ignoring provider which could not be resolved.");
- continue;
- }
-
- // Get the protocol supported
- str = cp_lookup_cfg_value(
- pr_exts[i]->configuration, "@protocol"
- );
- if (str == NULL) {
-
- // provider is missing mandatory protocol
- cp_log(data->ctx, CP_LOG_ERROR,
- "Ignoring provider without protocol.");
- continue;
-
- // Add provider to the list of registered providers
- data->providers[data->num_providers].protocol = str;
- data->providers[data->num_providers].provider = pr;
- data->num_providers++;
- }
- }
-
- // Release extension information
- cp_release_info(data->ctx, pr_exts);
-
- // Register run function to do the real work
- cp_run_function(data->ctx, run);
-
- if (data->num_providers) {
- cp_log(data->ctx, CP_LOG_DEBUG,
- "VFS: NO providers %i");
- } else {
- cp_log(data->ctx, CP_LOG_DEBUG,
- "VFS: some providers %i");
- }
-
- // Successfully started
- return CP_OK;
-}
-
-/**
- * Releases resources from other plug-ins.
- */
-static void stop(void *d) {
- plugin_data_t *data = d;
- int i;
-
- if (data->providers != NULL) {
- for (i = 0; i < data->num_providers; i++) {
- cp_release_symbol(
- data->ctx, data->providers[i].provider
- );
- }
-
- // Free local data
- free(data->providers);
- data->providers = NULL;
- data->num_providers = 0;
- }
-}
-
-/**
- * Destroys a plug-in instance.
- */
-static void destroy(void *d) {
- free(d);
-}
-
-
-/* ------------------------------------------------------------------------
- * Exported runtime information
- * ----------------------------------------------------------------------*/
-
-/**
- * Plug-in runtime information for the framework. The name of this symbol
- * is stored in the plug-in descriptor.
- */
-CP_EXPORT cp_plugin_runtime_t xbmc_vfs_providers_core_funcs = {
- create,
- start,
- stop,
- destroy
-};
diff --git a/addons/org.xbmc.core.vfs/core.h b/addons/org.xbmc.core.vfs/core.h
deleted file mode 100644
index 7df8b28a8b..0000000000
--- a/addons/org.xbmc.core.vfs/core.h
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
-* Copyright (C) 2010 Team XBMC
-* http://www.xbmc.org
-*
-* This Program is free software; you can redistribute it and/or modify
-* it under the terms of the GNU General Public License as published by
-* the Free Software Foundation; either version 2, or (at your option)
-* any later version.
-*
-* This Program is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU General Public License for more details.
-*
-* You should have received a copy of the GNU General Public License
-* along with XBMC; see the file COPYING. If not, write to
-* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-* http://www.gnu.org/copyleft/gpl.html
-*
-*/
-
-#ifndef VFSPROVIDER_H
-#define VFSPROVIDER_H
-
-#include <fcntl.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <sys/statvfs.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/** Function to add an entry in a readdir() operation
- *
- * @param buf the buffer passed to the readdir() operation
- * @param name the file name of the directory entry
- * @param stat file attributes, can be NULL
- * @param off offset of the next entry or zero
- * @return 1 if buffer is full, zero otherwise
- */
-typedef int (*xbmc_vfs_fill_dir_t) (void *buf, const char *name,
- const struct stat *stbuf, off_t off);
-
-/**
- * VFS operations:
- *
- */
-struct xbmc_vfs_operations {
-
- /** Provider specific runtime data */
- void *data;
-
- /** Get file attributes */
- int (*stat) (const char *, struct stat *);
-
- /** Create a directory */
- int (*mkdir) (const char *, mode_t);
-
- /** Remove a directory */
- int (*rmdir) (const char *);
-
- /** Rename a file */
- int (*rename) (const char *, const char *);
-
- /** Change the size of a file */
- int (*truncate) (const char *, off_t);
-
- /** File open operation */
- int (*open) (const char *, struct fuse_file_info *);
-
- /** Read data from an open file */
- int (*read) (const char *, char *, size_t, off_t,
- struct fuse_file_info *);
-
- /** Check file access permissions */
- int (*access) (const char *, int);
-
- /** Write data to an open file */
- int (*write) (const char *, const char *, size_t, off_t,
- struct fuse_file_info *);
-
- /** Create and open a file */
- int (*create) (const char *, mode_t, struct fuse_file_info *);
-
- /** Change the size of an open file */
- int (*ftruncate) (const char *, off_t, struct fuse_file_info *);
-
- /** Get attributes from an open file */
- int (*fgetattr) (const char *, struct stat *, struct fuse_file_info *);
-
- /** Get file system statistics */
- int (*statfs) (const char *, struct statvfs *);
-
- /** Possibly flush cached data */
- int (*flush) (const char *, struct fuse_file_info *);
-
- /** Release an open file */
- int (*release) (const char *, struct fuse_file_info *);
-
- /** Synchronize file contents */
- int (*fsync) (const char *, int, struct fuse_file_info *);
-
- /** Set extended attributes */
- int (*setxattr) (const char *, const char *, const char *, size_t, int);
-
- /** Get extended attributes */
- int (*getxattr) (const char *, const char *, char *, size_t);
-
- /** List extended attributes */
- int (*listxattr) (const char *, char *, size_t);
-
- /** Remove extended attributes */
- int (*removexattr) (const char *, const char *);
-
- /** Open directory */
- int (*opendir) (const char *, struct fuse_file_info *);
-
- /** Read directory */
- int (*readdir) (const char *, void *, fuse_fill_dir_t, off_t,
- struct fuse_file_info *);
-
- /** Release directory */
- int (*releasedir) (const char *, struct fuse_file_info *);
-
-};
-
-#endif /*VFSPRIVIDER_H*/
diff --git a/addons/org.xbmc.core.vfs/plugin.xml b/addons/org.xbmc.core.vfs/plugin.xml
deleted file mode 100644
index 3f9f311f39..0000000000
--- a/addons/org.xbmc.core.vfs/plugin.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<plugin
- id="org.xbmc.core.vfs"
- version="0.1"
- name="Core logic for vfsprovider"
- provider-name="TEAMXBMC">
- <requires>
- <c-pluff version="0.1"/>
- </requires>
- <runtime library="libxbmcvfs" funcs="xbmc_vfs_core_funcs"/>
- <extension-point
- id="provider"
- name="File system provider"
- schema="vfsprovider.xsd"/>
-</plugin>
diff --git a/addons/org.xbmc.core.vfs/vfsprovider.xsd b/addons/org.xbmc.core.vfs/vfsprovider.xsd
deleted file mode 100644
index d51d3d7bf7..0000000000
--- a/addons/org.xbmc.core.vfs/vfsprovider.xsd
+++ /dev/null
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="extension">
- <xs:complexType>
- <xs:attribute name="point" type="xs:string" use="required"/>
- <xs:attribute name="id" type="simpleIdentifier"/>
- <xs:attribute name="name" type="xs:string"/>
-
- <!--
- * The provider is the name of a symbol pointing to
- * vfsprovider_t strucutre. Protocol determines the order
- * the file classifiers are tried. Cached states whether XBMC
- * should cache the file access.
- -->
- <xs:attribute name="provider" type="xs:string" use="required"/>
- <xs:attribute name="protocol" type="xs:string" use="required"/>
- <xs:attribute name="cached" type="xs:boolean" use="required"/>
-
- </xs:complexType>
- </xs:element>
- <xs:simpleType name="simpleIdentifier">
- <xs:restriction base="xs:string">
- <xs:pattern value="[^.]+"/>
- </xs:restriction>
- </xs:simpleType>
-</xs:schema>