fixing leak
[oweals/gnunet.git] / src / include / gnunet_fs_service.h
index 8238083b1ef7df4afc4518691d1e9f94335af9af..13b0cd2c5a422ad01598a23d7a45b14a28ef945c 100644 (file)
@@ -1618,6 +1618,22 @@ struct GNUNET_FS_BlockOptions
 };
 
 
+/**
+ * Return the current year (i.e. '2011').
+ */
+unsigned int
+GNUNET_FS_get_current_year (void);
+
+
+/**
+ * Convert a year to an expiration time of January 1st of that year.
+ *
+ * @param year a year (after 1970, please ;-)).
+ * @return absolute time for January 1st of that year.
+ */
+struct GNUNET_TIME_Absolute
+GNUNET_FS_year_to_time (unsigned int year);
+
 
 /**
  * Handle to the file-sharing service.