| Anjuta Developers Reference Manual | ||||
|---|---|---|---|---|
#include <libanjuta/interfaces/ianjuta-file.h> #define IANJUTA_FILE_ERROR IAnjutaFile; IAnjutaFileIface; GQuark ianjuta_file_error_quark (void); void ianjuta_file_open (IAnjutaFile *obj, GFile *file, GError **err);
Any plugin that can open files should implemented this interface. Along with the 'File Loader::SupportedMimeTypes' property of the plugin in .plugin file, it will be used by the loader to open files of that type.
typedef struct {
GTypeInterface g_iface;
GFile* (*get_file) (IAnjutaFile *obj, GError **err);
void (*open) (IAnjutaFile *obj, GFile* file, GError **err);
} IAnjutaFileIface;
void ianjuta_file_open (IAnjutaFile *obj, GFile *file, GError **err);
The implementor opens the given file.
|
Self |
|
file to open. |
|
Error propagation and reporting |