20#include <citrusleaf/alloc.h>
33typedef struct as_host_s {
33typedef struct as_host_s { {
…};
68 trg->
name = (
char*)cf_strdup(src->
name);
79 trg->
name = (
char*)cf_strdup(hostname);
80 trg->
tls_name = tls_name ? (
char*)cf_strdup(tls_name) : NULL;
static void as_host_copy(const as_host *src, as_host *trg)
static void as_host_destroy(as_host *host)
bool as_host_parse_addresses(char *str, as_vector *hosts)
static void as_host_copy_fields(as_host *trg, const char *hostname, const char *tls_name, uint16_t port)