projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding crc16 to gnunet_crypto_lib.h
[oweals/gnunet.git]
/
src
/
include
/
gnunet_fs_service.h
diff --git
a/src/include/gnunet_fs_service.h
b/src/include/gnunet_fs_service.h
index ad4441bd3631aed543d874f0209f4f8bc83737d2..4b1b1b1993e5fec0190119eb534d2cdd3fff6cd6 100644
(file)
--- a/
src/include/gnunet_fs_service.h
+++ b/
src/include/gnunet_fs_service.h
@@
-1642,6
+1642,16
@@
struct GNUNET_TIME_Absolute
GNUNET_FS_year_to_time (unsigned int year);
GNUNET_FS_year_to_time (unsigned int year);
+/**
+ * Convert an expiration time to the respective year (rounds)
+ *
+ * @param at absolute time
+ * @return year a year (after 1970), 0 on error
+ */
+unsigned int
+GNUNET_FS_time_to_year (struct GNUNET_TIME_Absolute at);
+
+
/**
* Handle to the file-sharing service.
*/
/**
* Handle to the file-sharing service.
*/