Top |
Functions
int | (*AutoarFormatFunc) () |
int | (*AutoarFilterFunc) () |
int | autoar_format_last () |
gboolean | autoar_format_is_valid () |
const char * | autoar_format_get_mime_type () |
const char * | autoar_format_get_extension () |
const char * | autoar_format_get_description () |
gchar * | autoar_format_get_description_libarchive () |
int | autoar_format_get_format_libarchive () |
AutoarFormatFunc | autoar_format_get_libarchive_read () |
AutoarFormatFunc | autoar_format_get_libarchive_write () |
int | autoar_filter_last () |
gboolean | autoar_filter_is_valid () |
const char * | autoar_filter_get_mime_type () |
const char * | autoar_filter_get_extension () |
const char * | autoar_filter_get_description () |
gchar * | autoar_filter_get_description_libarchive () |
int | autoar_filter_get_filter_libarchive () |
AutoarFilterFunc | autoar_filter_get_libarchive_read () |
AutoarFilterFunc | autoar_filter_get_libarchive_write () |
gchar * | autoar_format_filter_get_mime_type () |
gchar * | autoar_format_filter_get_extension () |
gchar * | autoar_format_filter_get_description () |
Description
autoar-format-filter is a collection of functions providing information of archive formats and filters.
Functions
autoar_format_last ()
int
autoar_format_last (void
);
Gets the maximal allowed values of AutoarFormat
autoar_format_is_valid ()
gboolean
autoar_format_is_valid (AutoarFormat format
);
Checks whether an AutoarFormat is valid.
autoar_format_get_mime_type ()
const char *
autoar_format_get_mime_type (AutoarFormat format
);
Gets the MIME type of the format from the internal static data.
autoar_format_get_extension ()
const char *
autoar_format_get_extension (AutoarFormat format
);
Gets the file name extension of the format from the internal static data.
autoar_format_get_description ()
const char *
autoar_format_get_description (AutoarFormat format
);
Gets description of the format from the internal static data.
autoar_format_get_description_libarchive ()
gchar *
autoar_format_get_description_libarchive
(AutoarFormat format
);
Gets description of the format from libarchive. This function creates and destroys an archive object in order to get the description string.
autoar_format_get_format_libarchive ()
int
autoar_format_get_format_libarchive (AutoarFormat format
);
Gets the format code used by libarchive. You can use the return value
as the argument for archive_read_support_format_by_code()
and
archive_write_set_format()
. However, some format cannot be set using
these two functions because of problems inside libarchive. Use
autoar_format_get_libarchive_read()
and
autoar_format_get_libarchive_write()
to get the function pointer
is the more reliable way to set format on the archive object.
autoar_format_get_libarchive_read ()
AutoarFormatFunc
autoar_format_get_libarchive_read (AutoarFormat format
);
Gets the function used to set format on the object returned by
archive_read_new()
.
[skip]
autoar_format_get_libarchive_write ()
AutoarFormatFunc
autoar_format_get_libarchive_write (AutoarFormat format
);
Gets the function used to set format on the object returned by
archive_write_new()
.
[skip]
autoar_filter_last ()
int
autoar_filter_last (void
);
Gets the maximal allowed values of AutoarFilter
autoar_filter_is_valid ()
gboolean
autoar_filter_is_valid (AutoarFilter filter
);
Checks whether an AutoarFilter is valid.
autoar_filter_get_mime_type ()
const char *
autoar_filter_get_mime_type (AutoarFilter filter
);
Gets the MIME type of the filter from the internal static data.
autoar_filter_get_extension ()
const char *
autoar_filter_get_extension (AutoarFilter filter
);
Gets the file name extension of the filter from the internal static data.
autoar_filter_get_description ()
const char *
autoar_filter_get_description (AutoarFilter filter
);
Gets description of the filter from the internal static data.
autoar_filter_get_description_libarchive ()
gchar *
autoar_filter_get_description_libarchive
(AutoarFilter filter
);
Gets description of the filter from libarchive. This function creates and destroys an archive object in order to get the description string.
autoar_filter_get_filter_libarchive ()
int
autoar_filter_get_filter_libarchive (AutoarFilter filter
);
Gets the filter code used by libarchive. You can use the return value
as the argument for archive_write_add_filter()
.
autoar_filter_get_libarchive_read ()
AutoarFilterFunc
autoar_filter_get_libarchive_read (AutoarFilter filter
);
Gets the function used to add filter on the object returned by
archive_read_new()
.
[skip]
autoar_filter_get_libarchive_write ()
AutoarFilterFunc
autoar_filter_get_libarchive_write (AutoarFilter filter
);
Gets the function used to add filter on the object returned by
archive_write_new()
.
[skip]
autoar_format_filter_get_mime_type ()
gchar * autoar_format_filter_get_mime_type (AutoarFormat format
,AutoarFilter filter
);
Gets the MIME type for an archive format
compressed by
filter
. This function always succeed, but it is not guaranteed
that the returned MIME type exists and can be recognized by applications.
Some combination of format and filter seldom exists in application,
so this function can only generate the string based on some
non-standard rules.
autoar_format_filter_get_extension ()
gchar * autoar_format_filter_get_extension (AutoarFormat format
,AutoarFilter filter
);
Gets the file name extension for an archive format
compressed by
filter
. The first character of the returned string is always '.'
autoar_format_filter_get_description ()
gchar * autoar_format_filter_get_description (AutoarFormat format
,AutoarFilter filter
);
Gets the description for an archive format
compressed by
filter
using GContentType and autoar_format_filter_get_mime_type()
.
Types and Values
enum AutoarFormat
This is a non-negative number which represents formats supported by libarchive. A libarchive format is a file format which can store many files as a archive file.
Members
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
enum AutoarFilter
This is a non-negative number which represents filters supported by libarchive. A libarchive filter is a filter which can convert a regular file into a compressed file.
Members
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|