aboutsummaryrefslogtreecommitdiffstats
path: root/src/android/Environment.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-03-01 20:53:39 +0100
committerMax Kellermann <max@duempel.org>2014-03-01 20:53:39 +0100
commit5268f55344229f70e3565f63671eb582eaff733f (patch)
treef16f39a0847ea56b03db8892c3368251e4f2b3bf /src/android/Environment.hxx
parente44c9a000d477ba9fd24bd77ab4b529001dd3bde (diff)
downloadmpd-5268f55344229f70e3565f63671eb582eaff733f.tar.gz
mpd-5268f55344229f70e3565f63671eb582eaff733f.tar.xz
mpd-5268f55344229f70e3565f63671eb582eaff733f.zip
java/File: add method ToAbsolutePath() returning AllocatedPath
Diffstat (limited to 'src/android/Environment.hxx')
-rw-r--r--src/android/Environment.hxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/android/Environment.hxx b/src/android/Environment.hxx
index 054ffc6f2..5a54ea361 100644
--- a/src/android/Environment.hxx
+++ b/src/android/Environment.hxx
@@ -20,8 +20,11 @@
#ifndef MPD_ANDROID_ENVIRONMENT_HXX
#define MPD_ANDROID_ENVIRONMENT_HXX
+#include "Compiler.h"
+
#include <jni.h>
-#include <stddef.h>
+
+class AllocatedPath;
namespace Environment {
void Initialise(JNIEnv *env);
@@ -30,10 +33,11 @@ namespace Environment {
/**
* Determine the mount point of the external SD card.
*/
- char *getExternalStorageDirectory(char *buffer, size_t max_size);
+ gcc_pure
+ AllocatedPath getExternalStorageDirectory();
- char *getExternalStoragePublicDirectory(char *buffer, size_t max_size,
- const char *type);
+ gcc_pure
+ AllocatedPath getExternalStoragePublicDirectory(const char *type);
};
#endif