/*
This file is part of GNUnet.
- (C) 2001-2012 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2001-2012 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
You should have received a copy of the GNU General Public License
along with GNUnet; see the file COPYING. If not, write to the
- Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
+ Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
*/
/**
* @file include/gnunet_disk_lib.h
*/
enum GNUNET_FILE_Type
{
+ /**
+ * Handle represents an event.
+ */
+ GNUNET_DISK_HANLDE_TYPE_EVENT,
+
/**
* Handle represents a file.
*/
* @param filename name of the file
* @param dev set to the device ID
* @param ino set to the inode ID
- * @return GNUNET_OK on success
+ * @return #GNUNET_OK on success
*/
int
GNUNET_DISK_file_get_identifiers (const char *filename,
*/
struct GNUNET_DISK_FileHandle *
GNUNET_DISK_get_handle_from_w32_handle (HANDLE osfh);
-#else
+#endif
/**
* Update POSIX permissions mask of a file on disk. If both argumets
* are #GNUNET_NO, the file is made world-read-write-executable (777).
+ * Does nothing on W32.
*
* @param fn name of the file to update
* @param require_uid_match #GNUNET_YES means 700
int require_uid_match,
int require_gid_match);
-#endif
-
/**
* Get a handle from a native integer FD.
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/
int
-GNUNET_DISK_file_copy (const char *src, const char *dst);
+GNUNET_DISK_file_copy (const char *src,
+ const char *dst);
/**
* @param filename complete filename (absolute path)
* @param dirname directory name (absolute path)
*/
-typedef void (*GNUNET_DISK_DirectoryIteratorCallback) (void *cls,
- struct GNUNET_DISK_DirectoryIterator *di,
- const char *filename,
- const char *dirname);
+typedef void
+(*GNUNET_DISK_DirectoryIteratorCallback) (void *cls,
+ struct GNUNET_DISK_DirectoryIterator *di,
+ const char *filename,
+ const char *dirname);
/**