10#ifndef __IO_FILE_IMPORT_H__
11#define __IO_FILE_IMPORT_H__
27#define FILE_IMPORT_TYPE (file_import_get_type ())
28G_DECLARE_FINAL_TYPE (
FileImport, file_import, Z, FILE_IMPORT, GObject);
30typedef struct _FileImportInfo
30typedef struct _FileImportInfo {
…};
46file_import_info_new (
void);
57typedef struct _FileImport
59 GObject parent_instance;
57typedef struct _FileImport {
…};
98 GCancellable * cancellable,
99 GAsyncReadyCallback callback,
100 gpointer callback_data);
103file_import_sync (
FileImport * self, GError ** error);
FileImport * file_import_new(const char *filepath, const FileImportInfo *import_nfo)
Returns a new FileImport instance.
void file_import_async(FileImport *self, GObject *owner, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer callback_data)
Begins file import for a single file.
GPtrArray * file_import_finish(FileImport *self, GAsyncResult *result, GError **error)
To be called by the provided GAsyncReadyCallback to retrieve retun values and error details,...
unsigned int track_name_hash
Track to import on, if any, or 0.
Position pos
Position to import the data at, or 1.1.1.0.
int track_idx
Track index to start the import at.
int lane
Track lane to import on, if any, or -1.
An object used for importing files asynchronously.
GObject * owner
Owner of this FileImport instance, set to the GTask.
GPtrArray * regions
Return value.
char * filepath
File path.
FileImportInfo * import_info
Import info.
A Position is made up of bars.beats.sixteenths.ticks.
Metadata for a supported file.