pazpar2  1.11.3
Data Structures | Typedefs | Functions
host.h File Reference
#include <yaz/mutex.h>

Go to the source code of this file.

Data Structures

struct  host
 Represents a host (irrespective of databases) More...
 

Typedefs

typedef struct database_hosts * database_hosts_t
 

Functions

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, const char *proxy, int port, iochan_man_t iochan_man)
 
int host_getaddrinfo (struct host *host, iochan_man_t iochan_man)
 

Typedef Documentation

Definition at line 25 of file host.h.

Function Documentation

database_hosts_t database_hosts_create ( void  )

Definition at line 132 of file host.c.

References database_hosts::hosts, database_hosts::mutex, and pazpar2_mutex_create().

Referenced by config_create().

void database_hosts_destroy ( database_hosts_t *  )

Definition at line 141 of file host.c.

References host::cond_ready, host::ipport, host::mutex, and host::next.

Referenced by config_destroy().

struct host* find_host ( database_hosts_t  hosts,
const char *  hostport,
const char *  proxy,
int  port,
iochan_man_t  iochan_man 
)
int host_getaddrinfo ( struct host *  host,
iochan_man_t  iochan_man 
)