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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2015-05-24 15:01:19 UTC
  • mto: (4.1.53 sid)
  • mto: This revision was merged to the branch mainline in revision 102.
  • Revision ID: package-import@ubuntu.com-20150524150119-hsh6cbr1fqseapga
Tags: upstream-2.2.18
ImportĀ upstreamĀ versionĀ 2.2.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef ISTREAM_UNIX_H
 
2
#define ISTREAM_UNIX_H
 
3
 
 
4
struct istream *i_stream_create_unix(int fd, size_t max_buffer_size);
 
5
/* Start trying to read a file descriptor from the UNIX socket. */
 
6
void i_stream_unix_set_read_fd(struct istream *input);
 
7
/* Stop trying to read a file descriptor from the UNIX socket. */
 
8
void i_stream_unix_unset_read_fd(struct istream *input);
 
9
/* Returns the fd that the last i_stream_read() received, or -1 if no fd
 
10
   was received. This function must be called before
 
11
   i_stream_unix_set_read_fd() is called again after successfully receiving
 
12
   a file descriptor. */
 
13
int i_stream_unix_get_read_fd(struct istream *input);
 
14
 
 
15
#endif