diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 05:46:04 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 05:46:04 +0100 |
commit | 857a971c3e2c6da4a6feeef2072ef1011fedd38e (patch) | |
tree | 60f283fc136d6c27fb39f3c64a425a0e5910b2bb /src/fastd.h | |
parent | 15825beebf1b8675a19ca9098c932aa94ba5748e (diff) | |
download | fastd-857a971c3e2c6da4a6feeef2072ef1011fedd38e.tar fastd-857a971c3e2c6da4a6feeef2072ef1011fedd38e.zip |
Some Android fixes for issues introduced by multi-interface support
Not really tested, I'll do that when the multiif support is finished.
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 9 |
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 +} |