Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
531
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
1bb8b13e
Commit
1bb8b13e
authored
5 years ago
by
Thomas Guillem
Browse files
Options
Downloads
Patches
Plain Diff
LibVLC: add majorVersion() method
Return the VLC major version, 3 or 4 for now.
parent
415cf6d2
No related branches found
No related tags found
1 merge request
!395
Libvlc4 fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libvlc/jni/libvlcjni.c
+5
-0
5 additions, 0 deletions
libvlc/jni/libvlcjni.c
libvlc/src/org/videolan/libvlc/LibVLC.java
+7
-0
7 additions, 0 deletions
libvlc/src/org/videolan/libvlc/LibVLC.java
with
12 additions
and
0 deletions
libvlc/jni/libvlcjni.c
+
5
−
0
View file @
1bb8b13e
...
...
@@ -450,6 +450,11 @@ jstring Java_org_videolan_libvlc_LibVLC_version(JNIEnv* env, jobject thiz)
return
(
*
env
)
->
NewStringUTF
(
env
,
libvlc_get_version
());
}
jint
Java_org_videolan_libvlc_LibVLC_majorVersion
(
JNIEnv
*
env
,
jobject
thiz
)
{
return
atoi
(
libvlc_get_version
());
}
jstring
Java_org_videolan_libvlc_LibVLC_compiler
(
JNIEnv
*
env
,
jobject
thiz
)
{
return
(
*
env
)
->
NewStringUTF
(
env
,
libvlc_get_compiler
());
...
...
This diff is collapsed.
Click to expand it.
libvlc/src/org/videolan/libvlc/LibVLC.java
+
7
−
0
View file @
1bb8b13e
...
...
@@ -97,6 +97,13 @@ public class LibVLC extends VLCObject<ILibVLC.Event> implements ILibVLC {
*/
public
static
native
String
version
();
/**
* Get the libVLC major version
*
* @return the libVLC major version, always >= 3
*/
public
static
native
int
majorVersion
();
/**
* Get the libVLC compiler
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment