gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19837 - in gnunet/src: fs include


From: gnunet
Subject: [GNUnet-SVN] r19837 - in gnunet/src: fs include
Date: Sat, 18 Feb 2012 16:16:33 +0100

Author: grothoff
Date: 2012-02-18 16:16:33 +0100 (Sat, 18 Feb 2012)
New Revision: 19837

Modified:
   gnunet/src/fs/fs_namespace.c
   gnunet/src/include/gnunet_fs_service.h
Log:
add GNUNET_FS_namespace_dup API call

Modified: gnunet/src/fs/fs_namespace.c
===================================================================
--- gnunet/src/fs/fs_namespace.c        2012-02-18 13:50:45 UTC (rev 19836)
+++ gnunet/src/fs/fs_namespace.c        2012-02-18 15:16:33 UTC (rev 19837)
@@ -520,6 +520,20 @@
 
 
 /**
+ * Duplicate a namespace handle.
+ *
+ * @param ns namespace handle
+ * @return duplicated handle to the namespace
+ */
+struct GNUNET_FS_Namespace *
+GNUNET_FS_namespace_dup (struct GNUNET_FS_Namespace *ns)
+{
+  ns->rc++;
+  return ns;
+}
+
+
+/**
  * Delete a namespace handle.  Can be used for a clean shutdown (free
  * memory) or also to freeze the namespace to prevent further
  * insertions by anyone.

Modified: gnunet/src/include/gnunet_fs_service.h
===================================================================
--- gnunet/src/include/gnunet_fs_service.h      2012-02-18 13:50:45 UTC (rev 
19836)
+++ gnunet/src/include/gnunet_fs_service.h      2012-02-18 15:16:33 UTC (rev 
19837)
@@ -2157,6 +2157,16 @@
 
 
 /**
+ * Duplicate a namespace handle.
+ *
+ * @param ns namespace handle
+ * @return duplicated handle to the namespace
+ */
+struct GNUNET_FS_Namespace *
+GNUNET_FS_namespace_dup (struct GNUNET_FS_Namespace *ns);
+
+
+/**
  * Delete a namespace handle.  Can be used for a clean shutdown (free
  * memory) or also to freeze the namespace to prevent further
  * insertions by anyone.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]