Mercurial > dovecot > core-2.2
view src/dict/dict-connection.h @ 14920:a097ef0a9d6d
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch]
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 19 Aug 2012 14:21:37 +0300 |
parents | 0f7b25f3e2ce |
children | dc3a95fe330b |
line wrap: on
line source
#ifndef DICT_CONNECTION_H #define DICT_CONNECTION_H #include "dict.h" struct dict_connection_transaction { unsigned int id; struct dict_connection *conn; struct dict_transaction_context *ctx; }; struct dict_connection { struct dict_connection *prev, *next; struct dict_server *server; char *username; char *name; struct dict *dict; enum dict_data_type value_type; int fd; struct io *io; struct istream *input; struct ostream *output; struct dict_iterate_context *iter_ctx; /* There are only a few transactions per client, so keeping them in array is fast enough */ ARRAY(struct dict_connection_transaction) transactions; }; struct dict_connection *dict_connection_create(int fd); void dict_connection_destroy(struct dict_connection *conn); void dict_connections_destroy_all(void); #endif