![]() |
![]() |
![]() |
Libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
struct FmArchiver; gboolean fm_archiver_create_archive (FmArchiver *archiver
,GAppLaunchContext *ctx
,FmPathList *files
); gboolean fm_archiver_extract_archives (FmArchiver *archiver
,GAppLaunchContext *ctx
,FmPathList *files
); gboolean fm_archiver_extract_archives_to (FmArchiver *archiver
,GAppLaunchContext *ctx
,FmPathList *files
,FmPath *dest_dir
); const GList * fm_archiver_get_all (); FmArchiver * fm_archiver_get_default (); gboolean fm_archiver_is_mime_type_supported (FmArchiver *archiver
,const char *type
); void fm_archiver_set_default (FmArchiver *archiver
);
include
: libfm/fm-archiver.h
The FmArchiver represents support for utilities which can pack files into archive and/or extract them.
struct FmArchiver { char* program; char* create_cmd; char* extract_cmd; char* extract_to_cmd; char** mime_types; };
gboolean fm_archiver_create_archive (FmArchiver *archiver
,GAppLaunchContext *ctx
,FmPathList *files
);
Creates an archive for files
.
|
the archiver descriptor |
|
a launch context. [allow-none] |
|
files to pack into archive |
Returns : |
FALSE . |
Since 0.1.9
gboolean fm_archiver_extract_archives (FmArchiver *archiver
,GAppLaunchContext *ctx
,FmPathList *files
);
Extracts files from archives.
|
the archiver descriptor |
|
a launch context. [allow-none] |
|
archives to unpack |
Returns : |
FALSE . |
Since 0.1.9
gboolean fm_archiver_extract_archives_to (FmArchiver *archiver
,GAppLaunchContext *ctx
,FmPathList *files
,FmPath *dest_dir
);
Extracts files from archives into dest_dir
.
|
archiver descriptor |
|
a launch context. [allow-none] |
|
archives to unpack |
|
directory where files should be extracted to |
Returns : |
FALSE . |
Since 0.1.9
const GList * fm_archiver_get_all ();
Retrieves a list of FmArchiver of all GUI archivers known to libfm.
Returns : |
list of archivers. |
Since 0.1.9
FmArchiver * fm_archiver_get_default ();
Retrieves default GUI archiver used by libfm.
Returns : |
archiver descriptor. |
Since 0.1.9
gboolean fm_archiver_is_mime_type_supported (FmArchiver *archiver
,const char *type
);
void fm_archiver_set_default (FmArchiver *archiver
);
Sets default GUI archiver used by libfm.
|
archiver descriptor |
Since 0.1.9