vhost.h File Reference

Go to the source code of this file.

Data Structures

struct  vhost_s

Typedefs

typedef struct vhost_s vhost_t
typedef struct vhost_list_s vhost_list_t

Functions

 LIST_HEAD (vhost_list_s, vhost_s)
int vhost_create (vhost_t **pv)
int vhost_free (vhost_t *v)
int vhost_list_create (vhost_list_t **pvs)
int vhost_list_free (vhost_list_t *vs)
int vhost_list_add (vhost_list_t *vs, vhost_t *vhost)
vhost_tvhost_list_get_n (vhost_list_t *vs, int n)
vhost_tvhost_list_get (vhost_list_t *vs, const char *host)

Typedef Documentation

typedef struct vhost_list_s vhost_list_t

Definition at line 43 of file vhost.h.

typedef struct vhost_s vhost_t

Function Documentation

LIST_HEAD ( vhost_list_s  ,
vhost_s   
)
int vhost_create ( vhost_t **  pv  ) 

Definition at line 3 of file vhost.c.

int vhost_free ( vhost_t v  ) 

Definition at line 20 of file vhost.c.

int vhost_list_add ( vhost_list_t vs,
vhost_t vhost 
)

Definition at line 32 of file vhost.c.

int vhost_list_create ( vhost_list_t **  pvs  ) 

Definition at line 80 of file vhost.c.

int vhost_list_free ( vhost_list_t vs  ) 

Definition at line 100 of file vhost.c.

vhost_t* vhost_list_get ( vhost_list_t vs,
const char *  host 
)

Definition at line 54 of file vhost.c.

vhost_t* vhost_list_get_n ( vhost_list_t vs,
int  n 
)

Definition at line 67 of file vhost.c.