diff options
| author | Po Lu | 2023-07-30 13:39:27 +0800 |
|---|---|---|
| committer | Po Lu | 2023-07-30 13:39:27 +0800 |
| commit | 37f68e8696200895832ee1f18b0cd1c0998bb207 (patch) | |
| tree | a473129dd3281c22c5696ce548326eb884496cc8 /src/android.h | |
| parent | 7ce7a004f68753beafb12830e28c459c4b5b6273 (diff) | |
| download | emacs-37f68e8696200895832ee1f18b0cd1c0998bb207.tar.gz emacs-37f68e8696200895832ee1f18b0cd1c0998bb207.zip | |
Partially implement rename operations on SAF files
* java/org/gnu/emacs/EmacsSafThread.java
(postInvalidateCacheDir):
* java/org/gnu/emacs/EmacsService.java (renameDocument): New
functions.
* src/android.c (android_init_emacs_service):
* src/android.h (struct android_emacs_service): Link to new JNI
function.
* src/androidvfs.c (android_saf_rename_document): New function.
(android_saf_tree_rename): Implement in terms of that function
if possible.
Diffstat (limited to 'src/android.h')
| -rw-r--r-- | src/android.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/android.h b/src/android.h index fd391fa6435..591f1a1e43c 100644 --- a/src/android.h +++ b/src/android.h | |||
| @@ -281,6 +281,7 @@ struct android_emacs_service | |||
| 281 | jmethodID create_document; | 281 | jmethodID create_document; |
| 282 | jmethodID create_directory; | 282 | jmethodID create_directory; |
| 283 | jmethodID delete_document; | 283 | jmethodID delete_document; |
| 284 | jmethodID rename_document; | ||
| 284 | }; | 285 | }; |
| 285 | 286 | ||
| 286 | extern JNIEnv *android_java_env; | 287 | extern JNIEnv *android_java_env; |