-nicer logging
[oweals/gnunet.git] / src / include / gnunet_disk_lib.h
index 7de64abffe2f348ca4d8765c651491990d185a81..6b832b4ecd2e1b5dd164c685bf0873b91805f2b7 100644 (file)
@@ -1,6 +1,6 @@
 /*
      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
@@ -35,6 +35,11 @@ struct GNUNET_DISK_PipeHandle;
  */
 enum GNUNET_FILE_Type
 {
+  /**
+   * Handle represents an event.
+   */
+  GNUNET_DISK_HANLDE_TYPE_EVENT,
+
   /**
    * Handle represents a file.
    */
@@ -506,11 +511,12 @@ GNUNET_DISK_pipe_handle (const struct GNUNET_DISK_PipeHandle *p,
  */
 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
@@ -521,7 +527,6 @@ GNUNET_DISK_fix_permissions (const char *fn,
                              int require_uid_match,
                              int require_gid_match);
 
-#endif
 
 
 /**