diff options
| author | Po Lu | 2023-07-28 12:21:47 +0800 |
|---|---|---|
| committer | Po Lu | 2023-07-28 12:21:47 +0800 |
| commit | 03cf3bbb5c38aa55abd6f7d4860025f7482fcfc3 (patch) | |
| tree | a8d55088a6efed2cbe4b0bfad1c1bde61579b54e /src/android.h | |
| parent | 7c0899586471d3649dfb468d2b8f7d6d9685fea1 (diff) | |
| download | emacs-03cf3bbb5c38aa55abd6f7d4860025f7482fcfc3.tar.gz emacs-03cf3bbb5c38aa55abd6f7d4860025f7482fcfc3.zip | |
Update Android port
* java/org/gnu/emacs/EmacsDirectoryEntry.java
(EmacsDirectoryEntry): Make class final.
* java/org/gnu/emacs/EmacsService.java (accessDocument)
(openDocumentDirectory, openDocument, createDocument): Throw
access and IO error exceptions instead of catching them.
(createDirectory, deleteDocument): New functions.
* src/android.c (android_init_emacs_service): Add new functions.
* src/android.h (struct android_emacs_service): Likewise.
* src/androidvfs.c (android_saf_exception_check): New function.
Translate between Java exceptions and errno values.
(android_saf_stat, android_saf_access, android_saf_delete_document)
(struct android_saf_tree_vnode, android_document_id_from_name)
(android_saf_tree_name, android_saf_tree_rmdir)
(android_saf_tree_opendir_1, android_saf_tree_opendir)
(android_saf_file_open, android_saf_file_unlink)
(android_saf_new_open, android_saf_new_mkdir): Implement missing
VFS operations and derive errno values from the type of any
exceptions thrown.
(android_vfs_init): Initialize exception classes.
(android_mkdir, android_fstat): Remove trailing whitespace.
Diffstat (limited to 'src/android.h')
| -rw-r--r-- | src/android.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/android.h b/src/android.h index 94a3ad46e74..fd391fa6435 100644 --- a/src/android.h +++ b/src/android.h | |||
| @@ -279,6 +279,8 @@ struct android_emacs_service | |||
| 279 | jmethodID read_directory_entry; | 279 | jmethodID read_directory_entry; |
| 280 | jmethodID open_document; | 280 | jmethodID open_document; |
| 281 | jmethodID create_document; | 281 | jmethodID create_document; |
| 282 | jmethodID create_directory; | ||
| 283 | jmethodID delete_document; | ||
| 282 | }; | 284 | }; |
| 283 | 285 | ||
| 284 | extern JNIEnv *android_java_env; | 286 | extern JNIEnv *android_java_env; |