adding missing function
authorChristian Grothoff <christian@grothoff.org>
Thu, 24 Sep 2009 12:09:17 +0000 (12:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 24 Sep 2009 12:09:17 +0000 (12:09 +0000)
src/fs/fs_uri.c
src/include/gnunet_fs_service.h

index 38dba89910025f202ea218e70cbee7cf542fa8ad..74d19d59f27072b28310f86a603e97a3f10c06ca 100644 (file)
@@ -785,6 +785,21 @@ GNUNET_FS_uri_loc_get_peer_identity (const struct GNUNET_FS_Uri *uri,
 }
 
 
+/**
+ * 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.
  *
index f89a343b96a0e7e9dd0a5ccce6260deac1083386..3f603e581cd2b6bbb22d3bcfffa39a9ae2c34278 100644 (file)
@@ -185,6 +185,16 @@ struct GNUNET_FS_Uri *
 GNUNET_FS_uri_loc_get_uri (const struct GNUNET_FS_Uri *uri);
 
 
+/**
+ * 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).
  *