![]() |
![]() |
![]() |
Libfm Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct FmFileInfoJob; struct FmFileInfoJobClass; enum FmFileInfoJobFlags; void fm_file_info_job_add (FmFileInfoJob *job
,FmPath *path
); void fm_file_info_job_add_gfile (FmFileInfoJob *job
,GFile *gf
); FmPath * fm_file_info_job_get_current (FmFileInfoJob *job
); FmFileInfoJob * fm_file_info_job_new (FmPathList *files_to_query
,FmFileInfoJobFlags flags
);
include
: libfm/fm-file-info-job.h
The FmFileInfoJob can be used to get filled FmFileInfo for some files.
struct FmFileInfoJob { FmJob parent; FmFileInfoJobFlags flags; FmFileInfoList* file_infos; };
FmJob |
the parent object |
FmFileInfoJobFlags |
flags for the job |
FmFileInfoList * |
gathered data |
typedef enum { FM_FILE_INFO_JOB_NONE = 0, FM_FILE_INFO_JOB_FOLLOW_SYMLINK = 1 << 0, /* FIXME: not yet implemented */ FM_FILE_INFO_JOB_EMIT_FOR_EACH_FILE = 1 << 1 /* FIXME: not yet implemented */ } FmFileInfoJobFlags;
void fm_file_info_job_add (FmFileInfoJob *job
,FmPath *path
);
Adds a path
to query list for the job
.
This API may only be called before starting the job
.
|
a job to add file |
|
a path to add to query list |
Since 0.1.0
void fm_file_info_job_add_gfile (FmFileInfoJob *job
,GFile *gf
);
Adds a path gf
to query list for the job
.
This API may only be called before starting the job
.
|
a job to add file |
|
a file descriptor to add to query list |
Since 0.1.0
FmPath * fm_file_info_job_get_current (FmFileInfoJob *job
);
Retrieves current the FmPath which caused the error.
Returned data are owned by job
and shouldn't be freed by caller.
This API may only be called in error handler.
|
the job to inspect |
Returns : |
the current processing file path. [transfer none] |
Since 0.1.10
FmFileInfoJob * fm_file_info_job_new (FmPathList *files_to_query
,FmFileInfoJobFlags flags
);
Creates a new FmFileInfoJob which can be used by FmJob API.
|
list of paths to query informatiom. [allow-none] |
|
modificators of query mode |
Returns : |
a new FmFileInfoJob object. [transfer full] |
Since 0.1.0