diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-10-05 12:56:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-10-05 12:56:47 +0000 |
commit | dfad40793df72d1d03a6c9de41136f801bc681c2 (patch) | |
tree | c1baca4f1dbf4b372e08e6a5f6c36ab2d98b2f5e /src/util/disk.h | |
parent | f811206714d9cef29580a1944a0ef55d7be4972a (diff) | |
download | gnunet-dfad40793df72d1d03a6c9de41136f801bc681c2.tar.gz gnunet-dfad40793df72d1d03a6c9de41136f801bc681c2.zip |
fix
Diffstat (limited to 'src/util/disk.h')
-rw-r--r-- | src/util/disk.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/util/disk.h b/src/util/disk.h index 17ebe4a0a..96324e120 100644 --- a/src/util/disk.h +++ b/src/util/disk.h | |||
@@ -30,15 +30,27 @@ | |||
30 | 30 | ||
31 | #include "gnunet_disk_lib.h" | 31 | #include "gnunet_disk_lib.h" |
32 | 32 | ||
33 | |||
34 | /** | ||
35 | * Handle used to access files (and pipes). | ||
36 | */ | ||
33 | struct GNUNET_DISK_FileHandle | 37 | struct GNUNET_DISK_FileHandle |
34 | { | 38 | { |
35 | #ifdef MINGW | 39 | #ifdef MINGW |
40 | /** | ||
41 | * File handle under W32. | ||
42 | */ | ||
36 | HANDLE h; | 43 | HANDLE h; |
37 | #else | 44 | #else |
45 | /** | ||
46 | * File handle on other OSes. | ||
47 | */ | ||
38 | int fd; | 48 | int fd; |
39 | #endif | 49 | #endif |
40 | }; | 50 | }; |
41 | 51 | ||
52 | |||
53 | |||
42 | /** | 54 | /** |
43 | * Retrieve OS file handle | 55 | * Retrieve OS file handle |
44 | * | 56 | * |
@@ -48,7 +60,8 @@ struct GNUNET_DISK_FileHandle | |||
48 | * @param dst_len length of dst | 60 | * @param dst_len length of dst |
49 | * @return GNUNET_OK on success, GNUNET_SYSERR otherwise | 61 | * @return GNUNET_OK on success, GNUNET_SYSERR otherwise |
50 | */ | 62 | */ |
51 | int GNUNET_internal_disk_file_handle (const struct GNUNET_DISK_FileHandle *fh, | 63 | int GNUNET_DISK_internal_file_handle_ (const struct GNUNET_DISK_FileHandle *fh, |
52 | void *dst, unsigned int dst_len); | 64 | void *dst, |
65 | size_t dst_len); | ||
53 | 66 | ||
54 | #endif /* GNUNET_DISK_H_ */ | 67 | #endif /* GNUNET_DISK_H_ */ |