X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fandroid%2Fmainthread.h;h=609300fb85a8a4db64e680c9f4dfd7f754d78bc4;hp=68da6c4bc9133de65366f1a9ebe2bf72518e804b;hb=309596c10d86acd165b2ffbe5dcfa79e157bec91;hpb=53ce154a2e446e82815034cb65a81b6784a767f5 diff --git a/source/core/android/mainthread.h b/source/core/android/mainthread.h index 68da6c4..609300f 100644 --- a/source/core/android/mainthread.h +++ b/source/core/android/mainthread.h @@ -3,6 +3,7 @@ #include #include +#include #include "mutex.h" #include "thread.h" @@ -20,6 +21,8 @@ public: private: ANativeActivity *activity; + AAssetManager *asset_manager; + FS::Path int_data_path; bool starting_up; Mutex startup_mutex; @@ -31,6 +34,12 @@ public: void wait_for_app_created(); void resume_startup(); + JavaVM *get_java_vm() const; + AAssetManager *get_asset_manager() const { return asset_manager; } + const FS::Path &get_internal_data_path() const { return int_data_path; } + + void set_window_flags(unsigned, unsigned); + private: virtual void main(); @@ -41,6 +50,7 @@ private: static void native_window_destroyed(ANativeActivity *, ANativeWindow *); static void input_queue_created(ANativeActivity *, AInputQueue *); static void input_queue_destroyed(ANativeActivity *, AInputQueue *); + static void end_process(ANativeActivity *); }; } // namespace Android