OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 /** |
| 6 * This file declares request-handling functions for reading archives. Each |
| 7 * function is called when a message is received with the corresponding request |
| 8 * type, and posts a success or error response to the reply port. |
| 9 * |
| 10 * There is a close correspondence between functions here and the libarchive |
| 11 * API. It's left up to the Dart code to present a more Darty API. As such, |
| 12 * documentation of these functions is omitted, since it's available in the |
| 13 * libarchive documentation. |
| 14 */ |
| 15 #ifndef DART_ARCHIVE_READER_H_ |
| 16 #define DART_ARCHIVE_READER_H_ |
| 17 |
| 18 #include "dart_archive.h" |
| 19 |
| 20 void archiveReadNew(Dart_Port p); |
| 21 |
| 22 void archiveReadSupportFilterAll(Dart_Port p, struct archive* a); |
| 23 |
| 24 void archiveReadSupportFilterBzip2(Dart_Port p, struct archive* a); |
| 25 |
| 26 void archiveReadSupportFilterCompress(Dart_Port p, struct archive* a); |
| 27 |
| 28 void archiveReadSupportFilterGzip(Dart_Port p, struct archive* a); |
| 29 |
| 30 void archiveReadSupportFilterLzma(Dart_Port p, struct archive* a); |
| 31 |
| 32 void archiveReadSupportFilterXz(Dart_Port p, struct archive* a); |
| 33 |
| 34 void archiveReadSupportFilterProgram(Dart_Port p, struct archive* a, |
| 35 Dart_CObject* request); |
| 36 |
| 37 void archiveReadSupportFilterProgramSignature( |
| 38 Dart_Port p, struct archive* a, Dart_CObject* request); |
| 39 |
| 40 void archiveReadSupportFormatAll(Dart_Port p, struct archive* a); |
| 41 |
| 42 void archiveReadSupportFormatAr(Dart_Port p, struct archive* a); |
| 43 |
| 44 void archiveReadSupportFormatCpio(Dart_Port p, struct archive* a); |
| 45 |
| 46 void archiveReadSupportFormatEmpty(Dart_Port p, struct archive* a); |
| 47 |
| 48 void archiveReadSupportFormatIso9660(Dart_Port p, struct archive* a); |
| 49 |
| 50 void archiveReadSupportFormatMtree(Dart_Port p, struct archive* a); |
| 51 |
| 52 void archiveReadSupportFormatRaw(Dart_Port p, struct archive* a); |
| 53 |
| 54 void archiveReadSupportFormatTar(Dart_Port p, struct archive* a); |
| 55 |
| 56 void archiveReadSupportFormatZip(Dart_Port p, struct archive* a); |
| 57 |
| 58 void archiveReadSetFilterOptions(Dart_Port p, struct archive* a, |
| 59 Dart_CObject* request); |
| 60 |
| 61 void archiveReadSetFormatOptions(Dart_Port p, struct archive* a, |
| 62 Dart_CObject* request); |
| 63 |
| 64 void archiveReadSetOptions(Dart_Port p, struct archive* a, |
| 65 Dart_CObject* request); |
| 66 |
| 67 void archiveReadOpenFilename(Dart_Port p, struct archive* a, |
| 68 Dart_CObject* request); |
| 69 |
| 70 void archiveReadOpenMemory(Dart_Port p, struct archive* a, |
| 71 Dart_CObject* request); |
| 72 |
| 73 void archiveReadNextHeader(Dart_Port p, struct archive* a); |
| 74 |
| 75 void archiveReadDataBlock(Dart_Port p, struct archive* a); |
| 76 |
| 77 void archiveReadDataSkip(Dart_Port p, struct archive* a); |
| 78 |
| 79 void archiveReadClose(Dart_Port p, struct archive* a); |
| 80 |
| 81 void archiveReadFree(Dart_Port p, struct archive* a); |
| 82 |
| 83 #endif // DART_ARCHIVE_READER_H_ |
OLD | NEW |