IAnjutaFileLoader

## IAnjutaFileLoader IAnjutaFileLoader — Loader to load files |

## Stability Level

Unstable, unless otherwise indicated

## Synopsis

    #include <libanjuta/interfaces/ianjuta-file-loader.h>

    #define             IANJUTA_FILE_LOADER_ERROR
    struct              IAnjutaFileLoaderIface;
    GQuark              ianjuta_file_loader_error_quark     (void);
    GObject *           ianjuta_file_loader_load            (IAnjutaFileLoader *obj,
                                                             GFile *file,
                                                             gboolean readonly,
                                                             GError **err);
    gchar *             ianjuta_file_loader_peek_interface  (IAnjutaFileLoader *obj,
                                                             GFile *file,
                                                             GError **err);

## Description

Loaders can deterime correct plugin to open a file.

## Details

### IANJUTA_FILE_LOADER_ERROR

    #define IANJUTA_FILE_LOADER_ERROR ianjuta_file_loader_error_quark()

### struct IAnjutaFileLoaderIface

    struct IAnjutaFileLoaderIface {
    	IAnjutaLoaderIface g_iface;

    	GObject* (*load) (IAnjutaFileLoader *obj, GFile* file,  gboolean readonly, GError **err);
    	gchar* (*peek_interface) (IAnjutaFileLoader *obj, GFile* file, GError **err);
    };

### ianjuta_file_loader_error_quark ()

    GQuark              ianjuta_file_loader_error_quark     (void);

### ianjuta_file_loader_load ()

    GObject *           ianjuta_file_loader_load            (IAnjutaFileLoader *obj,
                                                             GFile *file,
                                                             gboolean readonly,
                                                             GError **err);

Determines a plugin which can open the given file, activates it opening the file and returns the interface of the plugin activated.

`obj` : | Self
`file` : | File to load
`readonly` : | Open in readonly mode.
`err` : | Error propagation and reporting
Returns : | Plugin interface used to load the file.

### ianjuta_file_loader_peek_interface ()

    gchar *             ianjuta_file_loader_peek_interface  (IAnjutaFileLoader *obj,
                                                             GFile *file,
                                                             GError **err);