Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6db16f08
Commit
6db16f08
authored
Mar 30, 2008
by
Tanguy Krotoff
Committed by
Pierre d'Herbemont
Mar 30, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libvlc: add functions libvlc_get_version() and others
Signed-off-by:
Pierre d'Herbemont
<
pdherbemont@videolan.org
>
parent
ef81e665
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
include/vlc/libvlc.h
include/vlc/libvlc.h
+27
-0
src/control/core.c
src/control/core.c
+16
-0
No files found.
include/vlc/libvlc.h
View file @
6db16f08
...
@@ -145,6 +145,33 @@ VLC_PUBLIC_API void libvlc_release( libvlc_instance_t * );
...
@@ -145,6 +145,33 @@ VLC_PUBLIC_API void libvlc_release( libvlc_instance_t * );
*/
*/
VLC_PUBLIC_API
void
libvlc_retain
(
libvlc_instance_t
*
);
VLC_PUBLIC_API
void
libvlc_retain
(
libvlc_instance_t
*
);
/**
* Retrieve libvlc version.
*
* Example: "0.9.0-git Grishenko"
*
* \return a string containing the libvlc version
*/
VLC_PUBLIC_API
const
char
*
libvlc_get_version
();
/**
* Retrieve libvlc compiler version.
*
* Example: "gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu6)"
*
* \return a string containing the libvlc compiler version
*/
VLC_PUBLIC_API
const
char
*
libvlc_get_compiler
();
/**
* Retrieve libvlc changeset.
*
* Example: "aa9bce0bc4"
*
* \return a string containing the libvlc changeset
*/
VLC_PUBLIC_API
const
char
*
libvlc_get_changeset
();
/** @}*/
/** @}*/
/*****************************************************************************
/*****************************************************************************
...
...
src/control/core.c
View file @
6db16f08
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
* along with this program; if not, write to the Free Software
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
*****************************************************************************/
#include "libvlc_internal.h"
#include "libvlc_internal.h"
#include <vlc/libvlc.h>
#include <vlc/libvlc.h>
...
@@ -173,3 +174,18 @@ int libvlc_get_vlc_id( libvlc_instance_t *p_instance )
...
@@ -173,3 +174,18 @@ int libvlc_get_vlc_id( libvlc_instance_t *p_instance )
{
{
return
p_instance
->
p_libvlc_int
->
i_object_id
;
return
p_instance
->
p_libvlc_int
->
i_object_id
;
}
}
const
char
*
libvlc_get_version
()
{
return
VLC_Version
();
}
const
char
*
libvlc_get_compiler
()
{
return
VLC_Compiler
();
}
const
char
*
libvlc_get_changeset
()
{
return
VLC_Changeset
();
}
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