Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0be3f55c
Commit
0be3f55c
authored
Jul 23, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addons: add missing intf and meta categories
parent
8840af09
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
include/vlc_addons.h
include/vlc_addons.h
+2
-0
modules/misc/addons/fsstorage.c
modules/misc/addons/fsstorage.c
+9
-1
modules/misc/addons/xmlreading.h
modules/misc/addons/xmlreading.h
+8
-0
No files found.
include/vlc_addons.h
View file @
0be3f55c
...
...
@@ -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
;
...
...
modules/misc/addons/fsstorage.c
View file @
0be3f55c
...
...
@@ -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
;
...
...
modules/misc/addons/xmlreading.h
View file @
0be3f55c
...
...
@@ -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"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment