aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-04-27 18:33:54 +0000
committerChristian Grothoff <christian@grothoff.org>2011-04-27 18:33:54 +0000
commite68c2f2f25cce89321e97a332321150b67bd9c80 (patch)
tree140788e18f2506ac44404d9e7153337c3f3a6029 /src/include
parent27ed8fcbc85a361864948edb517d47804c2b5a56 (diff)
downloadgnunet-e68c2f2f25cce89321e97a332321150b67bd9c80.tar.gz
gnunet-e68c2f2f25cce89321e97a332321150b67bd9c80.zip
new expiration api
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_fs_service.h16
1 files changed, 16 insertions, 0 deletions
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
1618}; 1618};
1619 1619
1620 1620
1621/**
1622 * Return the current year (i.e. '2011').
1623 */
1624unsigned int
1625GNUNET_FS_get_current_year (void);
1626
1627
1628/**
1629 * Convert a year to an expiration time of January 1st of that year.
1630 *
1631 * @param year a year (after 1970, please ;-)).
1632 * @return absolute time for January 1st of that year.
1633 */
1634struct GNUNET_TIME_Absolute
1635GNUNET_FS_year_to_time (unsigned int year);
1636
1621 1637
1622/** 1638/**
1623 * Handle to the file-sharing service. 1639 * Handle to the file-sharing service.