[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r7127 - GNUnet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r7127 - GNUnet/src/include |
Date: |
Tue, 10 Jun 2008 16:55:13 -0600 (MDT) |
Author: grothoff
Date: 2008-06-10 16:55:12 -0600 (Tue, 10 Jun 2008)
New Revision: 7127
Modified:
GNUnet/src/include/gnunet_util_disk.h
Log:
improved filename API
Modified: GNUnet/src/include/gnunet_util_disk.h
===================================================================
--- GNUnet/src/include/gnunet_util_disk.h 2008-06-10 22:55:04 UTC (rev
7126)
+++ GNUnet/src/include/gnunet_util_disk.h 2008-06-10 22:55:12 UTC (rev
7127)
@@ -190,6 +190,26 @@
*/
void GNUNET_disk_filename_canonicalize (char *fn);
+
+/**
+ * Construct full path to a file inside of the private
+ * directory used by GNUnet. Also creates the corresponding
+ * directory. If the resulting name is supposed to be
+ * a directory, end the last argument in '/' (or pass
+ * DIR_SEPARATOR_STR as the last argument before NULL).
+ *
+ * @param is_daemon are we gnunetd or a client?
+ * @param varargs is NULL-terminated list of
+ * path components to append to the
+ * private directory name.
+ * @return the constructed filename
+ */
+char *
+GNUNET_get_home_filename (struct GNUNET_GE_Context *ectx,
+ struct GNUNET_GC_Configuration *cfg,
+ int is_daemon,
+ ...);
+
#if 0 /* keep Emacsens' auto-indent happy */
{
#endif
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r7127 - GNUnet/src/include,
gnunet <=