diff options
Diffstat (limited to 'src/include/gnunet_disk_lib.h')
-rw-r--r-- | src/include/gnunet_disk_lib.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h index f693615f1..d1e1e0333 100644 --- a/src/include/gnunet_disk_lib.h +++ b/src/include/gnunet_disk_lib.h | |||
@@ -59,32 +59,10 @@ enum GNUNET_FILE_Type { | |||
59 | * Handle used to access files (and pipes). | 59 | * Handle used to access files (and pipes). |
60 | */ | 60 | */ |
61 | struct GNUNET_DISK_FileHandle { | 61 | struct GNUNET_DISK_FileHandle { |
62 | #if WINDOWS | ||
63 | /** | 62 | /** |
64 | * File handle under W32. | 63 | * File handle on Unix-like systems. |
65 | */ | ||
66 | HANDLE h; | ||
67 | |||
68 | /** | ||
69 | * Type | ||
70 | */ | ||
71 | enum GNUNET_FILE_Type type; | ||
72 | |||
73 | /** | ||
74 | * Structure for overlapped reading (for pipes) | ||
75 | */ | ||
76 | OVERLAPPED *oOverlapRead; | ||
77 | |||
78 | /** | ||
79 | * Structure for overlapped writing (for pipes) | ||
80 | */ | ||
81 | OVERLAPPED *oOverlapWrite; | ||
82 | #else | ||
83 | /** | ||
84 | * File handle on other OSes. | ||
85 | */ | 64 | */ |
86 | int fd; | 65 | int fd; |
87 | #endif | ||
88 | }; | 66 | }; |
89 | 67 | ||
90 | 68 | ||
@@ -495,19 +473,6 @@ const struct GNUNET_DISK_FileHandle * | |||
495 | GNUNET_DISK_pipe_handle(const struct GNUNET_DISK_PipeHandle *p, | 473 | GNUNET_DISK_pipe_handle(const struct GNUNET_DISK_PipeHandle *p, |
496 | enum GNUNET_DISK_PipeEnd n); | 474 | enum GNUNET_DISK_PipeEnd n); |
497 | 475 | ||
498 | |||
499 | #if WINDOWS | ||
500 | /** | ||
501 | * Get a GNUnet file handle from a W32 handle (W32-only). | ||
502 | * Do not call on non-W32 platforms (returns NULL). | ||
503 | * | ||
504 | * @param handle native handle | ||
505 | * @return GNUnet file handle corresponding to the W32 handle | ||
506 | */ | ||
507 | struct GNUNET_DISK_FileHandle * | ||
508 | GNUNET_DISK_get_handle_from_w32_handle(HANDLE osfh); | ||
509 | #endif | ||
510 | |||
511 | /** | 476 | /** |
512 | * Update POSIX permissions mask of a file on disk. If both argumets | 477 | * Update POSIX permissions mask of a file on disk. If both argumets |
513 | * are #GNUNET_NO, the file is made world-read-write-executable (777). | 478 | * are #GNUNET_NO, the file is made world-read-write-executable (777). |