worker-pool.h (dovecot-2.3.16) | : | worker-pool.h (dovecot-2.3.17) | ||
---|---|---|---|---|
#ifndef WORKER_POOL_H | #ifndef WORKER_POOL_H | |||
#define WORKER_POOL_H | #define WORKER_POOL_H | |||
#include "indexer.h" | #include "indexer.h" | |||
#include "worker-connection.h" | ||||
struct connection; | struct connection; | |||
struct worker_pool * | struct worker_pool * | |||
worker_pool_init(const char *socket_path, indexer_status_callback_t *callback); | worker_pool_init(const char *socket_path, indexer_status_callback_t *callback, | |||
worker_available_callback_t *avail_callback); | ||||
void worker_pool_deinit(struct worker_pool **pool); | void worker_pool_deinit(struct worker_pool **pool); | |||
bool worker_pool_have_busy_connections(struct worker_pool *pool); | bool worker_pool_have_connections(struct worker_pool *pool); | |||
bool worker_pool_get_connection(struct worker_pool *pool, | bool worker_pool_get_connection(struct worker_pool *pool, | |||
struct connection **conn_r); | struct connection **conn_r); | |||
void worker_pool_release_connection(struct worker_pool *pool, | ||||
struct connection *conn); | ||||
struct connection * | struct connection * | |||
worker_pool_find_username_connection(struct worker_pool *pool, | worker_pool_find_username_connection(struct worker_pool *pool, | |||
const char *username); | const char *username); | |||
#endif | #endif | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 4 lines changed or added |