hxing
[oweals/gnunet.git] / src / core / gnunet-service-core.h
index 5153640ea52062fc8aef106b02decff1069ab741..2d5156efec14a24916a7635f54997ef4675f794f 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2009, 2010 Christian Grothoff (and other contributing authors)
+     (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
 #ifndef GNUNET_SERVICE_CORE_H
 #define GNUNET_SERVICE_CORE_H
 
+#include "gnunet_statistics_service.h"
 
 
+#define DEBUG_CORE GNUNET_EXTRA_LOGGING
+
 /**
  * Opaque handle to a client.
  */
@@ -46,13 +49,13 @@ struct GSC_ClientActiveRequest
    * Active requests are kept in a doubly-linked list of
    * the respective target peer.
    */
-  struct ClientActiveRequest *next;
+  struct GSC_ClientActiveRequest *next;
 
   /**
    * Active requests are kept in a doubly-linked list of
    * the respective target peer.
    */
-  struct ClientActiveRequest *prev;
+  struct GSC_ClientActiveRequest *prev;
 
   /**
    * Which peer is the message going to be for?
@@ -74,6 +77,11 @@ struct GSC_ClientActiveRequest
    */
   uint32_t priority;
 
+  /**
+   * Has this request been solicited yet?
+   */
+  int was_solicited;
+
   /**
    * How many bytes does the client intend to send?
    */