138 |
138 |
139 |
139 |
140 ServerConfiguration *serverconfig = pool_calloc(pool, 1, sizeof(ServerConfiguration)); |
140 ServerConfiguration *serverconfig = pool_calloc(pool, 1, sizeof(ServerConfiguration)); |
141 serverconfig->ref = 1; |
141 serverconfig->ref = 1; |
142 serverconfig->pool = pool; |
142 serverconfig->pool = pool; |
143 serverconfig->listeners = NULL; |
|
144 serverconfig->host_vs = ucx_map_new(16); |
|
145 serverconfig->authdbs = ucx_map_new(16); |
|
146 |
143 |
147 UcxAllocator allocator = util_pool_allocator(serverconfig->pool); |
144 UcxAllocator allocator = util_pool_allocator(serverconfig->pool); |
148 serverconfig->a = pool_malloc(pool, sizeof(UcxAllocator)); |
145 serverconfig->a = pool_malloc(pool, sizeof(UcxAllocator)); |
149 *serverconfig->a = allocator; |
146 *serverconfig->a = allocator; |
|
147 |
|
148 serverconfig->listeners = NULL; |
|
149 serverconfig->host_vs = ucx_map_new_a(&allocator, 16); |
|
150 serverconfig->authdbs = ucx_map_new_a(&allocator, 16); |
|
151 serverconfig->resources = ucx_map_new_a(&allocator, 16); |
|
152 |
|
153 |
150 |
154 |
151 // TODO: init serverconfig stuff |
155 // TODO: init serverconfig stuff |
152 |
156 |
153 |
157 |
154 /* |
158 /* |