summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-05-22 04:01:43 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-05-22 04:01:43 +0200
commitf885449c5b4b6fec1b2fbe1e78a86918eca3d4f0 (patch)
tree4a3954bd965ebd6c7b8a9efa98263982036f98a9 /src
parent6427c80b3ed6eb3890279ad408fdfc9ca9ceab76 (diff)
downloadfastd-f885449c5b4b6fec1b2fbe1e78a86918eca3d4f0.tar
fastd-f885449c5b4b6fec1b2fbe1e78a86918eca3d4f0.zip
Move fastd_peer_group{,_config} definitions to peer.h
Diffstat (limited to 'src')
-rw-r--r--src/fastd.h20
-rw-r--r--src/peer.h20
2 files changed, 20 insertions, 20 deletions
diff --git a/src/fastd.h b/src/fastd.h
index 1cf9c12..108df36 100644
--- a/src/fastd.h
+++ b/src/fastd.h
@@ -97,26 +97,6 @@ struct fastd_socket {
fastd_peer_t *peer;
};
-struct fastd_peer_group_config {
- fastd_peer_group_config_t *next;
- fastd_peer_group_config_t *parent;
- fastd_peer_group_config_t *children;
-
- char *name;
- fastd_string_stack_t *peer_dirs;
-
- /* constraints */
- int max_connections;
-};
-
-struct fastd_peer_group {
- fastd_peer_group_t *next;
- fastd_peer_group_t *parent;
- fastd_peer_group_t *children;
-
- const fastd_peer_group_config_t *conf;
-};
-
struct fastd_stats {
uint64_t packets;
uint64_t bytes;
diff --git a/src/peer.h b/src/peer.h
index 108a1c0..b555c85 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -89,6 +89,26 @@ struct fastd_peer_config {
fastd_protocol_peer_config_t *protocol_config;
};
+struct fastd_peer_group {
+ fastd_peer_group_t *next;
+ fastd_peer_group_t *parent;
+ fastd_peer_group_t *children;
+
+ const fastd_peer_group_config_t *conf;
+};
+
+struct fastd_peer_group_config {
+ fastd_peer_group_config_t *next;
+ fastd_peer_group_config_t *parent;
+ fastd_peer_group_config_t *children;
+
+ char *name;
+ fastd_string_stack_t *peer_dirs;
+
+ /* constraints */
+ int max_connections;
+};
+
struct fastd_peer_eth_addr {
fastd_eth_addr_t addr;
fastd_peer_t *peer;