## IAnjutaProjectBackend IAnjutaProjectBackend — Interface for creating new project |

## Stability Level

Unstable, unless otherwise indicated

## Synopsis

    #include <libanjuta/interfaces/ianjuta-project-backend.h>

    #define             IANJUTA_PROJECT_BACKEND_ERROR
    struct              IAnjutaProjectBackendIface;
    GQuark              ianjuta_project_backend_error_quark (void);
    IAnjutaProject *    ianjuta_project_backend_new_project (IAnjutaProjectBackend *obj,
                                                             GFile *file,
                                                             GError **err);
    gint                ianjuta_project_backend_probe       (IAnjutaProjectBackend *obj,
                                                             GFile *directory,
                                                             GError **err);

## Description

## Details

### IANJUTA_PROJECT_BACKEND_ERROR

    #define IANJUTA_PROJECT_BACKEND_ERROR ianjuta_project_backend_error_quark()

### struct IAnjutaProjectBackendIface

    struct IAnjutaProjectBackendIface {
    	GTypeInterface g_iface;

    	IAnjutaProject* (*new_project) (IAnjutaProjectBackend *obj, GFile *file, GError **err);
    	gint (*probe) (IAnjutaProjectBackend *obj, GFile *directory, GError **err);
    };

### ianjuta_project_backend_error_quark ()

    GQuark              ianjuta_project_backend_error_quark (void);

### ianjuta_project_backend_new_project ()

    IAnjutaProject *    ianjuta_project_backend_new_project (IAnjutaProjectBackend *obj,
                                                             GFile *file,
                                                             GError **err);

Create a new Anjuta project.

`obj` : | Self
`file` : | Project file or directory. [transfer none]
`err` : | Error propagation and reporting
Returns : | An object implementing the IAnjutaProject interface. [transfer full]

### ianjuta_project_backend_probe ()

    gint                ianjuta_project_backend_probe       (IAnjutaProjectBackend *obj,
                                                             GFile *directory,
                                                             GError **err);

Check if the directory contains a project supported by this backend.

`obj` : | Self
`err` : | Error propagation and reporting
Returns : | 0 if the project is invalid and > 0 if the project is valid.