aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_disk_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-27 11:00:10 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-27 11:00:10 +0000
commit0238db34853380280ccf164918ebbb28260f4629 (patch)
tree2c47ddbbfa27e7a0479d5c12e78d77342780a4bd /src/include/gnunet_disk_lib.h
parentdc3ae8f36ec69ca2a96a93feda501682ff168320 (diff)
downloadgnunet-0238db34853380280ccf164918ebbb28260f4629.tar.gz
gnunet-0238db34853380280ccf164918ebbb28260f4629.zip
enabling use of pipes for signal communication also on UNIX to enable future integration with Java services
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r--src/include/gnunet_disk_lib.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index 9c88a163b..18f553576 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -32,11 +32,6 @@
32#endif 32#endif
33 33
34/** 34/**
35 * Opaque handle used to access files.
36 */
37struct GNUNET_DISK_FileHandle;
38
39/**
40 * Handle used to manage a pipe. 35 * Handle used to manage a pipe.
41 */ 36 */
42struct GNUNET_DISK_PipeHandle; 37struct GNUNET_DISK_PipeHandle;
@@ -759,36 +754,6 @@ GNUNET_DISK_file_unmap (struct GNUNET_DISK_MapHandle *h);
759int 754int
760GNUNET_DISK_file_sync (const struct GNUNET_DISK_FileHandle *h); 755GNUNET_DISK_file_sync (const struct GNUNET_DISK_FileHandle *h);
761 756
762/**
763 * Creates a named pipe/FIFO and opens it
764 * @param fn pointer to the name of the named pipe or to NULL
765 * @param flags open flags
766 * @param perm access permissions
767 * @return pipe handle on success, NULL on error
768 */
769struct GNUNET_DISK_FileHandle *
770GNUNET_DISK_npipe_create (char **fn, enum GNUNET_DISK_OpenFlags flags,
771 enum GNUNET_DISK_AccessPermissions perm);
772
773/**
774 * Opens already existing named pipe/FIFO
775 *
776 * @param fn name of an existing named pipe
777 * @param flags open flags
778 * @param perm access permissions
779 * @return pipe handle on success, NULL on error
780 */
781struct GNUNET_DISK_FileHandle *
782GNUNET_DISK_npipe_open (const char *fn, enum GNUNET_DISK_OpenFlags flags,
783 enum GNUNET_DISK_AccessPermissions perm);
784
785/**
786 * Closes a named pipe/FIFO
787 * @param pipe named pipe
788 * @return GNUNET_OK on success, GNUNET_SYSERR otherwise
789 */
790int
791GNUNET_DISK_npipe_close (struct GNUNET_DISK_FileHandle *pipe);
792 757
793#if 0 /* keep Emacsens' auto-indent happy */ 758#if 0 /* keep Emacsens' auto-indent happy */
794{ 759{