diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-04-23 15:45:18 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-04-23 15:45:18 +0000 |
commit | cd74baf3b5f44e84783a0020e6edd8454bfe0cbf (patch) | |
tree | 39581ca9bba59171e7cc234b958e34cf74bcc2ad /src/include | |
parent | 0793e4b7af79a49bf1bc275be95f306136ac8cbb (diff) | |
download | gnunet-cd74baf3b5f44e84783a0020e6edd8454bfe0cbf.tar.gz gnunet-cd74baf3b5f44e84783a0020e6edd8454bfe0cbf.zip |
- Support flushing of buffered data
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_bio_lib.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/include/gnunet_bio_lib.h b/src/include/gnunet_bio_lib.h index 47d8d5e1e..b490fdf54 100644 --- a/src/include/gnunet_bio_lib.h +++ b/src/include/gnunet_bio_lib.h | |||
@@ -225,6 +225,17 @@ GNUNET_BIO_write (struct GNUNET_BIO_WriteHandle *h, const void *buffer, | |||
225 | 225 | ||
226 | 226 | ||
227 | /** | 227 | /** |
228 | * Force a buffered writer to flush its buffer | ||
229 | * | ||
230 | * @param h the writer handle | ||
231 | * @return GNUNET_OK upon success. Upon failure GNUNET_SYSERR is returned and | ||
232 | * the file is closed | ||
233 | */ | ||
234 | int | ||
235 | GNUNET_BIO_flush (struct GNUNET_BIO_WriteHandle *h); | ||
236 | |||
237 | |||
238 | /** | ||
228 | * Write a string to a file. | 239 | * Write a string to a file. |
229 | * | 240 | * |
230 | * @param h handle to open file | 241 | * @param h handle to open file |