diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-02-27 11:00:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-02-27 11:00:10 +0000 |
commit | 0238db34853380280ccf164918ebbb28260f4629 (patch) | |
tree | 2c47ddbbfa27e7a0479d5c12e78d77342780a4bd /src/include/gnunet_disk_lib.h | |
parent | dc3ae8f36ec69ca2a96a93feda501682ff168320 (diff) | |
download | gnunet-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.h | 35 |
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 | */ | ||
37 | struct GNUNET_DISK_FileHandle; | ||
38 | |||
39 | /** | ||
40 | * Handle used to manage a pipe. | 35 | * Handle used to manage a pipe. |
41 | */ | 36 | */ |
42 | struct GNUNET_DISK_PipeHandle; | 37 | struct GNUNET_DISK_PipeHandle; |
@@ -759,36 +754,6 @@ GNUNET_DISK_file_unmap (struct GNUNET_DISK_MapHandle *h); | |||
759 | int | 754 | int |
760 | GNUNET_DISK_file_sync (const struct GNUNET_DISK_FileHandle *h); | 755 | GNUNET_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 | */ | ||
769 | struct GNUNET_DISK_FileHandle * | ||
770 | GNUNET_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 | */ | ||
781 | struct GNUNET_DISK_FileHandle * | ||
782 | GNUNET_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 | */ | ||
790 | int | ||
791 | GNUNET_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 | { |