bf86854ab627b55fb5008ba8285559d3f6263304
[util-vserver.git] / vserver-start / configuration-init.c
1 // $Id: configuration-init.c,v 1.3 2004/10/19 21:11:10 ensc Exp $    --*- c -*--
2
3 // Copyright (C) 2004 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
4 //  
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; version 2 of the License.
8 //  
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 // GNU General Public License for more details.
13 //  
14 // You should have received a copy of the GNU General Public License
15 // along with this program; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18
19 #ifdef HAVE_CONFIG_H
20 #  include <config.h>
21 #endif
22
23 #include "configuration.h"
24 #include "interface.h"
25 void
26 Cfg_init(struct Configuration *cfg)
27 {
28   struct vc_ctx_caps const      caps = {
29     .bcaps = 0,
30     .bmask = 0,
31     .ccaps = 0,
32     .cmask = 0
33   };
34
35   struct vc_ctx_flags const     flags = {
36     .flagword = 0,
37     .mask     = 0
38   };
39   
40   Vector_init(&cfg->interfaces, sizeof(struct Interface));
41   cfg->vdir      = 0;
42   cfg->xid       = VC_DYNAMIC_XID;
43   cfg->broadcast = 0;
44   cfg->ctx_caps  = caps;
45   cfg->ctx_flags = flags;
46 }