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

Unified Diff: utils/archive/reader.h

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: Merge 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
« no previous file with comments | « utils/archive/read_request.dart ('k') | utils/archive/reader.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/archive/reader.h
diff --git a/utils/archive/reader.h b/utils/archive/reader.h
new file mode 100644
index 0000000000000000000000000000000000000000..b1f24cad1153c13d95b765cc10b2d0639b5668b3
--- /dev/null
+++ b/utils/archive/reader.h
@@ -0,0 +1,83 @@
+// 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.
+
+/**
+ * This file declares request-handling functions for reading archives. Each
+ * function is called when a message is received with the corresponding request
+ * type, and posts a success or error response to the reply port.
+ *
+ * There is a close correspondence between functions here and the libarchive
+ * API. It's left up to the Dart code to present a more Darty API. As such,
+ * documentation of these functions is omitted, since it's available in the
+ * libarchive documentation.
+ */
+#ifndef DART_ARCHIVE_READER_H_
+#define DART_ARCHIVE_READER_H_
+
+#include "dart_archive.h"
+
+void archiveReadNew(Dart_Port p);
+
+void archiveReadSupportFilterAll(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFilterBzip2(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFilterCompress(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFilterGzip(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFilterLzma(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFilterXz(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFilterProgram(Dart_Port p, struct archive* a,
+ Dart_CObject* request);
+
+void archiveReadSupportFilterProgramSignature(
+ Dart_Port p, struct archive* a, Dart_CObject* request);
+
+void archiveReadSupportFormatAll(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFormatAr(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFormatCpio(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFormatEmpty(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFormatIso9660(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFormatMtree(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFormatRaw(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFormatTar(Dart_Port p, struct archive* a);
+
+void archiveReadSupportFormatZip(Dart_Port p, struct archive* a);
+
+void archiveReadSetFilterOptions(Dart_Port p, struct archive* a,
+ Dart_CObject* request);
+
+void archiveReadSetFormatOptions(Dart_Port p, struct archive* a,
+ Dart_CObject* request);
+
+void archiveReadSetOptions(Dart_Port p, struct archive* a,
+ Dart_CObject* request);
+
+void archiveReadOpenFilename(Dart_Port p, struct archive* a,
+ Dart_CObject* request);
+
+void archiveReadOpenMemory(Dart_Port p, struct archive* a,
+ Dart_CObject* request);
+
+void archiveReadNextHeader(Dart_Port p, struct archive* a);
+
+void archiveReadDataBlock(Dart_Port p, struct archive* a);
+
+void archiveReadDataSkip(Dart_Port p, struct archive* a);
+
+void archiveReadClose(Dart_Port p, struct archive* a);
+
+void archiveReadFree(Dart_Port p, struct archive* a);
+
+#endif // DART_ARCHIVE_READER_H_
« no previous file with comments | « utils/archive/read_request.dart ('k') | utils/archive/reader.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698