use 'Vserver' class instead of 'string'
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 21 Oct 2003 13:23:28 +0000 (13:23 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 21 Oct 2003 13:23:28 +0000 (13:23 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@253 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vutil.h
util-vserver/src/vutil.p

index ae00f4b..276858f 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef VUTIL_H
 #define VUTIL_H
 
+#include "vserver.hh"
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/wait.h>
@@ -42,7 +44,7 @@ extern bool testmode;
 #endif
 
 
-FILE *vutil_execdistcmd (const char *, const string &, const char *);
+FILE *vutil_execdistcmd (const char *, Vserver const &, const char *);
 extern const char K_DUMPFILES[];
 extern const char K_UNIFILES[];
 extern const char K_PKGVERSION[];
@@ -93,7 +95,7 @@ public:
                return ret;
        }
        // Load the file member of the package, but exclude configuration file
-       void loadfiles(const string &ref, set<string> &files)
+       void loadfiles(Vserver const &ref, set<string> &files)
        {
                if (debug > 2) cout << "Loading files for package " << name << endl;
                string namever = name + '-' + version;
index d9663d5..ca9e4fe 100644 (file)
@@ -30,7 +30,7 @@ int vbuild_chown (const char *path, uid_t uid, gid_t gid);
 int vbuild_file_copy (const char *src,
         const char *dst,
         struct stat&st);
-void vutil_loadallpkg (string&refserver, list<Package>&packages);
+void vutil_loadallpkg (Vserver const &refserver, list<Package>&packages);
 int vutil_lstat (string path, struct stat&st);
 FILE *vutil_execdistcmd (const char *key,
         const string&vserver,