This file is indexed.

/usr/include/libfm-1.0/fm-dir-list-job.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
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
 *      fm-dir-list-job.h
 *
 *      Copyright 2009 PCMan <pcman.tw@gmail.com>
 *      Copyright 2013 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
 *
 *      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
 */


#ifndef __FM_DIR_LIST_JOB_H__
#define __FM_DIR_LIST_JOB_H__

#include "fm-job.h"
#include "fm-path.h"
#include "fm-file-info.h"

G_BEGIN_DECLS

#define FM_TYPE_DIR_LIST_JOB				(fm_dir_list_job_get_type())
#define FM_DIR_LIST_JOB(obj)				(G_TYPE_CHECK_INSTANCE_CAST((obj),\
			FM_TYPE_DIR_LIST_JOB, FmDirListJob))
#define FM_DIR_LIST_JOB_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST((klass),\
			FM_TYPE_DIR_LIST_JOB, FmDirListJobClass))
#define FM_IS_DIR_LIST_JOB(obj)			(G_TYPE_CHECK_INSTANCE_TYPE((obj),\
			FM_TYPE_DIR_LIST_JOB))
#define FM_IS_DIR_LIST_JOB_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE((klass),\
			FM_TYPE_DIR_LIST_JOB))

/**
 * FmDirListJobFlags:
 * @FM_DIR_LIST_JOB_FAST: default listing mode with minimized I/O
 * @FM_DIR_LIST_JOB_DIR_ONLY: skip non-directories in output
 * @FM_DIR_LIST_JOB_DETAILED: listing with test files content types
 */
typedef enum {
    FM_DIR_LIST_JOB_FAST = 0,
    FM_DIR_LIST_JOB_DIR_ONLY = 1 << 0,
    FM_DIR_LIST_JOB_DETAILED = 1 << 1
} FmDirListJobFlags;

typedef struct _FmDirListJob            FmDirListJob;
typedef struct _FmDirListJobClass       FmDirListJobClass;

/**
 * FmDirListJob
 * @parent: the parent object
 * @dir_path: directory to get listing
 * @flags: flags for the job
 * @dir_fi: file info of the directory
 * @files: the listing of the directory
 */
struct _FmDirListJob
{
    /* FIXME: should seal this all */
    /*< public >*/
    FmJob parent;
    FmPath* dir_path;
    FmDirListJobFlags flags;
    FmFileInfo* dir_fi;
    FmFileInfoList* files;
    /*< private >*/
    gboolean emit_files_found;
    guint delay_add_files_handler;
    GSList* files_to_add;
};

struct _FmDirListJobClass
{
    /*< private >*/
    FmJobClass parent_class;

    /* signals */
    void (*files_found)(FmDirListJob* job, GSList* files);
};

GType           fm_dir_list_job_get_type(void);
#ifndef FM_DISABLE_DEPRECATED
FmDirListJob*   fm_dir_list_job_new(FmPath* path, gboolean dir_only);
#endif
FmDirListJob   *fm_dir_list_job_new2(FmPath *path, FmDirListJobFlags flags);
FmDirListJob*   fm_dir_list_job_new_for_gfile(GFile* gf);
FmFileInfoList* fm_dir_list_job_get_files(FmDirListJob* job);
void            fm_dir_list_job_set_incremental(FmDirListJob* job, gboolean set);

/*
FmPath* fm_dir_list_job_get_dir_path(FmDirListJob* job);
FmFileInfo* fm_dir_list_job_get_dir_info(FmDirListJob* job);
void fm_dir_list_job_set_dir_path(FmDirListJob* job, FmPath* path);
void fm_dir_list_job_set_dir_info(FmDirListJob* job, FmFileInfo* info);

void fm_dir_list_job_set_emit_files_found(FmDirListJob* job, gboolean emit_files_found);
gboolean fm_dir_list_job_get_emit_files_found(FmDirListJob* job);
*/
void fm_dir_list_job_add_found_file(FmDirListJob* job, FmFileInfo* file);

G_END_DECLS

#endif /* __FM-DIR-LIST-JOB_H__ */