fm-archiver

fm-archiver

Synopsis

                    FmArchiver;
gboolean            fm_archiver_is_mime_type_supported  (FmArchiver *archiver,
                                                         const char *type);
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);
FmArchiver*         fm_archiver_get_default             ();
void                fm_archiver_set_default             (FmArchiver *archiver);
GList*              fm_archiver_get_all                 ();

Description

Details

FmArchiver

typedef struct {
    char* program;
    char* create_cmd;
    char* extract_cmd;
    char* extract_to_cmd;
    char** mime_types;
} FmArchiver;

fm_archiver_is_mime_type_supported ()

gboolean            fm_archiver_is_mime_type_supported  (FmArchiver *archiver,
                                                         const char *type);

fm_archiver_create_archive ()

gboolean            fm_archiver_create_archive          (FmArchiver *archiver,
                                                         GAppLaunchContext *ctx,
                                                         FmPathList *files);

fm_archiver_extract_archives ()

gboolean            fm_archiver_extract_archives        (FmArchiver *archiver,
                                                         GAppLaunchContext *ctx,
                                                         FmPathList *files);

fm_archiver_extract_archives_to ()

gboolean            fm_archiver_extract_archives_to     (FmArchiver *archiver,
                                                         GAppLaunchContext *ctx,
                                                         FmPathList *files,
                                                         FmPath *dest_dir);

fm_archiver_get_default ()

FmArchiver*         fm_archiver_get_default             ();

fm_archiver_set_default ()

void                fm_archiver_set_default             (FmArchiver *archiver);

fm_archiver_get_all ()

GList*              fm_archiver_get_all                 ();