about summary refs log tree commit diff
path: root/src/archive.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-06-20T14·11+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-06-20T14·11+0000
commit85effedca3e4cc3c10ccd835c9ea4fb712418cb9 (patch)
tree52e3ed6652abb945e6c87b045b0d4777ce4770ff /src/archive.cc
parent5079ccb45537fe8de4b9579e274523734a3f634e (diff)
* Flags to indicate how values are specified on the command line
  (--hash, --file, --name).

Diffstat (limited to 'src/archive.cc')
-rw-r--r--src/archive.cc11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/archive.cc b/src/archive.cc
index 2fdbfb47649c..591939bb6ad2 100644
--- a/src/archive.cc
+++ b/src/archive.cc
@@ -1,3 +1,5 @@
+#include <vector>
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
@@ -44,7 +46,7 @@ static void dumpEntries(const string & path, DumpSink & sink)
     DIR * dir = opendir(path.c_str());
     if (!dir) throw SysError("opening directory " + path);
 
-    Strings names;
+    vector<string> names;
 
     struct dirent * dirent;
     while (errno = 0, dirent = readdir(dir)) {
@@ -56,7 +58,7 @@ static void dumpEntries(const string & path, DumpSink & sink)
 
     sort(names.begin(), names.end());
 
-    for (Strings::iterator it = names.begin();
+    for (vector<string>::iterator it = names.begin();
          it != names.end(); it++)
     {
         writeString("entry", sink);
@@ -134,3 +136,8 @@ void dumpPath(const string & path, DumpSink & sink)
 
     writeString(")", sink);
 }
+
+
+void restorePath(const string & path, ReadSource & source)
+{
+}