~james-page/ubuntu/raring/dovecot/autopkgtest

« back to all changes in this revision

Viewing changes to src/lib/ostream-internal.h

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-06-11 11:11:54 UTC
  • mfrom: (1.15.2) (4.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20120611111154-678cwbdj6ktgsv1h
Tags: 1:2.1.7-1ubuntu1
* Merge from Debian unstable, remaining changes:
  + Add mail-stack-delivery package:
    - Update d/rules
    - d/control: convert existing dovecot-postfix package to a dummy
      package and add new mail-stack-delivery package.
    - Update maintainer scripts.
    - Rename d/dovecot-postfix.* to debian/mail-stack-delivery.*
    - d/mail-stack-delivery.preinst: Move previously installed backups and
      config files to a new package namespace.
    - d/mail-stack-delivery.prerm: Added to handle downgrades.
  + Use Snakeoil SSL certificates by default:
    - d/control: Depend on ssl-cert.
    - d/dovecot-core.postinst: Relax grep for SSL_* a bit.
  + Add autopkgtest to debian/tests/*.
  + Add ufw integration:
    - d/dovecot-core.ufw.profile: new ufw profile.
    - d/rules: install profile in dovecot-core.
    - d/control: dovecot-core - suggest ufw.
  + d/{control,rules}: enable PIE hardening.
  + d/dovecot-core.dirs: Added usr/share/doc/dovecot-core
  + Add apport hook:
    - d/rules, d/source_dovecot.py
  + Add upstart job:
    - d/rules, d/dovecot-core.dovecot.upstart, d/control,
      d/dovecot-core.dirs, dovecot-imapd.{postrm, postinst, prerm},
      d/dovecot-pop3d.{postinst, postrm, prerm}.
      d/mail-stack-deliver.postinst: Convert init script to upstart.
  + d/control: Added Pre-Depends: dpkg (>= 1.15.6) to dovecot-dbg to support
    xz compression in Ubuntu.
  + d/control: Demote dovecot-common Recommends: to Suggests: to prevent
    install of extra packages on upgrade.
  + d/patches/dovecot-drac.patch: Updated with version for dovecot >= 2.0.0.
  + d/control: Drop B-D on systemd.
* Dropped changes:
  + d/patches/fix-racey-restart.patch: part of 2.1.x, no longer required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef OSTREAM_INTERNAL_H
2
 
#define OSTREAM_INTERNAL_H
3
 
 
4
 
#include "ostream.h"
5
 
#include "iostream-internal.h"
6
 
 
7
 
struct ostream_private {
8
 
/* inheritance: */
9
 
        struct iostream_private iostream;
10
 
 
11
 
/* methods: */
12
 
        void (*cork)(struct ostream_private *stream, bool set);
13
 
        int (*flush)(struct ostream_private *stream);
14
 
        void (*flush_pending)(struct ostream_private *stream, bool set);
15
 
        size_t (*get_used_size)(const struct ostream_private *stream);
16
 
        int (*seek)(struct ostream_private *stream, uoff_t offset);
17
 
        ssize_t (*sendv)(struct ostream_private *stream,
18
 
                         const struct const_iovec *iov,
19
 
                         unsigned int iov_count);
20
 
        int (*write_at)(struct ostream_private *stream,
21
 
                        const void *data, size_t size, uoff_t offset);
22
 
        off_t (*send_istream)(struct ostream_private *outstream,
23
 
                              struct istream *instream);
24
 
 
25
 
/* data: */
26
 
        struct ostream ostream;
27
 
        size_t max_buffer_size;
28
 
 
29
 
        stream_flush_callback_t *callback;
30
 
        void *context;
31
 
 
32
 
        unsigned int corked:1;
33
 
};
34
 
 
35
 
struct ostream *o_stream_create(struct ostream_private *_stream);
36
 
 
37
 
off_t io_stream_copy(struct ostream *outstream, struct istream *instream,
38
 
                     size_t block_size);
39
 
 
40
 
#endif