diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-18 12:33:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-18 12:33:21 +0000 |
commit | 9cd0d5068f3341fe8451a61872894f28a5ac9047 (patch) | |
tree | 390b09e837978c1dbef176950b04f42ecf39e140 /src/transport/plugin_transport_template.c | |
parent | 38d26a302cba9de8362960186b645e8f2133a538 (diff) | |
download | gnunet-9cd0d5068f3341fe8451a61872894f28a5ac9047.tar.gz gnunet-9cd0d5068f3341fe8451a61872894f28a5ac9047.zip |
rename 'struct Session' to 'struct GNUNET_ATS_Session' to satisfy naming conventions
Diffstat (limited to 'src/transport/plugin_transport_template.c')
-rw-r--r-- | src/transport/plugin_transport_template.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/transport/plugin_transport_template.c b/src/transport/plugin_transport_template.c index 7c8bc3cba..81a914943 100644 --- a/src/transport/plugin_transport_template.c +++ b/src/transport/plugin_transport_template.c | |||
@@ -51,7 +51,7 @@ struct Plugin; | |||
51 | /** | 51 | /** |
52 | * Session handle for connections. | 52 | * Session handle for connections. |
53 | */ | 53 | */ |
54 | struct Session | 54 | struct GNUNET_ATS_Session |
55 | { | 55 | { |
56 | /** | 56 | /** |
57 | * To whom are we talking to (set to our identity | 57 | * To whom are we talking to (set to our identity |
@@ -62,7 +62,7 @@ struct Session | |||
62 | /** | 62 | /** |
63 | * Stored in a linked list (or a peer map, or ...) | 63 | * Stored in a linked list (or a peer map, or ...) |
64 | */ | 64 | */ |
65 | struct Session *next; | 65 | struct GNUNET_ATS_Session *next; |
66 | 66 | ||
67 | /** | 67 | /** |
68 | * Pointer to the global plugin struct. | 68 | * Pointer to the global plugin struct. |
@@ -132,7 +132,7 @@ struct Plugin | |||
132 | /** | 132 | /** |
133 | * List of open sessions (or peer map, or...) | 133 | * List of open sessions (or peer map, or...) |
134 | */ | 134 | */ |
135 | struct Session *sessions; | 135 | struct GNUNET_ATS_Session *sessions; |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * Function to call about session status changes. | 138 | * Function to call about session status changes. |
@@ -162,7 +162,7 @@ struct Plugin | |||
162 | */ | 162 | */ |
163 | static void | 163 | static void |
164 | notify_session_monitor (struct Plugin *plugin, | 164 | notify_session_monitor (struct Plugin *plugin, |
165 | struct Session *session, | 165 | struct GNUNET_ATS_Session *session, |
166 | enum GNUNET_TRANSPORT_SessionState state) | 166 | enum GNUNET_TRANSPORT_SessionState state) |
167 | { | 167 | { |
168 | struct GNUNET_TRANSPORT_SessionInfo info; | 168 | struct GNUNET_TRANSPORT_SessionInfo info; |
@@ -213,7 +213,7 @@ notify_session_monitor (struct Plugin *plugin, | |||
213 | */ | 213 | */ |
214 | static ssize_t | 214 | static ssize_t |
215 | template_plugin_send (void *cls, | 215 | template_plugin_send (void *cls, |
216 | struct Session *session, | 216 | struct GNUNET_ATS_Session *session, |
217 | const char *msgbuf, | 217 | const char *msgbuf, |
218 | size_t msgbuf_size, | 218 | size_t msgbuf_size, |
219 | unsigned int priority, | 219 | unsigned int priority, |
@@ -256,7 +256,7 @@ template_plugin_disconnect_peer (void *cls, | |||
256 | */ | 256 | */ |
257 | static int | 257 | static int |
258 | template_plugin_disconnect_session (void *cls, | 258 | template_plugin_disconnect_session (void *cls, |
259 | struct Session *session) | 259 | struct GNUNET_ATS_Session *session) |
260 | { | 260 | { |
261 | // struct Plugin *plugin = cls; | 261 | // struct Plugin *plugin = cls; |
262 | // FIXME | 262 | // FIXME |
@@ -288,7 +288,7 @@ template_plugin_query_keepalive_factor (void *cls) | |||
288 | */ | 288 | */ |
289 | static enum GNUNET_ATS_Network_Type | 289 | static enum GNUNET_ATS_Network_Type |
290 | template_plugin_get_network (void *cls, | 290 | template_plugin_get_network (void *cls, |
291 | struct Session *session) | 291 | struct GNUNET_ATS_Session *session) |
292 | { | 292 | { |
293 | GNUNET_assert (NULL != session); | 293 | GNUNET_assert (NULL != session); |
294 | return GNUNET_ATS_NET_UNSPECIFIED; /* Change to correct network type */ | 294 | return GNUNET_ATS_NET_UNSPECIFIED; /* Change to correct network type */ |
@@ -423,7 +423,7 @@ template_plugin_string_to_address (void *cls, | |||
423 | * @param address pointer to the GNUNET_HELLO_Address | 423 | * @param address pointer to the GNUNET_HELLO_Address |
424 | * @return the session if the address is valid, NULL otherwise | 424 | * @return the session if the address is valid, NULL otherwise |
425 | */ | 425 | */ |
426 | static struct Session * | 426 | static struct GNUNET_ATS_Session * |
427 | template_plugin_get_session (void *cls, | 427 | template_plugin_get_session (void *cls, |
428 | const struct GNUNET_HELLO_Address *address) | 428 | const struct GNUNET_HELLO_Address *address) |
429 | { | 429 | { |
@@ -435,7 +435,7 @@ template_plugin_get_session (void *cls, | |||
435 | static void | 435 | static void |
436 | template_plugin_update_session_timeout (void *cls, | 436 | template_plugin_update_session_timeout (void *cls, |
437 | const struct GNUNET_PeerIdentity *peer, | 437 | const struct GNUNET_PeerIdentity *peer, |
438 | struct Session *session) | 438 | struct GNUNET_ATS_Session *session) |
439 | { | 439 | { |
440 | 440 | ||
441 | } | 441 | } |
@@ -448,7 +448,7 @@ template_plugin_update_session_timeout (void *cls, | |||
448 | * | 448 | * |
449 | * @param cls the `struct Plugin` with the monitor callback (`sic`) | 449 | * @param cls the `struct Plugin` with the monitor callback (`sic`) |
450 | * @param peer peer we send information about | 450 | * @param peer peer we send information about |
451 | * @param value our `struct Session` to send information about | 451 | * @param value our `struct GNUNET_ATS_Session` to send information about |
452 | * @return #GNUNET_OK (continue to iterate) | 452 | * @return #GNUNET_OK (continue to iterate) |
453 | */ | 453 | */ |
454 | static int | 454 | static int |
@@ -457,7 +457,7 @@ send_session_info_iter (void *cls, | |||
457 | void *value) | 457 | void *value) |
458 | { | 458 | { |
459 | struct Plugin *plugin = cls; | 459 | struct Plugin *plugin = cls; |
460 | struct Session *session = value; | 460 | struct GNUNET_ATS_Session *session = value; |
461 | 461 | ||
462 | notify_session_monitor (plugin, | 462 | notify_session_monitor (plugin, |
463 | session, | 463 | session, |