aboutsummaryrefslogtreecommitdiffstats
path: root/src/android.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/android.h')
-rw-r--r--src/android.h9
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);
103extern int android_get_mm_width (void); 105extern int android_get_mm_width (void);
104extern int android_get_mm_height (void); 106extern int android_get_mm_height (void);
105extern bool android_detect_mouse (void); 107extern bool android_detect_mouse (void);
108extern bool android_detect_keyboard (void);
106 109
107extern void android_set_dont_focus_on_map (android_window, bool); 110extern void android_set_dont_focus_on_map (android_window, bool);
108extern void android_set_dont_accept_focus (android_window, bool); 111extern 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
231extern void android_check_query (void);
228extern void android_check_query_urgent (void); 232extern void android_check_query_urgent (void);
229extern int android_run_in_emacs_thread (void (*) (void *), void *); 233extern int android_run_in_emacs_thread (void (*) (void *), void *);
230extern void android_write_event (union android_event *); 234extern 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
298extern JNIEnv *android_java_env; 303extern JNIEnv *android_java_env;
299 304
305#ifdef THREADS_ENABLED
306extern JavaVM *android_jvm;
307#endif /* THREADS_ENABLED */
308
300/* The EmacsService object. */ 309/* The EmacsService object. */
301extern jobject emacs_service; 310extern jobject emacs_service;
302 311