Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
5b7c5b66
Commit
5b7c5b66
authored
Jan 28, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep track of plugin text domain
parent
46c51df5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
src/modules/cache.c
src/modules/cache.c
+5
-1
src/modules/entry.c
src/modules/entry.c
+3
-2
src/modules/modules.c
src/modules/modules.c
+2
-0
src/modules/modules.h
src/modules/modules.h
+1
-0
No files found.
src/modules/cache.c
View file @
5b7c5b66
...
@@ -58,7 +58,7 @@ static int CacheLoadConfig ( module_t *, FILE * );
...
@@ -58,7 +58,7 @@ static int CacheLoadConfig ( module_t *, FILE * );
/* Sub-version number
/* Sub-version number
* (only used to avoid breakage in dev version when cache structure changes) */
* (only used to avoid breakage in dev version when cache structure changes) */
#define CACHE_SUBVERSION_NUM
9
#define CACHE_SUBVERSION_NUM
10
/* Format string for the cache filename */
/* Format string for the cache filename */
#define CACHENAME_FORMAT \
#define CACHENAME_FORMAT \
...
@@ -256,6 +256,7 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
...
@@ -256,6 +256,7 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
goto
error
;
goto
error
;
LOAD_STRING
(
pp_cache
[
i
]
->
p_module
->
psz_filename
);
LOAD_STRING
(
pp_cache
[
i
]
->
p_module
->
psz_filename
);
LOAD_STRING
(
pp_cache
[
i
]
->
p_module
->
domain
);
LOAD_IMMEDIATE
(
i_submodules
);
LOAD_IMMEDIATE
(
i_submodules
);
...
@@ -274,6 +275,7 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
...
@@ -274,6 +275,7 @@ void CacheLoad( vlc_object_t *p_this, module_bank_t *p_bank, bool b_delete )
LOAD_STRING
(
p_module
->
psz_capability
);
LOAD_STRING
(
p_module
->
psz_capability
);
LOAD_IMMEDIATE
(
p_module
->
i_score
);
LOAD_IMMEDIATE
(
p_module
->
i_score
);
LOAD_IMMEDIATE
(
p_module
->
b_unloadable
);
LOAD_IMMEDIATE
(
p_module
->
b_unloadable
);
LOAD_STRING
(
p_module
->
domain
);
}
}
}
}
...
@@ -549,6 +551,7 @@ static int CacheSaveBank (FILE *file, module_bank_t *p_bank)
...
@@ -549,6 +551,7 @@ static int CacheSaveBank (FILE *file, module_bank_t *p_bank)
goto
error
;
goto
error
;
SAVE_STRING
(
pp_cache
[
i
]
->
p_module
->
psz_filename
);
SAVE_STRING
(
pp_cache
[
i
]
->
p_module
->
psz_filename
);
SAVE_STRING
(
pp_cache
[
i
]
->
p_module
->
domain
);
i_submodule
=
pp_cache
[
i
]
->
p_module
->
submodule_count
;
i_submodule
=
pp_cache
[
i
]
->
p_module
->
submodule_count
;
SAVE_IMMEDIATE
(
i_submodule
);
SAVE_IMMEDIATE
(
i_submodule
);
...
@@ -585,6 +588,7 @@ static int CacheSaveSubmodule( FILE *file, module_t *p_module )
...
@@ -585,6 +588,7 @@ static int CacheSaveSubmodule( FILE *file, module_t *p_module )
SAVE_STRING
(
p_module
->
psz_capability
);
SAVE_STRING
(
p_module
->
psz_capability
);
SAVE_IMMEDIATE
(
p_module
->
i_score
);
SAVE_IMMEDIATE
(
p_module
->
i_score
);
SAVE_IMMEDIATE
(
p_module
->
b_unloadable
);
SAVE_IMMEDIATE
(
p_module
->
b_unloadable
);
SAVE_STRING
(
p_module
->
domain
);
return
0
;
return
0
;
error:
error:
...
...
src/modules/entry.c
View file @
5b7c5b66
...
@@ -73,6 +73,7 @@ module_t *vlc_module_create (vlc_object_t *obj)
...
@@ -73,6 +73,7 @@ module_t *vlc_module_create (vlc_object_t *obj)
module
->
i_bool_items
=
0
;
module
->
i_bool_items
=
0
;
/*module->handle = garbage */
/*module->handle = garbage */
module
->
psz_filename
=
NULL
;
module
->
psz_filename
=
NULL
;
module
->
domain
=
NULL
;
module
->
b_builtin
=
false
;
module
->
b_builtin
=
false
;
module
->
b_loaded
=
false
;
module
->
b_loaded
=
false
;
...
@@ -114,6 +115,7 @@ module_t *vlc_submodule_create (module_t *module)
...
@@ -114,6 +115,7 @@ module_t *vlc_submodule_create (module_t *module)
submodule
->
psz_capability
=
module
->
psz_capability
;
submodule
->
psz_capability
=
module
->
psz_capability
;
submodule
->
i_score
=
module
->
i_score
;
submodule
->
i_score
=
module
->
i_score
;
submodule
->
b_submodule
=
true
;
submodule
->
b_submodule
=
true
;
submodule
->
domain
=
module
->
domain
;
return
submodule
;
return
submodule
;
}
}
...
@@ -228,8 +230,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
...
@@ -228,8 +230,7 @@ int vlc_plugin_set (module_t *module, module_config_t *item, int propid, ...)
break
;
break
;
case
VLC_MODULE_TEXTDOMAIN
:
case
VLC_MODULE_TEXTDOMAIN
:
(
void
)
va_arg
(
ap
,
const
char
*
);
module
->
domain
=
va_arg
(
ap
,
char
*
);
/* FIXME: not implemented */
break
;
break
;
case
VLC_CONFIG_NAME
:
case
VLC_CONFIG_NAME
:
...
...
src/modules/modules.c
View file @
5b7c5b66
...
@@ -1063,6 +1063,7 @@ static void DupModule( module_t *p_module )
...
@@ -1063,6 +1063,7 @@ static void DupModule( module_t *p_module )
p_module
->
psz_longname
=
strdup
(
p_module
->
psz_longname
);
p_module
->
psz_longname
=
strdup
(
p_module
->
psz_longname
);
p_module
->
psz_help
=
p_module
->
psz_help
?
strdup
(
p_module
->
psz_help
)
p_module
->
psz_help
=
p_module
->
psz_help
?
strdup
(
p_module
->
psz_help
)
:
NULL
;
:
NULL
;
p_module
->
domain
=
p_module
->
domain
?
strdup
(
p_module
->
domain
)
:
NULL
;
for
(
module_t
*
subm
=
p_module
->
submodule
;
subm
;
subm
=
subm
->
next
)
for
(
module_t
*
subm
=
p_module
->
submodule
;
subm
;
subm
=
subm
->
next
)
DupModule
(
subm
);
DupModule
(
subm
);
...
@@ -1089,6 +1090,7 @@ static void UndupModule( module_t *p_module )
...
@@ -1089,6 +1090,7 @@ static void UndupModule( module_t *p_module )
FREENULL
(
p_module
->
psz_shortname
);
FREENULL
(
p_module
->
psz_shortname
);
free
(
p_module
->
psz_longname
);
free
(
p_module
->
psz_longname
);
FREENULL
(
p_module
->
psz_help
);
FREENULL
(
p_module
->
psz_help
);
free
(
p_module
->
domain
);
}
}
#endif
/* HAVE_DYNAMIC_PLUGINS */
#endif
/* HAVE_DYNAMIC_PLUGINS */
...
...
src/modules/modules.h
View file @
5b7c5b66
...
@@ -133,6 +133,7 @@ struct module_t
...
@@ -133,6 +133,7 @@ struct module_t
/* Plugin-specific stuff */
/* Plugin-specific stuff */
module_handle_t
handle
;
/* Unique handle */
module_handle_t
handle
;
/* Unique handle */
char
*
psz_filename
;
/* Module filename */
char
*
psz_filename
;
/* Module filename */
char
*
domain
;
/* gettext domain */
bool
b_builtin
;
/* Set to true if the module is built in */
bool
b_builtin
;
/* Set to true if the module is built in */
bool
b_loaded
;
/* Set to true if the dll is loaded */
bool
b_loaded
;
/* Set to true if the dll is loaded */
...
...
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