diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-05 12:41:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-05 12:41:49 +0000 |
commit | 1f3219c222bb206e02a793e6c7d48ccc3045d604 (patch) | |
tree | 4ca96c6f9818c75651be78feff42ac7023cedd82 /src/include/gnunet_dv_service.h | |
parent | 3f1bdbec8a40c36da13fd2488e67b8daba49025c (diff) | |
download | gnunet-1f3219c222bb206e02a793e6c7d48ccc3045d604.tar.gz gnunet-1f3219c222bb206e02a793e6c7d48ccc3045d604.zip |
indentation, moving API towards MQ-style
Diffstat (limited to 'src/include/gnunet_dv_service.h')
-rw-r--r-- | src/include/gnunet_dv_service.h | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/src/include/gnunet_dv_service.h b/src/include/gnunet_dv_service.h index 248e373dc..f58311f74 100644 --- a/src/include/gnunet_dv_service.h +++ b/src/include/gnunet_dv_service.h | |||
@@ -45,10 +45,11 @@ | |||
45 | * @param distance distance to the peer | 45 | * @param distance distance to the peer |
46 | * @param network the peer is located in | 46 | * @param network the peer is located in |
47 | */ | 47 | */ |
48 | typedef void (*GNUNET_DV_ConnectCallback)(void *cls, | 48 | typedef void |
49 | const struct GNUNET_PeerIdentity *peer, | 49 | (*GNUNET_DV_ConnectCallback)(void *cls, |
50 | uint32_t distance, | 50 | const struct GNUNET_PeerIdentity *peer, |
51 | enum GNUNET_ATS_Network_Type network); | 51 | uint32_t distance, |
52 | enum GNUNET_ATS_Network_Type network); | ||
52 | 53 | ||
53 | 54 | ||
54 | /** | 55 | /** |
@@ -60,10 +61,11 @@ typedef void (*GNUNET_DV_ConnectCallback)(void *cls, | |||
60 | * @param distance new distance to the peer | 61 | * @param distance new distance to the peer |
61 | * @param network this network will be used to reach the next hop | 62 | * @param network this network will be used to reach the next hop |
62 | */ | 63 | */ |
63 | typedef void (*GNUNET_DV_DistanceChangedCallback)(void *cls, | 64 | typedef void |
64 | const struct GNUNET_PeerIdentity *peer, | 65 | (*GNUNET_DV_DistanceChangedCallback)(void *cls, |
65 | uint32_t distance, | 66 | const struct GNUNET_PeerIdentity *peer, |
66 | enum GNUNET_ATS_Network_Type network); | 67 | uint32_t distance, |
68 | enum GNUNET_ATS_Network_Type network); | ||
67 | 69 | ||
68 | 70 | ||
69 | /** | 71 | /** |
@@ -73,8 +75,9 @@ typedef void (*GNUNET_DV_DistanceChangedCallback)(void *cls, | |||
73 | * @param cls closure | 75 | * @param cls closure |
74 | * @param peer peer that disconnected | 76 | * @param peer peer that disconnected |
75 | */ | 77 | */ |
76 | typedef void (*GNUNET_DV_DisconnectCallback)(void *cls, | 78 | typedef void |
77 | const struct GNUNET_PeerIdentity *peer); | 79 | (*GNUNET_DV_DisconnectCallback)(void *cls, |
80 | const struct GNUNET_PeerIdentity *peer); | ||
78 | 81 | ||
79 | 82 | ||
80 | /** | 83 | /** |
@@ -86,10 +89,11 @@ typedef void (*GNUNET_DV_DisconnectCallback)(void *cls, | |||
86 | * @param distance how far did the message travel | 89 | * @param distance how far did the message travel |
87 | * @param msg actual message payload | 90 | * @param msg actual message payload |
88 | */ | 91 | */ |
89 | typedef void (*GNUNET_DV_MessageReceivedCallback)(void *cls, | 92 | typedef void |
90 | const struct GNUNET_PeerIdentity *sender, | 93 | (*GNUNET_DV_MessageReceivedCallback)(void *cls, |
91 | uint32_t distance, | 94 | const struct GNUNET_PeerIdentity *sender, |
92 | const struct GNUNET_MessageHeader *msg); | 95 | uint32_t distance, |
96 | const struct GNUNET_MessageHeader *msg); | ||
93 | 97 | ||
94 | 98 | ||
95 | /** | 99 | /** |
@@ -97,10 +101,9 @@ typedef void (*GNUNET_DV_MessageReceivedCallback)(void *cls, | |||
97 | * message has been successful. | 101 | * message has been successful. |
98 | * | 102 | * |
99 | * @param cls closure | 103 | * @param cls closure |
100 | * @param ok GNUNET_OK on success, GNUNET_SYSERR on error | ||
101 | */ | 104 | */ |
102 | typedef void (*GNUNET_DV_MessageSentCallback)(void *cls, | 105 | typedef void |
103 | int ok); | 106 | (*GNUNET_DV_MessageSentCallback)(void *cls); |
104 | 107 | ||
105 | 108 | ||
106 | /** | 109 | /** |