From 5268f55344229f70e3565f63671eb582eaff733f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Mar 2014 20:53:39 +0100 Subject: java/File: add method ToAbsolutePath() returning AllocatedPath --- src/android/Environment.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/android/Environment.hxx') 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 -#include + +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 -- cgit v1.2.3