diff options
| author | Andrea Corallo | 2024-02-28 20:47:57 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2024-02-28 20:47:57 +0100 |
| commit | 1fbe56c32761efdc8d268df80a97a9102d00e109 (patch) | |
| tree | 8d8e76c8ae43c79ef9d76b0f97c12607567664b9 /src/android.h | |
| parent | 6de60f33ed5cc438e20400aee83e1e2032773811 (diff) | |
| parent | 05195e129fc933db32c9e08a155a94bfa4d75b54 (diff) | |
| download | emacs-1fbe56c32761efdc8d268df80a97a9102d00e109.tar.gz emacs-1fbe56c32761efdc8d268df80a97a9102d00e109.zip | |
Merge remote-tracking branch 'origin/master' into 'feature/type-hierarchy'
Diffstat (limited to 'src/android.h')
| -rw-r--r-- | src/android.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/android.h b/src/android.h index 2f5f32037c5..e1834cebf68 100644 --- a/src/android.h +++ b/src/android.h | |||
| @@ -24,6 +24,8 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 24 | a table of function pointers. */ | 24 | a table of function pointers. */ |
| 25 | 25 | ||
| 26 | #ifndef _ANDROID_H_ | 26 | #ifndef _ANDROID_H_ |
| 27 | #define _ANDROID_H_ | ||
| 28 | |||
| 27 | #ifndef ANDROID_STUBIFY | 29 | #ifndef ANDROID_STUBIFY |
| 28 | #include <jni.h> | 30 | #include <jni.h> |
| 29 | #include <pwd.h> | 31 | #include <pwd.h> |
| @@ -103,6 +105,7 @@ extern int android_get_screen_height (void); | |||
| 103 | extern int android_get_mm_width (void); | 105 | extern int android_get_mm_width (void); |
| 104 | extern int android_get_mm_height (void); | 106 | extern int android_get_mm_height (void); |
| 105 | extern bool android_detect_mouse (void); | 107 | extern bool android_detect_mouse (void); |
| 108 | extern bool android_detect_keyboard (void); | ||
| 106 | 109 | ||
| 107 | extern void android_set_dont_focus_on_map (android_window, bool); | 110 | extern void android_set_dont_focus_on_map (android_window, bool); |
| 108 | extern void android_set_dont_accept_focus (android_window, bool); | 111 | extern void android_set_dont_accept_focus (android_window, bool); |
| @@ -225,6 +228,7 @@ extern void android_display_toast (const char *); | |||
| 225 | 228 | ||
| 226 | /* Event loop functions. */ | 229 | /* Event loop functions. */ |
| 227 | 230 | ||
| 231 | extern void android_check_query (void); | ||
| 228 | extern void android_check_query_urgent (void); | 232 | extern void android_check_query_urgent (void); |
| 229 | extern int android_run_in_emacs_thread (void (*) (void *), void *); | 233 | extern int android_run_in_emacs_thread (void (*) (void *), void *); |
| 230 | extern void android_write_event (union android_event *); | 234 | extern void android_write_event (union android_event *); |
| @@ -265,6 +269,7 @@ struct android_emacs_service | |||
| 265 | jmethodID get_screen_width; | 269 | jmethodID get_screen_width; |
| 266 | jmethodID get_screen_height; | 270 | jmethodID get_screen_height; |
| 267 | jmethodID detect_mouse; | 271 | jmethodID detect_mouse; |
| 272 | jmethodID detect_keyboard; | ||
| 268 | jmethodID name_keysym; | 273 | jmethodID name_keysym; |
| 269 | jmethodID browse_url; | 274 | jmethodID browse_url; |
| 270 | jmethodID restart_emacs; | 275 | jmethodID restart_emacs; |
| @@ -297,6 +302,10 @@ struct android_emacs_service | |||
| 297 | 302 | ||
| 298 | extern JNIEnv *android_java_env; | 303 | extern JNIEnv *android_java_env; |
| 299 | 304 | ||
| 305 | #ifdef THREADS_ENABLED | ||
| 306 | extern JavaVM *android_jvm; | ||
| 307 | #endif /* THREADS_ENABLED */ | ||
| 308 | |||
| 300 | /* The EmacsService object. */ | 309 | /* The EmacsService object. */ |
| 301 | extern jobject emacs_service; | 310 | extern jobject emacs_service; |
| 302 | 311 | ||