include element type in hash
[oweals/gnunet.git] / src / core / gnunet-service-core.h
index d4e43a457b8052c3278251a0d391d7bb340649a9..15e9959211f877b7863dce906967c571290fa6db 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2009, 2010, 2011 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -14,8 +14,8 @@
 
      You should have received a copy of the GNU General Public License
      along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
+     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+     Boston, MA 02110-1301, USA.
 */
 
 /**
@@ -27,6 +27,7 @@
 #define GNUNET_SERVICE_CORE_H
 
 #include "gnunet_statistics_service.h"
+#include "gnunet_core_service.h"
 #include "core.h"
 
 /**
@@ -37,7 +38,7 @@ struct GSC_Client;
 
 /**
  * Record kept for each request for transmission issued by a
- * client that is still pending. (This struct is used by 
+ * client that is still pending. (This struct is used by
  * both the 'CLIENTS' and 'SESSIONS' subsystems.)
  */
 struct GSC_ClientActiveRequest
@@ -55,15 +56,20 @@ struct GSC_ClientActiveRequest
    */
   struct GSC_ClientActiveRequest *prev;
 
+  /**
+   * Handle to the client.
+   */
+  struct GSC_Client *client_handle;
+
   /**
    * Which peer is the message going to be for?
    */
   struct GNUNET_PeerIdentity target;
 
   /**
-   * Handle to the client.
+   * At what time did we first see this request?
    */
-  struct GSC_Client *client_handle;
+  struct GNUNET_TIME_Absolute received_time;
 
   /**
    * By what time would the client want to see this message out?
@@ -73,7 +79,7 @@ struct GSC_ClientActiveRequest
   /**
    * How important is this request.
    */
-  uint32_t priority;
+  enum GNUNET_CORE_Priority priority;
 
   /**
    * Has this request been solicited yet?