- added check against statistics
[oweals/gnunet.git] / src / datastore / datastore.h
index fa8352d2467636752810d79872d7751cdadaa3c5..c8b2c722bbfc62a9a31336d735a88bbfa91f64f8 100644 (file)
@@ -31,6 +31,8 @@
 
 #include "gnunet_util_lib.h"
 
+GNUNET_NETWORK_STRUCT_BEGIN
+
 /**
  * Message from datastore service informing client about
  * the current size of the datastore.
@@ -72,6 +74,12 @@ struct StatusMessage
    */
   int32_t status GNUNET_PACKED;
 
+  /**
+   * Minimum expiration time required for content to be stored
+   * by the datacache at this time, zero for unknown or no limit.
+   */
+  struct GNUNET_TIME_AbsoluteNBO min_expiration;
+
 };
 
 
@@ -122,7 +130,7 @@ struct GetMessage
    * Desired key (optional).  Check the "size" of the
    * header to see if the key is actually present.
    */
-  GNUNET_HashCode key GNUNET_PACKED;
+  GNUNET_HashCode key;
 
 };
 
@@ -245,10 +253,10 @@ struct DataMessage
   /**
    * Key under which the item can be found.
    */
-  GNUNET_HashCode key GNUNET_PACKED;
+  GNUNET_HashCode key;
 
 };
-
+GNUNET_NETWORK_STRUCT_END