Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1115)

Unified Diff: utils/archive/archive.dart

Issue 10842002: Add the beginnings of a Dart wrapper for libarchive. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: utils/archive/archive.dart
diff --git a/utils/archive/archive.dart b/utils/archive/archive.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d317f3687ed90468d029a034d73db5f1bbb94177
--- /dev/null
+++ b/utils/archive/archive.dart
@@ -0,0 +1,25 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+/**
+ * The primary library file for the archive library. This is the only file that
+ * should be imported by clients.
+ */
+#library("archive");
+
+#import("reader.dart", prefix: "reader");
+
+// TODO(nweiz): Remove this when 3071 is fixed.
+/** An error raised by the archive library. */
+interface ArchiveError {
+ /** A description of the error that occurred. */
+ final String message;
+
+ /** The error code for the error, or null. */
+ final int errno;
+}
+
+// TODO(nweiz): Remove this when 3071 is fixed.
+/** See [reader.ArchiveReader]. */
+class ArchiveReader extends reader.ArchiveReader {}

Powered by Google App Engine
This is Rietveld 408576698