[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9023 - in gnunet/src: fs include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9023 - in gnunet/src: fs include |
Date: |
Thu, 24 Sep 2009 06:09:17 -0600 |
Author: grothoff
Date: 2009-09-24 06:09:17 -0600 (Thu, 24 Sep 2009)
New Revision: 9023
Modified:
gnunet/src/fs/fs_uri.c
gnunet/src/include/gnunet_fs_service.h
Log:
adding missing function
Modified: gnunet/src/fs/fs_uri.c
===================================================================
--- gnunet/src/fs/fs_uri.c 2009-09-24 04:59:14 UTC (rev 9022)
+++ gnunet/src/fs/fs_uri.c 2009-09-24 12:09:17 UTC (rev 9023)
@@ -786,6 +786,21 @@
/**
+ * Obtain the expiration of the LOC URI.
+ *
+ * @param uri location URI to get the expiration from
+ * @return expiration time of the URI
+ */
+struct GNUNET_TIME_Absolute
+GNUNET_FS_uri_loc_get_expiration (const struct GNUNET_FS_Uri *uri)
+{
+ GNUNET_assert (uri->type == loc);
+ returnuri->data.loc.expirationTime;
+}
+
+
+
+/**
* Obtain the URI of the content itself.
*
* @param uri location URI to get the content URI from
Modified: gnunet/src/include/gnunet_fs_service.h
===================================================================
--- gnunet/src/include/gnunet_fs_service.h 2009-09-24 04:59:14 UTC (rev
9022)
+++ gnunet/src/include/gnunet_fs_service.h 2009-09-24 12:09:17 UTC (rev
9023)
@@ -186,6 +186,16 @@
/**
+ * Obtain the expiration of the LOC URI.
+ *
+ * @param uri location URI to get the expiration from
+ * @return expiration time of the URI
+ */
+struct GNUNET_TIME_Absolute
+GNUNET_FS_uri_loc_get_expiration (const struct GNUNET_FS_Uri *uri);
+
+
+/**
* Construct a location URI (this peer will be used for the location).
*
* @param baseURI content offered by the sender
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9023 - in gnunet/src: fs include,
gnunet <=