## fm-archiver

fm-archiver

## Synopsis

    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);
    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);

## Description

## Details

### struct FmArchiver

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

### 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_all ()

    GList *             fm_archiver_get_all                 ();

### fm_archiver_get_default ()

    FmArchiver *        fm_archiver_get_default             ();

### fm_archiver_is_mime_type_supported ()

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

### fm_archiver_set_default ()

    void                fm_archiver_set_default             (FmArchiver *archiver);