#include <archive_api.h>
Data Fields | |
| const char * | name |
| bool(* | init )(void) |
| optional, set this to NULL if the archive plugin doesn't have/need one this must false if there is an error and true otherwise | |
| void(* | finish )(void) |
| optional, set this to NULL if the archive plugin doesn't have/need one | |
| struct archive_file *(* | open )(char *pathname) |
| tryes to open archive file and associates handle with archive returns pointer to handle used is all operations with this archive or NULL when opening fails | |
| void(* | scan_reset )(struct archive_file *) |
| reset routine will move current read index in archive to default position and then the filenames from archives can be read via scan_next routine | |
| char *(* | scan_next )(struct archive_file *) |
| the read method will return corresponding files from archive (as pathnames) and move read index to next file. | |
| bool(* | open_stream )(struct archive_file *, struct input_stream *is, const char *path) |
| Opens an input_stream of a file within the archive. | |
| void(* | close )(struct archive_file *) |
| closes archive file. | |
| const char *const * | suffixes |
| suffixes handled by this plugin. | |
Definition at line 36 of file archive_api.h.
| void(* archive_plugin::close)(struct archive_file *) |
closes archive file.
| void(* archive_plugin::finish)(void) |
optional, set this to NULL if the archive plugin doesn't have/need one
| bool(* archive_plugin::init)(void) |
optional, set this to NULL if the archive plugin doesn't have/need one this must false if there is an error and true otherwise
| const char* archive_plugin::name |
Definition at line 37 of file archive_api.h.
struct archive_file*(* archive_plugin::open)(char *pathname) [read] |
tryes to open archive file and associates handle with archive returns pointer to handle used is all operations with this archive or NULL when opening fails
| bool(* archive_plugin::open_stream)(struct archive_file *, struct input_stream *is, const char *path) |
| char*(* archive_plugin::scan_next)(struct archive_file *) |
the read method will return corresponding files from archive (as pathnames) and move read index to next file.
When there is no next file it return NULL.
| void(* archive_plugin::scan_reset)(struct archive_file *) |
reset routine will move current read index in archive to default position and then the filenames from archives can be read via scan_next routine
| const char* const* archive_plugin::suffixes |
suffixes handled by this plugin.
last element in these arrays must always be a NULL
Definition at line 90 of file archive_api.h.
1.5.9