db/Configured: store database file in cache directory

Add class Context which wraps the Android/Java Context class and add a
JNI wrapper for method Context.getCacheDir().
This commit is contained in:
Max Kellermann
2014-03-01 20:20:29 +01:00
parent 5268f55344
commit b8f1850bba
8 changed files with 122 additions and 4 deletions

@@ -21,8 +21,13 @@
#define MPD_MAIN_HXX
class EventLoop;
class Context;
struct Instance;
#ifdef ANDROID
extern Context *context;
#endif
extern Instance *instance;
#ifndef ANDROID