#ifndef VUTIL_H
#define VUTIL_H
+#include "vserver.hh"
+
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#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[];
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;
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,