diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-30 13:41:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-30 13:41:07 +0000 |
commit | e67c5886c645a5fda7753d3f72f62ea655d6655b (patch) | |
tree | 3058a0f96ddc820a97e38e47d87e6ebf685b23b8 /src/fs/fs.h | |
parent | d59ea5663203392637e84dea69feb9671ca2a3de (diff) | |
download | gnunet-e67c5886c645a5fda7753d3f72f62ea655d6655b.tar.gz gnunet-e67c5886c645a5fda7753d3f72f62ea655d6655b.zip |
fixes
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r-- | src/fs/fs.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h index 953e1e51b..2e870bb3b 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h | |||
@@ -602,6 +602,30 @@ void * | |||
602 | GNUNET_FS_make_file_reader_context_ (const char *filename); | 602 | GNUNET_FS_make_file_reader_context_ (const char *filename); |
603 | 603 | ||
604 | 604 | ||
605 | |||
606 | /** | ||
607 | * Function that provides data by copying from a buffer. | ||
608 | * | ||
609 | * @param cls closure (points to the buffer) | ||
610 | * @param offset offset to read from; it is possible | ||
611 | * that the caller might need to go backwards | ||
612 | * a bit at times | ||
613 | * @param max maximum number of bytes that should be | ||
614 | * copied to buf; readers are not allowed | ||
615 | * to provide less data unless there is an error; | ||
616 | * a value of "0" will be used at the end to allow | ||
617 | * the reader to clean up its internal state | ||
618 | * @param buf where the reader should write the data | ||
619 | * @param emsg location for the reader to store an error message | ||
620 | * @return number of bytes written, usually "max", 0 on error | ||
621 | */ | ||
622 | size_t | ||
623 | GNUNET_FS_data_reader_copy_(void *cls, | ||
624 | uint64_t offset, | ||
625 | size_t max, | ||
626 | void *buf, | ||
627 | char **emsg); | ||
628 | |||
605 | /** | 629 | /** |
606 | * Notification of FS that a search probe has made progress. | 630 | * Notification of FS that a search probe has made progress. |
607 | * This function is used INSTEAD of the client's event handler | 631 | * This function is used INSTEAD of the client's event handler |