/usr/include/dovecot/iostream-private.h is in dovecot-dev 1:2.2.9-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | #ifndef IOSTREAM_PRIVATE_H
#define IOSTREAM_PRIVATE_H
/* This file is private to input stream and output stream implementations */
struct iostream_destroy_callback {
void (*callback)(void *context);
void *context;
};
struct iostream_private {
int refcount;
char *name;
char *error;
void (*close)(struct iostream_private *streami, bool close_parent);
void (*destroy)(struct iostream_private *stream);
void (*set_max_buffer_size)(struct iostream_private *stream,
size_t max_size);
ARRAY(struct iostream_destroy_callback) destroy_callbacks;
};
void io_stream_init(struct iostream_private *stream);
void io_stream_ref(struct iostream_private *stream);
void io_stream_unref(struct iostream_private *stream);
void io_stream_close(struct iostream_private *stream, bool close_parent);
void io_stream_set_max_buffer_size(struct iostream_private *stream,
size_t max_size);
/* Set a specific error for the stream. This shouldn't be used for regular
syscall errors where stream's errno is enough, since it's used by default.
The stream errno must always be set even if the error string is also set.
Setting this error replaces the previously set error. */
void io_stream_set_error(struct iostream_private *stream,
const char *fmt, ...) ATTR_FORMAT(2, 3);
void io_stream_set_verror(struct iostream_private *stream,
const char *fmt, va_list args) ATTR_FORMAT(2, 0);
#endif
|