summaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 15:09:28 +0200
commitc4e9ba925ffd758aaa3feee2ccfc0b76f26fe207 (patch)
treecac3ce030d77b4cbe7c7dc62ed58cfe6d24f73e1 /src/transport/plugin_transport_http.h
parentfbb71d527c7d6babf269a8fefce1db291b9f7068 (diff)
global reindent, now with uncrustify hook enabled
Diffstat (limited to 'src/transport/plugin_transport_http.h')
-rw-r--r--src/transport/plugin_transport_http.h96
1 files changed, 52 insertions, 44 deletions
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h
index 4ad8f6e58..a3b59513e 100644
--- a/src/transport/plugin_transport_http.h
+++ b/src/transport/plugin_transport_http.h
@@ -62,12 +62,14 @@
#define OUTBOUND GNUNET_NO
-#define HTTP_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 15)
+#define HTTP_NOT_VALIDATED_TIMEOUT GNUNET_TIME_relative_multiply ( \
+ GNUNET_TIME_UNIT_SECONDS, 15)
/**
* Encapsulation of all of the state of the plugin.
*/
-struct Plugin {
+struct Plugin
+{
/**
* Our environment.
*/
@@ -118,7 +120,7 @@ struct Plugin {
/**
* Task calling transport service about external address
*/
- struct GNUNET_SCHEDULER_Task * notify_ext_task;
+ struct GNUNET_SCHEDULER_Task *notify_ext_task;
/**
* Plugin name.
@@ -206,7 +208,7 @@ struct Plugin {
/**
* MHD IPv4 task
*/
- struct GNUNET_SCHEDULER_Task * server_v4_task;
+ struct GNUNET_SCHEDULER_Task *server_v4_task;
/**
* The IPv4 server is scheduled to run asap
@@ -221,7 +223,7 @@ struct Plugin {
/**
* MHD IPv4 task
*/
- struct GNUNET_SCHEDULER_Task * server_v6_task;
+ struct GNUNET_SCHEDULER_Task *server_v6_task;
/**
* The IPv6 server is scheduled to run asap
@@ -260,7 +262,7 @@ struct Plugin {
/**
* curl perform task
*/
- struct GNUNET_SCHEDULER_Task * client_perform_task;
+ struct GNUNET_SCHEDULER_Task *client_perform_task;
};
GNUNET_NETWORK_STRUCT_BEGIN
@@ -268,7 +270,8 @@ GNUNET_NETWORK_STRUCT_BEGIN
/**
* HTTP addresses including a full URI
*/
-struct HttpAddress {
+struct HttpAddress
+{
/**
* Length of the address following in NBO
*/
@@ -283,7 +286,8 @@ struct HttpAddress {
/**
* IPv4 addresses
*/
-struct IPv4HttpAddress {
+struct IPv4HttpAddress
+{
/**
* IPv4 address, in network byte order.
*/
@@ -298,7 +302,8 @@ struct IPv4HttpAddress {
/**
* IPv4 addresses
*/
-struct IPv6HttpAddress {
+struct IPv6HttpAddress
+{
/**
* IPv6 address.
*/
@@ -312,7 +317,8 @@ struct IPv6HttpAddress {
GNUNET_NETWORK_STRUCT_END
-struct ServerRequest {
+struct ServerRequest
+{
/**
* _RECV or _SEND
*/
@@ -338,7 +344,8 @@ struct ServerRequest {
/**
* Session handle for connections.
*/
-struct GNUNET_ATS_Session {
+struct GNUNET_ATS_Session
+{
/**
* To whom are we talking to
*/
@@ -420,12 +427,12 @@ struct GNUNET_ATS_Session {
/**
* Task to wake up client receive handle when receiving is allowed again
*/
- struct GNUNET_SCHEDULER_Task * recv_wakeup_task;
+ struct GNUNET_SCHEDULER_Task *recv_wakeup_task;
/**
* Session timeout task
*/
- struct GNUNET_SCHEDULER_Task * timeout_task;
+ struct GNUNET_SCHEDULER_Task *timeout_task;
/**
* Is client send handle paused since there are no data to send?
@@ -448,7 +455,8 @@ struct GNUNET_ATS_Session {
/**
* Message to send using http
*/
-struct HTTP_Message {
+struct HTTP_Message
+{
/**
* next pointer for double linked list
*/
@@ -489,81 +497,81 @@ struct HTTP_Message {
struct GNUNET_ATS_Session *
-create_session(struct Plugin *plugin,
- const struct GNUNET_PeerIdentity *target,
- const void *addr,
- size_t addrlen);
+create_session (struct Plugin *plugin,
+ const struct GNUNET_PeerIdentity *target,
+ const void *addr,
+ size_t addrlen);
int
-exist_session(struct Plugin *plugin,
- struct GNUNET_ATS_Session *s);
+exist_session (struct Plugin *plugin,
+ struct GNUNET_ATS_Session *s);
void
-delete_session(struct GNUNET_ATS_Session *s);
+delete_session (struct GNUNET_ATS_Session *s);
int
-exist_session(struct Plugin *plugin,
- struct GNUNET_ATS_Session *s);
+exist_session (struct Plugin *plugin,
+ struct GNUNET_ATS_Session *s);
struct GNUNET_TIME_Relative
-http_plugin_receive(void *cls,
- const struct GNUNET_PeerIdentity *peer,
- const struct GNUNET_MessageHeader *message,
- struct GNUNET_ATS_Session *session,
- const char *sender_address,
- uint16_t sender_address_len);
+http_plugin_receive (void *cls,
+ const struct GNUNET_PeerIdentity *peer,
+ const struct GNUNET_MessageHeader *message,
+ struct GNUNET_ATS_Session *session,
+ const char *sender_address,
+ uint16_t sender_address_len);
const char *
-http_plugin_address_to_string(void *cls,
- const void *addr,
- size_t addrlen);
+http_plugin_address_to_string (void *cls,
+ const void *addr,
+ size_t addrlen);
int
-client_disconnect(struct GNUNET_ATS_Session *s);
+client_disconnect (struct GNUNET_ATS_Session *s);
int
-client_connect(struct GNUNET_ATS_Session *s);
+client_connect (struct GNUNET_ATS_Session *s);
int
-client_send(struct GNUNET_ATS_Session *s, struct HTTP_Message *msg);
+client_send (struct GNUNET_ATS_Session *s, struct HTTP_Message *msg);
int
-client_start(struct Plugin *plugin);
+client_start (struct Plugin *plugin);
void
-client_stop(struct Plugin *plugin);
+client_stop (struct Plugin *plugin);
int
-server_disconnect(struct GNUNET_ATS_Session *s);
+server_disconnect (struct GNUNET_ATS_Session *s);
int
-server_send(struct GNUNET_ATS_Session *s, struct HTTP_Message *msg);
+server_send (struct GNUNET_ATS_Session *s, struct HTTP_Message *msg);
int
-server_start(struct Plugin *plugin);
+server_start (struct Plugin *plugin);
void
-server_stop(struct Plugin *plugin);
+server_stop (struct Plugin *plugin);
void
-notify_session_end(void *cls,
- const struct GNUNET_PeerIdentity *peer,
- struct GNUNET_ATS_Session *s);
+notify_session_end (void *cls,
+ const struct GNUNET_PeerIdentity *peer,
+ struct GNUNET_ATS_Session *s);
/*#ifndef PLUGIN_TRANSPORT_HTTP_H*/