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
e769bca0
Commit
e769bca0
authored
Feb 26, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doxygen documentation
parent
7f1f444c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
20 deletions
+28
-20
src/modules/os.c
src/modules/os.c
+28
-20
No files found.
src/modules/os.c
View file @
e769bca0
...
@@ -75,14 +75,15 @@ static void * GetSymbol ( module_handle_t, const char * );
...
@@ -75,14 +75,15 @@ static void * GetSymbol ( module_handle_t, const char * );
static
char
*
GetWindowsError
(
void
);
static
char
*
GetWindowsError
(
void
);
#endif
#endif
/*****************************************************************************
/**
* module_Call: call an entry point.
* module Call
*****************************************************************************
*
* This function calls a symbol given its name and a module structure. The
* Call a symbol given its name and a module structure. The symbol MUST
* symbol MUST refer to a function returning int and taking a module_t* as
* refer to a function returning int and taking a module_t* as an argument.
* an argument.
* \param p_module the modules
*****************************************************************************/
* \return 0 if it pass and -1 in case of a failure
int
module_Call
(
module_t
*
p_module
)
*/
int
module_Call
(
module_t
*
p_module
)
{
{
static
const
char
psz_name
[]
=
"vlc_entry"
MODULE_SUFFIX
;
static
const
char
psz_name
[]
=
"vlc_entry"
MODULE_SUFFIX
;
int
(
*
pf_symbol
)
(
module_t
*
p_module
);
int
(
*
pf_symbol
)
(
module_t
*
p_module
);
...
@@ -126,12 +127,14 @@ int module_Call( module_t * p_module )
...
@@ -126,12 +127,14 @@ int module_Call( module_t * p_module )
return
0
;
return
0
;
}
}
/*****************************************************************************
/**
* module_Load: loads a dynamic library
* Load a dynamically linked library using a system dependant method.
*****************************************************************************
*
* This function loads a dynamically linked library using a system dependant
* \param p_this vlc object
* method. Will return 0 on success as well as the module handle.
* \param psz_file library file
*****************************************************************************/
* \param p_handle the module handle returned
* \return 0 on success as well as the module handle.
*/
int
module_Load
(
vlc_object_t
*
p_this
,
const
char
*
psz_file
,
int
module_Load
(
vlc_object_t
*
p_this
,
const
char
*
psz_file
,
module_handle_t
*
p_handle
)
module_handle_t
*
p_handle
)
{
{
...
@@ -233,13 +236,15 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
...
@@ -233,13 +236,15 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
return
0
;
return
0
;
}
}
/**
***************************************************************************
/**
* CloseModule: unload a dynamic library
* CloseModule: unload a dynamic library
*
****************************************************************************
*
* This function unloads a previously opened dynamically linked library
* This function unloads a previously opened dynamically linked library
* using a system dependant method. No return value is taken in consideration,
* using a system dependant method. No return value is taken in consideration,
* since some libraries sometimes refuse to close properly.
* since some libraries sometimes refuse to close properly.
*****************************************************************************/
* \param handle handle of the library
* \return nothing
*/
void
module_Unload
(
module_handle_t
handle
)
void
module_Unload
(
module_handle_t
handle
)
{
{
#if defined(HAVE_DL_DYLD)
#if defined(HAVE_DL_DYLD)
...
@@ -263,13 +268,16 @@ void module_Unload( module_handle_t handle )
...
@@ -263,13 +268,16 @@ void module_Unload( module_handle_t handle )
return
;
return
;
}
}
/**
***************************************************************************
/**
* GetSymbol: get a symbol from a dynamic library
* GetSymbol: get a symbol from a dynamic library
*
****************************************************************************
*
* This function queries a loaded library for a symbol specified in a
* This function queries a loaded library for a symbol specified in a
* string, and returns a pointer to it. We don't check for dlerror() or
* string, and returns a pointer to it. We don't check for dlerror() or
* similar functions, since we want a non-NULL symbol anyway.
* similar functions, since we want a non-NULL symbol anyway.
*****************************************************************************/
* \param handle handle to the module
* \param psz_function function name
* \return nothing
*/
static
void
*
_module_getsymbol
(
module_handle_t
,
const
char
*
);
static
void
*
_module_getsymbol
(
module_handle_t
,
const
char
*
);
static
void
*
GetSymbol
(
module_handle_t
handle
,
const
char
*
psz_function
)
static
void
*
GetSymbol
(
module_handle_t
handle
,
const
char
*
psz_function
)
...
...
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