sql-db-cache.c revision 300c5b822cde4a1d7247f49c9a0ab9f14c3ae37b
/* Copyright (c) 2004-2016 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "hash.h"
#include "sql-api-private.h"
#include "sql-db-cache.h"
#define SQL_DB_CACHE_CONTEXT(obj) \
struct sql_db_cache_context {
union sql_db_module_context module_ctx;
struct sql_db_cache *cache;
int refcount;
char *key;
};
struct sql_db_cache {
unsigned int unused_count, max_unused_connections;
};
{
struct sql_db_cache_context *head_ctx;
return;
else {
}
}
{
else {
}
else {
}
}
{
struct sql_db_cache_context *ctx;
}
{
}
struct sql_db *
const char *db_driver, const char *connect_string)
{
struct sql_db_cache_context *ctx;
char *key;
}
} else {
}
return db;
}
{
struct sql_db_cache *cache;
return cache;
}
{
}