]> git.sesse.net Git - vlc/commitdiff
addons: add missing intf and meta categories
authorFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 23 Jul 2014 02:34:09 +0000 (11:34 +0900)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Wed, 23 Jul 2014 02:34:09 +0000 (11:34 +0900)
include/vlc_addons.h
modules/misc/addons/fsstorage.c
modules/misc/addons/xmlreading.h

index 03aa97fd75ac9a1f0ea225ae6183be4cca53c9fe..92d5bc6e12effdb66f929699ff397c32b83c805a 100644 (file)
@@ -36,6 +36,8 @@ typedef enum addon_type_t
     ADDON_SERVICE_DISCOVERY,
     ADDON_SKIN2,
     ADDON_PLUGIN,
+    ADDON_INTERFACE,
+    ADDON_META,
     ADDON_OTHER
 } addon_type_t;
 
index 48f8c8cb8a09a3f56788d34724901a4edf765b97..717050c0ce41c48c9b801f38913b9a19cf505dfe 100644 (file)
@@ -58,6 +58,8 @@ static struct
     { ADDON_EXTENSION,           ADDONS_SCRIPTS_DIR DIR_SEP "extensions" },
     { ADDON_PLAYLIST_PARSER,     ADDONS_SCRIPTS_DIR DIR_SEP "playlist" },
     { ADDON_SERVICE_DISCOVERY,   ADDONS_SCRIPTS_DIR DIR_SEP "sd" },
+    { ADDON_INTERFACE,           ADDONS_SCRIPTS_DIR DIR_SEP "intf" },
+    { ADDON_META,                ADDONS_SCRIPTS_DIR DIR_SEP "meta" },
     { ADDON_SKIN2,               ADDONS_DIR DIR_SEP "skins2" },
 };
 
@@ -319,7 +321,9 @@ static int List( addons_finder_t *p_finder )
     addon_type_t types[] = {
         ADDON_EXTENSION,
         ADDON_PLAYLIST_PARSER,
-        ADDON_SERVICE_DISCOVERY
+        ADDON_SERVICE_DISCOVERY,
+        ADDON_INTERFACE,
+        ADDON_META,
     };
     unsigned int i_type = 0;
 
@@ -439,6 +443,8 @@ static int InstallAllFiles( addons_storage_t *p_this, const addon_entry_t *p_ent
         case ADDON_EXTENSION:
         case ADDON_PLAYLIST_PARSER:
         case ADDON_SERVICE_DISCOVERY:
+        case ADDON_INTERFACE:
+        case ADDON_META:
         case ADDON_SKIN2:
         {
             if ( strstr( p_file->psz_filename, ".." ) )
@@ -859,6 +865,8 @@ static int Remove( addons_storage_t *p_storage, addon_entry_t *p_entry )
         case ADDON_EXTENSION:
         case ADDON_PLAYLIST_PARSER:
         case ADDON_SERVICE_DISCOVERY:
+        case ADDON_INTERFACE:
+        case ADDON_META:
         case ADDON_SKIN2:
         {
             char *psz_dest;
index 159d903b26a65444c4b84dd4114ea3a47e965a0c..0f047299e655e9c4339245e0f046e40e8feb08d0 100644 (file)
@@ -55,6 +55,10 @@ static inline int ReadType( const char *value )
         return ADDON_SERVICE_DISCOVERY;
     else if ( !strcmp( value, "extension" ) )
         return ADDON_EXTENSION;
+    else if ( !strcmp( value, "interface" ) )
+        return ADDON_INTERFACE;
+    else if ( !strcmp( value, "meta" ) )
+        return ADDON_META;
     else
         return ADDON_UNKNOWN;
 }
@@ -71,6 +75,10 @@ static inline const char * getTypePsz( int i_type )
         return "discovery";
     case ADDON_EXTENSION:
         return "extension";
+    case ADDON_INTERFACE:
+        return "interface";
+    case ADDON_META:
+        return "meta";
     case ADDON_UNKNOWN:
     default:
         return "unknown";