summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fastd.h b/src/fastd.h
index b320c74..f05fe47 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -568,3 +568,12 @@ static inline void fastd_on_down(fastd_iface_t *iface) {
static inline void fastd_on_post_down(void) {
fastd_shell_command_exec(&conf.on_post_down, NULL);
}
+
+/** Returns true if android integration is enabled */
+static inline bool fastd_use_android_integration(void) {
+#ifdef __ANDROID__
+ return conf.android_integration;
+#else
+ return false;
+#endif
+}