Check that you are not present in trail twice
[oweals/gnunet.git] / src / transport / plugin_transport_http.h
index 1ac2f985940416862fa89604b8f960b4b3b36559..ae0c784eef230b7311bf1fd87ee564f12a15bbe3 100644 (file)
@@ -23,6 +23,8 @@
  * @brief http transport service plugin
  * @author Matthias Wachs
  */
+#ifndef PLUGIN_TRANSPORT_HTTP_H
+#define PLUGIN_TRANSPORT_HTTP_H
 
 #include "platform.h"
 #include "gnunet_common.h"
@@ -347,7 +349,7 @@ struct IPv6HttpAddress
 GNUNET_NETWORK_STRUCT_END
 
 
-struct ServerConnection
+struct ServerRequest
 {
   /* _RECV or _SEND */
   int direction;
@@ -475,12 +477,12 @@ struct Session
   /**
    * Client send handle
    */
-  struct ServerConnection *server_recv;
+  struct ServerRequest *server_recv;
 
   /**
    * Client send handle
    */
-  struct ServerConnection *server_send;
+  struct ServerRequest *server_send;
 };
 
 /**
@@ -579,4 +581,6 @@ void
 notify_session_end (void *cls, const struct GNUNET_PeerIdentity *peer,
                     struct Session *s);
 
+/*#ifndef PLUGIN_TRANSPORT_HTTP_H*/
+#endif
 /* end of plugin_transport_http.h */