[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11766 - in gnunet/src: fs include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11766 - in gnunet/src: fs include |
Date: |
Wed, 16 Jun 2010 13:34:03 +0200 |
Author: grothoff
Date: 2010-06-16 13:34:03 +0200 (Wed, 16 Jun 2010)
New Revision: 11766
Modified:
gnunet/src/fs/fs_file_information.c
gnunet/src/include/gnunet_fs_service.h
Log:
is dir test
Modified: gnunet/src/fs/fs_file_information.c
===================================================================
--- gnunet/src/fs/fs_file_information.c 2010-06-16 09:35:48 UTC (rev 11765)
+++ gnunet/src/fs/fs_file_information.c 2010-06-16 11:34:03 UTC (rev 11766)
@@ -628,6 +628,19 @@
/**
+ * Test if a given entry represents a directory.
+ *
+ * @param ent check if this FI represents a directory
+ * @return GNUNET_YES if so, GNUNET_NO if not
+ */
+int
+GNUNET_FS_file_information_is_directory (struct GNUNET_FS_FileInformation *ent)
+{
+ return ent->is_directory;
+}
+
+
+/**
* Create an entry for an empty directory in a publish-structure.
* This function should be used by applications for which the
* use of "GNUNET_FS_file_information_create_from_directory"
Modified: gnunet/src/include/gnunet_fs_service.h
===================================================================
--- gnunet/src/include/gnunet_fs_service.h 2010-06-16 09:35:48 UTC (rev
11765)
+++ gnunet/src/include/gnunet_fs_service.h 2010-06-16 11:34:03 UTC (rev
11766)
@@ -1897,6 +1897,16 @@
/**
+ * Test if a given entry represents a directory.
+ *
+ * @param ent check if this FI represents a directory
+ * @return GNUNET_YES if so, GNUNET_NO if not
+ */
+int
+GNUNET_FS_file_information_is_directory (struct GNUNET_FS_FileInformation
*ent);
+
+
+/**
* Add an entry to a directory in a publish-structure. Clients
* should never modify publish structures that were passed to
* "GNUNET_FS_publish_start" already.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11766 - in gnunet/src: fs include,
gnunet <=