Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c0a2390f
Commit
c0a2390f
authored
Oct 04, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android: add libvlc specific file
parent
3902c186
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
0 deletions
+74
-0
src/Makefile.am
src/Makefile.am
+17
-0
src/android/dirs.c
src/android/dirs.c
+57
-0
No files found.
src/Makefile.am
View file @
c0a2390f
...
...
@@ -203,6 +203,7 @@ libvlc_win32_rc.$(OBJEXT): libvlc_win32_rc.rc
EXTRA_libvlccore_la_SOURCES
=
\
$(SOURCES_libvlc_darwin)
\
$(SOURCES_libvlc_android)
\
$(SOURCES_libvlc_linux)
\
$(SOURCES_libvlc_win32)
\
$(SOURCES_libvlc_os2)
\
...
...
@@ -214,6 +215,9 @@ EXTRA_libvlccore_la_SOURCES = \
if
HAVE_DARWIN
libvlccore_la_SOURCES
+=
$(SOURCES_libvlc_darwin)
else
if
HAVE_ANDROID
libvlccore_la_SOURCES
+=
$(SOURCES_libvlc_android)
else
if
HAVE_LINUX
libvlccore_la_SOURCES
+=
$(SOURCES_libvlc_linux)
else
...
...
@@ -232,6 +236,7 @@ endif
endif
endif
endif
endif
if
BUILD_HTTPD
libvlccore_la_SOURCES
+=
$(SOURCES_libvlc_httpd)
endif
...
...
@@ -252,6 +257,18 @@ SOURCES_libvlc_darwin = \
posix/rand.c
\
$(NULL)
SOURCES_libvlc_android
=
\
android/dirs.c
\
posix/filesystem.c
\
posix/plugin.c
\
posix/thread.c
\
posix/timer.c
\
posix/linux_cpu.c
\
posix/linux_specific.c
\
posix/specific.c
\
posix/rand.c
\
$(NULL)
SOURCES_libvlc_linux
=
\
posix/dirs.c
\
posix/filesystem.c
\
...
...
src/android/dirs.c
0 → 100644
View file @
c0a2390f
/*****************************************************************************
* dirs.c: Android directories configuration
*****************************************************************************
* Copyright © 2012 Rafaël Carré
*
* Authors: Rafaël Carré <funman@videolanorg>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include <vlc_common.h>
#include "config/configuration.h"
#include <string.h>
char
*
config_GetUserDir
(
vlc_userdir_t
type
)
{
switch
(
type
)
{
case
VLC_DATA_DIR
:
return
strdup
(
"/sdcard/Android/data/org.videolan.vlc"
);
case
VLC_CACHE_DIR
:
return
strdup
(
"/sdcard/Android/data/org.videolan.vlc/cache"
);
case
VLC_HOME_DIR
:
case
VLC_CONFIG_DIR
:
return
NULL
;
case
VLC_DESKTOP_DIR
:
case
VLC_DOWNLOAD_DIR
:
case
VLC_TEMPLATES_DIR
:
case
VLC_PUBLICSHARE_DIR
:
case
VLC_DOCUMENTS_DIR
:
case
VLC_MUSIC_DIR
:
case
VLC_PICTURES_DIR
:
case
VLC_VIDEOS_DIR
:
return
NULL
;
}
return
NULL
;
}
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