Mercurial > dovecot > original-hg > dovecot-1.2
diff src/master/login-process.c @ 764:f57c52738f90 HEAD
Renamed IBuffer and OBuffer to IStream and OStream which describes their
functionality better. I tried to keep the variable names and comments also
sensible.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 06 Dec 2002 03:09:22 +0200 |
parents | db6fb0aa16d1 |
children | 6efced4f80de |
line wrap: on
line diff
--- a/src/master/login-process.c Fri Dec 06 00:37:33 2002 +0200 +++ b/src/master/login-process.c Fri Dec 06 03:09:22 2002 +0200 @@ -3,7 +3,7 @@ #include "common.h" #include "ioloop.h" #include "network.h" -#include "obuffer.h" +#include "ostream.h" #include "fdpass.h" #include "fd-close-on-exec.h" #include "env-util.h" @@ -25,7 +25,7 @@ pid_t pid; int fd; IO io; - OBuffer *outbuf; + OStream *output; unsigned int listening:1; unsigned int destroyed:1; }; @@ -81,7 +81,7 @@ reply.id = request->login_id; process = request->process; - if (o_buffer_send(process->outbuf, &reply, sizeof(reply)) < 0) + if (o_stream_send(process->output, &reply, sizeof(reply)) < 0) login_process_destroy(process); (void)close(request->fd); @@ -182,7 +182,7 @@ p->fd = fd; p->listening = TRUE; p->io = io_add(fd, IO_READ, login_process_input, p); - p->outbuf = o_buffer_create_file(fd, default_pool, + p->output = o_stream_create_file(fd, default_pool, sizeof(MasterReply)*10, IO_PRIORITY_DEFAULT, FALSE); @@ -215,7 +215,7 @@ if (p->listening) listening_processes--; - o_buffer_close(p->outbuf); + o_stream_close(p->output); io_remove(p->io); (void)close(p->fd); @@ -232,7 +232,7 @@ if (--p->refcount > 0) return; - o_buffer_unref(p->outbuf); + o_stream_unref(p->output); i_free(p); }