diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-09-24 12:09:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-09-24 12:09:17 +0000 |
commit | ef1b94cfb7d9887782fc417d1df48314da68d575 (patch) | |
tree | cb4231a0ce40109c34b64ba956f83b9a3cdec440 /src/fs/fs_uri.c | |
parent | 7cefd6d64dfd666654141492495326d11265044b (diff) | |
download | gnunet-ef1b94cfb7d9887782fc417d1df48314da68d575.tar.gz gnunet-ef1b94cfb7d9887782fc417d1df48314da68d575.zip |
adding missing function
Diffstat (limited to 'src/fs/fs_uri.c')
-rw-r--r-- | src/fs/fs_uri.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/fs/fs_uri.c b/src/fs/fs_uri.c index 38dba8991..74d19d59f 100644 --- a/src/fs/fs_uri.c +++ b/src/fs/fs_uri.c | |||
@@ -786,6 +786,21 @@ GNUNET_FS_uri_loc_get_peer_identity (const struct GNUNET_FS_Uri *uri, | |||
786 | 786 | ||
787 | 787 | ||
788 | /** | 788 | /** |
789 | * Obtain the expiration of the LOC URI. | ||
790 | * | ||
791 | * @param uri location URI to get the expiration from | ||
792 | * @return expiration time of the URI | ||
793 | */ | ||
794 | struct GNUNET_TIME_Absolute | ||
795 | GNUNET_FS_uri_loc_get_expiration (const struct GNUNET_FS_Uri *uri) | ||
796 | { | ||
797 | GNUNET_assert (uri->type == loc); | ||
798 | returnuri->data.loc.expirationTime; | ||
799 | } | ||
800 | |||
801 | |||
802 | |||
803 | /** | ||
789 | * Obtain the URI of the content itself. | 804 | * Obtain the URI of the content itself. |
790 | * | 805 | * |
791 | * @param uri location URI to get the content URI from | 806 | * @param uri location URI to get the content URI from |