iostream-temp.h revision baf346e71ebd7b44fcba4b48f4d39845453b778b
baf346e71ebd7b44fcba4b48f4d39845453b778bTimo Sirainen /* if o_stream_send_istream() is called with a readable fd, don't
baf346e71ebd7b44fcba4b48f4d39845453b778bTimo Sirainen actually copy the input stream, just have iostream_temp_finish()
baf346e71ebd7b44fcba4b48f4d39845453b778bTimo Sirainen return a new iostream pointing to the fd dup()ed */
cf636afb3826f0d8e15c248aa1fc04ce72820e08Timo Sirainen/* Start writing to given output stream. The data is initially written to
cf636afb3826f0d8e15c248aa1fc04ce72820e08Timo Sirainen memory, and later to a temporary file that is immediately unlinked. */
baf346e71ebd7b44fcba4b48f4d39845453b778bTimo Sirainenstruct ostream *iostream_temp_create(const char *temp_path_prefix,
cf636afb3826f0d8e15c248aa1fc04ce72820e08Timo Sirainen/* Finished writing to stream. Return input stream for it and free the
cf636afb3826f0d8e15c248aa1fc04ce72820e08Timo Sirainen output stream. */