diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-18 15:16:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-18 15:16:33 +0000 |
commit | cc9cf45916888ecbbc82b19f16a3cc8d9813c242 (patch) | |
tree | 5556cd2dd6a7b4d38da9b4cc95d7fe2bb99ffad6 /src/fs/fs_namespace.c | |
parent | 187184e240b2d1cb49e7183b8f80ee974c30460d (diff) | |
download | gnunet-cc9cf45916888ecbbc82b19f16a3cc8d9813c242.tar.gz gnunet-cc9cf45916888ecbbc82b19f16a3cc8d9813c242.zip |
add GNUNET_FS_namespace_dup API call
Diffstat (limited to 'src/fs/fs_namespace.c')
-rw-r--r-- | src/fs/fs_namespace.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/fs/fs_namespace.c b/src/fs/fs_namespace.c index ec4e2495a..9cb8cd5a4 100644 --- a/src/fs/fs_namespace.c +++ b/src/fs/fs_namespace.c | |||
@@ -520,6 +520,20 @@ GNUNET_FS_namespace_create (struct GNUNET_FS_Handle *h, const char *name) | |||
520 | 520 | ||
521 | 521 | ||
522 | /** | 522 | /** |
523 | * Duplicate a namespace handle. | ||
524 | * | ||
525 | * @param ns namespace handle | ||
526 | * @return duplicated handle to the namespace | ||
527 | */ | ||
528 | struct GNUNET_FS_Namespace * | ||
529 | GNUNET_FS_namespace_dup (struct GNUNET_FS_Namespace *ns) | ||
530 | { | ||
531 | ns->rc++; | ||
532 | return ns; | ||
533 | } | ||
534 | |||
535 | |||
536 | /** | ||
523 | * Delete a namespace handle. Can be used for a clean shutdown (free | 537 | * Delete a namespace handle. Can be used for a clean shutdown (free |
524 | * memory) or also to freeze the namespace to prevent further | 538 | * memory) or also to freeze the namespace to prevent further |
525 | * insertions by anyone. | 539 | * insertions by anyone. |