diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-26 20:30:05 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2014-04-26 20:37:47 +0200 |
commit | 4020ee614cfe248010764028902d80b4a9091f7d (patch) | |
tree | d0bc8cb336401d1d87b60ab66a2595f0294aaddf /src/peer.h | |
parent | 1ea5ef8944db5da3ff9eeb2d72bcf8a887599925 (diff) | |
download | fastd-4020ee614cfe248010764028902d80b4a9091f7d.tar fastd-4020ee614cfe248010764028902d80b4a9091f7d.zip |
Revise shell command API
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -139,6 +139,9 @@ void fastd_peer_reset_socket(fastd_peer_t *peer); void fastd_peer_schedule_handshake(fastd_peer_t *peer, int delay); fastd_peer_t* fastd_peer_find_by_id(uint64_t id); +void fastd_peer_set_shell_env(fastd_shell_env_t *env, const fastd_peer_t *peer, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *peer_addr); +void fastd_peer_exec_shell_command(const fastd_shell_command_t *command, const fastd_peer_t *peer, const fastd_peer_address_t *local_addr, const fastd_peer_address_t *peer_addr); + static inline void fastd_peer_schedule_handshake_default(fastd_peer_t *peer) { fastd_peer_schedule_handshake(peer, fastd_rand(17500, 22500)); } |