diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 06:30:10 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-03-23 06:30:10 +0100 |
commit | 69fc8268d0a17cf3b86b327a78e302f049c194e1 (patch) | |
tree | d4bdd69b06c1025a3d14a45b292f572a09ba0c8f /src/fastd.h | |
parent | e2402e41eb0e914078d860273bd7cf8c526664c6 (diff) | |
download | fastd-69fc8268d0a17cf3b86b327a78e302f049c194e1.tar fastd-69fc8268d0a17cf3b86b327a78e302f049c194e1.zip |
peer: set peer name in on-up environment for peer-specific interfaces
Diffstat (limited to 'src/fastd.h')
-rw-r--r-- | src/fastd.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/fastd.h b/src/fastd.h index f05fe47..dc4f04d 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -542,33 +542,6 @@ static inline bool fastd_allow_verify(void) { #endif } - -/** Calls the on-pre-up command */ -static inline void fastd_on_pre_up(void) { - fastd_shell_command_exec(&conf.on_pre_up, NULL); -} - -/** Calls the on-up command */ -static inline void fastd_on_up(fastd_iface_t *iface) { - fastd_shell_env_t *env = fastd_shell_env_alloc(); - fastd_shell_env_set_iface(env, iface); - fastd_shell_command_exec(&conf.on_up, env); - fastd_shell_env_free(env); -} - -/** Calls the on-down command */ -static inline void fastd_on_down(fastd_iface_t *iface) { - fastd_shell_env_t *env = fastd_shell_env_alloc(); - fastd_shell_env_set_iface(env, iface); - fastd_shell_command_exec(&conf.on_down, env); - fastd_shell_env_free(env); -} - -/** Calls the on-post-down command */ -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__ |