changed matchlist-API to pass additional information about a
[util-vserver.git] / util-vserver / lib_internal / matchlist-initbyvserver.c
index 13b2828..20c3d64 100644 (file)
 
 
 bool
-MatchList_initByVserver(struct MatchList *list, char const *vserver,
+MatchList_initByVserver(struct MatchList *list,
+                       struct MatchVserverInfo const *vserver,
                        char const **res_appdir)
 {
   vcCfgStyle   style;
   char const   *vdir;
   char const   *appdir;
 
-  style  = vc_getVserverCfgStyle(vserver);
-  vdir   = vc_getVserverVdir(  vserver, style, true);
-  appdir = vc_getVserverAppDir(vserver, style, "vunify");
+  style  = vc_getVserverCfgStyle(vserver->name);
+  vdir   = vc_getVserverVdir(  vserver->name, style, true);
+  appdir = vc_getVserverAppDir(vserver->name, style, "vunify");
 
   if (vdir==0 || appdir==0) {
     free((char *)appdir);