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
b29e49e6
Commit
b29e49e6
authored
Dec 12, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
module_Put: releases a reference to a module
parent
f44ed771
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
include/vlc_modules.h
include/vlc_modules.h
+3
-1
src/libvlc.sym
src/libvlc.sym
+2
-0
src/modules/modules.c
src/modules/modules.c
+11
-1
No files found.
include/vlc_modules.h
View file @
b29e49e6
...
...
@@ -25,7 +25,7 @@
#error You are not libvlc or one of its plugins. You cannot include this file
#endif
#if
1
#if
0
/* FIXME: scheduled for privatization */
#define MODULE_SHORTCUT_MAX 50
...
...
@@ -107,6 +107,8 @@ VLC_EXPORT( vlc_bool_t, __module_Exists, ( vlc_object_t *, const char * ) );
/* Use only if you know what you're doing... */
#define module_FindName(a,b) __module_FindName(VLC_OBJECT(a),b)
VLC_EXPORT
(
module_t
*
,
__module_FindName
,
(
vlc_object_t
*
,
const
char
*
)
);
VLC_EXPORT
(
void
,
module_Put
,
(
module_t
*
module
)
);
/* Return a NULL terminated array with the names of the modules that have a
* certain capability.
...
...
src/libvlc.sym
View file @
b29e49e6
...
...
@@ -176,6 +176,8 @@ __intf_UserYesNo
IsUTF8
LocaleFree
mdate
__module_FindName
module_Put
__module_Exists
__module_Need
__module_Unneed
...
...
src/modules/modules.c
View file @
b29e49e6
...
...
@@ -709,6 +709,16 @@ module_t *__module_FindName( vlc_object_t *p_this, const char * psz_name )
return
NULL
;
}
/*****************************************************************************
* module_Put: release a module_t pointer from module_FindName().
*****************************************************************************/
void
module_Put
(
module_t
*
module
)
{
vlc_object_release
(
module
);
}
/*****************************************************************************
* module_Exists: tell if a module exists.
*****************************************************************************
...
...
@@ -719,7 +729,7 @@ vlc_bool_t __module_Exists( vlc_object_t *p_this, const char * psz_name )
module_t
*
p_module
=
__module_FindName
(
p_this
,
psz_name
);
if
(
p_module
)
{
vlc_object_release
(
p_module
);
module_Put
(
p_module
);
return
VLC_TRUE
;
}
else
...
...
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