diff options
author | LRN <lrn1986@gmail.com> | 2013-03-03 01:57:19 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-03-03 01:57:19 +0000 |
commit | 5c2efc1952243768786f67d9fe8733cba1be0c2b (patch) | |
tree | 5f8acaa0aea14419f5dc6e317cb1c9d3ce89bfa4 /src/include/gnunet_fs_service.h | |
parent | 27d46ea3f6ceaef7f089d674f5634eeafa5e133a (diff) | |
download | gnunet-5c2efc1952243768786f67d9fe8733cba1be0c2b.tar.gz gnunet-5c2efc1952243768786f67d9fe8733cba1be0c2b.zip |
Be able to open existing namespaces
Diffstat (limited to 'src/include/gnunet_fs_service.h')
-rw-r--r-- | src/include/gnunet_fs_service.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/gnunet_fs_service.h b/src/include/gnunet_fs_service.h index 1cb5028b3..5b0217a19 100644 --- a/src/include/gnunet_fs_service.h +++ b/src/include/gnunet_fs_service.h | |||
@@ -2240,6 +2240,19 @@ GNUNET_FS_namespace_create (struct GNUNET_FS_Handle *h, const char *name); | |||
2240 | 2240 | ||
2241 | 2241 | ||
2242 | /** | 2242 | /** |
2243 | * Open the namespace with the given name; if it does not exist, | ||
2244 | * or the key file is corrupted, the function fails. | ||
2245 | * | ||
2246 | * @param h handle to the file sharing subsystem | ||
2247 | * @param name name of the namespace | ||
2248 | * @return handle to the namespace, | ||
2249 | * NULL on error (i.e. invalid filename, non-existent filename) | ||
2250 | */ | ||
2251 | struct GNUNET_FS_Namespace * | ||
2252 | GNUNET_FS_namespace_open_existing (struct GNUNET_FS_Handle *h, const char *name); | ||
2253 | |||
2254 | |||
2255 | /** | ||
2243 | * Context for creating a namespace asynchronously. | 2256 | * Context for creating a namespace asynchronously. |
2244 | */ | 2257 | */ |
2245 | struct GNUNET_FS_NamespaceCreationContext; | 2258 | struct GNUNET_FS_NamespaceCreationContext; |