From e68c2f2f25cce89321e97a332321150b67bd9c80 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 27 Apr 2011 18:33:54 +0000 Subject: new expiration api --- src/include/gnunet_fs_service.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/include/gnunet_fs_service.h') diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index 8238083b1..13b0cd2c5 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h @@ -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. -- cgit v1.2.3