src/server/daemon/vserver.c

branch
config
changeset 255
b5d15a4a19f5
parent 82
740cfd9dd443
child 415
d938228c382e
equal deleted inserted replaced
254:4784c14aa639 255:b5d15a4a19f5
36 vs->log = NULL; 36 vs->log = NULL;
37 vs->ref = 1; 37 vs->ref = 1;
38 return vs; 38 return vs;
39 } 39 }
40 40
41 VirtualServer* vs_copy(VirtualServer *vs, pool_handle_t *pool) {
42 VirtualServer *newvs = malloc(sizeof(VirtualServer));
43 newvs->ref = 1;
44 newvs->document_root = sstrdup_pool(pool, vs->document_root);
45 newvs->host = sstrdup_pool(pool, vs->host);
46 newvs->name = sstrdup_pool(pool, vs->name);
47 newvs->objectfile = sstrdup_pool(pool, vs->objectfile);
48 newvs->acls = vs->acls;
49 acl_data_ref(newvs->acls);
50 newvs->log = vs->log; // TODO: ref
51
52 newvs->objects = vs->objects;
53
54 return newvs;
55 }
56
57
58 41
59 42
60 43
61 // public API 44 // public API
62 45

mercurial