diff options
Diffstat (limited to 'src/android.c')
| -rw-r--r-- | src/android.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/android.c b/src/android.c index 598d002fb1c..57a95bcd4f9 100644 --- a/src/android.c +++ b/src/android.c | |||
| @@ -5006,6 +5006,19 @@ android_restart_emacs (void) | |||
| 5006 | exit (0); | 5006 | exit (0); |
| 5007 | } | 5007 | } |
| 5008 | 5008 | ||
| 5009 | /* Return a number from 1 to 33 describing the version of Android | ||
| 5010 | Emacs is running on. | ||
| 5011 | |||
| 5012 | This is different from __ANDROID_API__, as that describes the | ||
| 5013 | minimum version of Android this build of Emacs will run on, and in | ||
| 5014 | turn which APIs Emacs can safely use. */ | ||
| 5015 | |||
| 5016 | int | ||
| 5017 | android_get_current_api_level (void) | ||
| 5018 | { | ||
| 5019 | return android_api_level; | ||
| 5020 | } | ||
| 5021 | |||
| 5009 | 5022 | ||
| 5010 | 5023 | ||
| 5011 | #else /* ANDROID_STUBIFY */ | 5024 | #else /* ANDROID_STUBIFY */ |