~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/lib/istream-seekable.h

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
   the fd and path of the created file. Typically the callback would also
9
9
   unlink the file before returning. */
10
10
struct istream *
 
11
i_streams_merge(struct istream *input[], size_t max_buffer_size,
 
12
                int (*fd_callback)(const char **path_r, void *context),
 
13
                void *context) ATTR_NULL(4);
 
14
 
 
15
/* Same as i_streams_merge(), but if all of the inputs are seekable already,
 
16
   create a concat stream instead. */
 
17
struct istream *
11
18
i_stream_create_seekable(struct istream *input[],
12
19
                         size_t max_buffer_size,
13
20
                         int (*fd_callback)(const char **path_r, void *context),
14
 
                         void *context);
 
21
                         void *context) ATTR_NULL(4);
 
22
 
 
23
struct istream *
 
24
i_stream_create_seekable_path(struct istream *input[],
 
25
                              size_t max_buffer_size,
 
26
                              const char *temp_path_prefix);
15
27
 
16
28
#endif