#ifndef DATABASE_H
#define DATABASE_H
-typedef struct database_hosts *database_hosts_t;
struct session_database;
struct session;
struct conf_service;
int match_zurl(const char *zurl, const char *pattern);
struct database *new_database(const char *id, NMEM nmem);
-database_hosts_t database_hosts_create(void);
-void database_hosts_destroy(database_hosts_t *);
-
-struct host *find_host(database_hosts_t hosts, const char *hostport);
#endif