summaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_monitor_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_transport_monitor_service.h')
-rw-r--r--src/include/gnunet_transport_monitor_service.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/include/gnunet_transport_monitor_service.h b/src/include/gnunet_transport_monitor_service.h
index a67fca778..f39be16d7 100644
--- a/src/include/gnunet_transport_monitor_service.h
+++ b/src/include/gnunet_transport_monitor_service.h
@@ -56,7 +56,8 @@ extern "C"
56/** 56/**
57 * Information about another peer's address. 57 * Information about another peer's address.
58 */ 58 */
59struct GNUNET_TRANSPORT_MonitorInformation { 59struct GNUNET_TRANSPORT_MonitorInformation
60{
60 /** 61 /**
61 * Address we have for the peer, human-readable, 0-terminated, in UTF-8. 62 * Address we have for the peer, human-readable, 0-terminated, in UTF-8.
62 */ 63 */
@@ -123,7 +124,8 @@ struct GNUNET_TRANSPORT_MonitorInformation {
123typedef void 124typedef void
124(*GNUNET_TRANSPORT_MonitorCallback) (void *cls, 125(*GNUNET_TRANSPORT_MonitorCallback) (void *cls,
125 const struct GNUNET_PeerIdentity *peer, 126 const struct GNUNET_PeerIdentity *peer,
126 const struct GNUNET_TRANSPORT_MonitorInformation *mi); 127 const struct
128 GNUNET_TRANSPORT_MonitorInformation *mi);
127 129
128 130
129/** 131/**
@@ -159,11 +161,11 @@ struct GNUNET_TRANSPORT_MonitorContext;
159 * @param cb_cls closure for @a mc 161 * @param cb_cls closure for @a mc
160 */ 162 */
161struct GNUNET_TRANSPORT_MonitorContext * 163struct GNUNET_TRANSPORT_MonitorContext *
162GNUNET_TRANSPORT_monitor(const struct GNUNET_CONFIGURATION_Handle *cfg, 164GNUNET_TRANSPORT_monitor (const struct GNUNET_CONFIGURATION_Handle *cfg,
163 const struct GNUNET_PeerIdentity *peer, 165 const struct GNUNET_PeerIdentity *peer,
164 int one_shot, 166 int one_shot,
165 GNUNET_TRANSPORT_MonitorCallback cb, 167 GNUNET_TRANSPORT_MonitorCallback cb,
166 void *cb_cls); 168 void *cb_cls);
167 169
168 170
169/** 171/**
@@ -172,7 +174,7 @@ GNUNET_TRANSPORT_monitor(const struct GNUNET_CONFIGURATION_Handle *cfg,
172 * @param mc handle for the request to cancel 174 * @param mc handle for the request to cancel
173 */ 175 */
174void 176void
175GNUNET_TRANSPORT_monitor_cancel(struct GNUNET_TRANSPORT_MonitorContext *mc); 177GNUNET_TRANSPORT_monitor_cancel (struct GNUNET_TRANSPORT_MonitorContext *mc);
176 178
177 179
178#if 0 /* keep Emacsens' auto-indent happy */ 180#if 0 /* keep Emacsens' auto-indent happy */