fixing leak
[oweals/gnunet.git] / src / include / gnunet_disk_lib.h
index a59d10ed000148ffd82d9eba33e41f14e93bb74f..383a9daa2defbc706fec0d7cc750172abcf71c64 100644 (file)
@@ -643,8 +643,19 @@ int GNUNET_DISK_file_unmap (struct GNUNET_DISK_MapHandle *h);
 int GNUNET_DISK_file_sync (const struct GNUNET_DISK_FileHandle *h);
 
 /**
- * Creates a named pipe/FIFO
- * @param fn name of the named pipe
+ * Creates a named pipe/FIFO and opens it
+ * @param fn pointer to the name of the named pipe or to NULL
+ * @param flags open flags
+ * @param perm access permissions
+ * @return pipe handle on success, NULL on error
+ */
+struct GNUNET_DISK_FileHandle *GNUNET_DISK_npipe_create (char **fn,
+    enum GNUNET_DISK_OpenFlags flags, enum GNUNET_DISK_AccessPermissions perm);
+
+/**
+ * Opens already existing named pipe/FIFO
+ *
+ * @param fn name of an existing named pipe
  * @param flags open flags
  * @param perm access permissions
  * @return pipe handle on success, NULL on error