This file is indexed.

/usr/include/libfm-1.0/fm-archiver.h is in libfm-dev 1.2.5-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
 *      fm-archiver.h
 *
 *      Copyright 2010 PCMan <pcman.tw@gmail.com>
 *
 *      This file is a part of the Libfm library.
 *
 *      This library is free software; you can redistribute it and/or
 *      modify it under the terms of the GNU Lesser General Public
 *      License as published by the Free Software Foundation; either
 *      version 2.1 of the License, or (at your option) any later version.
 *
 *      This library is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *      Lesser General Public License for more details.
 *
 *      You should have received a copy of the GNU Lesser General Public
 *      License along with this library; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

/* handles integration between libfm and some well-known GUI archivers,
 * such as file-roller, xarchiver, and squeeze. */

#ifndef __FM_ARCHIVER_H__
#define __FM_ARCHIVER_H__

#include <glib.h>
#include <gio/gio.h>
#include "fm-path.h"

G_BEGIN_DECLS

typedef struct _FmArchiver FmArchiver;

/**
 * FmArchiver:
 * @program: archiver program
 * @create_cmd: command to create archive
 * @extract_cmd: command to extract files from archive
 * @extract_to_cmd: command to extract files into destined directory
 * @mime_types: list of archive types the archiver supports
 */
struct _FmArchiver
{
    char* program;
    char* create_cmd;
    char* extract_cmd;
    char* extract_to_cmd;
    char** mime_types;
};

void _fm_archiver_init();
void _fm_archiver_finalize();

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

/* get default GUI archivers used by libfm */
FmArchiver* fm_archiver_get_default();

/* set default GUI archivers used by libfm */
void fm_archiver_set_default(FmArchiver* archiver);

/* get a list of FmArchiver* of all GUI archivers known to libfm */
const GList* fm_archiver_get_all();

G_END_DECLS

#endif /* __FM_ARCHIVER_H__ */