diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-26 19:16:29 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-26 19:16:29 +0200 |
commit | 2ffca7de4ef14aa03bc5a855005edbc9849862a7 (patch) | |
tree | 7168a61299fd0e6b79b6d440018bab6db3914c54 /src/peer.h | |
parent | e89cfb2f0b8159f602ecae6b53c0ee59b112601d (diff) | |
download | fastd-2ffca7de4ef14aa03bc5a855005edbc9849862a7.tar fastd-2ffca7de4ef14aa03bc5a855005edbc9849862a7.zip |
Move around some structure fields
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -55,8 +55,12 @@ struct _fastd_peer { struct _fastd_peer_config { fastd_peer_config *next; + bool enabled; + fastd_peer_address address; char *key; + + fastd_protocol_peer_config *protocol_config; }; struct _fastd_peer_eth_addr { @@ -69,6 +73,7 @@ struct _fastd_peer_eth_addr { const fastd_eth_addr* fastd_get_source_address(const fastd_context *ctx, fastd_buffer buffer); const fastd_eth_addr* fastd_get_dest_address(const fastd_context *ctx, fastd_buffer buffer); +void fastd_peer_disable(fastd_context *ctx, fastd_peer *peer); void fastd_peer_reset(fastd_context *ctx, fastd_peer *peer); fastd_peer* fastd_peer_add(fastd_context *ctx, fastd_peer_config *conf); fastd_peer* fastd_peer_add_temp(fastd_context *ctx, const fastd_peer_address *address); |