|  |  |  | Anjuta Developers Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#include <libanjuta/interfaces/ianjuta-vcs.h> void (*IAnjutaVcsDiffCallback) (GFile *file,const gchar *diff,gpointer user_data); enum IAnjutaVcsError; struct IAnjutaVcsIface; void (*IAnjutaVcsStatusCallback) (GFile *file,AnjutaVcsStatus status,gpointer user_data); void ianjuta_vcs_add (IAnjutaVcs *obj,GList *files,AnjutaAsyncNotify *notify,GError **err); void ianjuta_vcs_checkout (IAnjutaVcs *obj,const gchar *repository_location,GFile *dest,GCancellable *cancel,AnjutaAsyncNotify *notify,GError **err); void ianjuta_vcs_diff (IAnjutaVcs *obj,GFile *file,IAnjutaVcsDiffCallback callback,gpointer user_data,GCancellable *cancel,AnjutaAsyncNotify *notify,GError **err); GQuark ianjuta_vcs_error_quark (void); void ianjuta_vcs_query_status (IAnjutaVcs *obj,GFile *file,IAnjutaVcsStatusCallback callback,gpointer user_data,GCancellable *cancel,AnjutaAsyncNotify *notify,GError **err); void ianjuta_vcs_remove (IAnjutaVcs *obj,GList *files,AnjutaAsyncNotify *notify,GError **err);
void (*IAnjutaVcsDiffCallback) (GFile *file,const gchar *diff,gpointer user_data);
Called when diff data comes from ianjuta_vcs_diff.
| 
 | File being diffed | 
| 
 | Diff data | 
| 
 | User data | 
typedef enum {
	IANJUTA_VCS_UNKOWN_ERROR
} IAnjutaVcsError;
These enumeration is used to specify errors.
struct IAnjutaVcsIface {
	GTypeInterface g_iface;
	
	/* Signal */
	void (*status_changed) (IAnjutaVcs *obj);
	void (*add) (IAnjutaVcs *obj, GList* files,  AnjutaAsyncNotify *notify, GError **err);
	void (*checkout) (IAnjutaVcs *obj, const gchar *repository_location,  GFile *dest,  GCancellable *cancel,  AnjutaAsyncNotify *notify, GError **err);
	void (*diff) (IAnjutaVcs *obj, GFile* file,  IAnjutaVcsDiffCallback callback,  gpointer user_data,  GCancellable* cancel,  AnjutaAsyncNotify *notify, GError **err);
	void (*query_status) (IAnjutaVcs *obj, GFile* file,  IAnjutaVcsStatusCallback callback,  gpointer user_data,  GCancellable* cancel,  AnjutaAsyncNotify *notify, GError **err);
	void (*remove) (IAnjutaVcs *obj, GList* files,  AnjutaAsyncNotify *notify, GError **err);
};
void (*IAnjutaVcsStatusCallback) (GFile *file,AnjutaVcsStatus status,gpointer user_data);
Callback called for each status record returned by ianjuta_vcs_query_status.
| 
 | File representing the file for which status is given | 
| 
 | AnjutaVcsStatus for the file represented by file. | 
| 
 | User data | 
void ianjuta_vcs_add (IAnjutaVcs *obj,GList *files,AnjutaAsyncNotify *notify,GError **err);
Add files to the VCS repository.
| 
 | Self | 
| 
 | List of List of files, represented as Gfile objects, to add. [element-type GFile] | 
| 
 | AnjutaAsyncNotify object for finish notification and error reporting. | 
void ianjuta_vcs_checkout (IAnjutaVcs *obj,const gchar *repository_location,GFile *dest,GCancellable *cancel,AnjutaAsyncNotify *notify,GError **err);
Check out a copy of a code repository.
| 
 | Self | 
| 
 | Location of repository to check out | 
| 
 | Destination of checked out copy | 
| 
 | An optional GCancellable object to cancel the operation, or NULL | 
| 
 | AnjutaAsyncNotify object for finish notification and error reporting. | 
void ianjuta_vcs_diff (IAnjutaVcs *obj,GFile *file,IAnjutaVcsDiffCallback callback,gpointer user_data,GCancellable *cancel,AnjutaAsyncNotify *notify,GError **err);
Generates a unified diff of the file represented by file.
| 
 | Self | 
| 
 | File to diff | 
| 
 | Callback to call when diff data becomes available | 
| 
 | User data passed to callback | 
| 
 | An optional GCancellable object to cancel the operation, or NULL | 
| 
 | AnjutaAsyncNotify object for finish notification and error reporting. | 
void ianjuta_vcs_query_status (IAnjutaVcs *obj,GFile *file,IAnjutaVcsStatusCallback callback,gpointer user_data,GCancellable *cancel,AnjutaAsyncNotify *notify,GError **err);
Querys the status of files in the repository.
| 
 | Self | 
| 
 | File/directory to query | 
| 
 | callback to call when data for a particular file is available | 
| 
 | User data passed to callback | 
| 
 | An optional GCancellable object to cancel the operation, or NULL | 
| 
 | AnjutaAsyncNotify object for finish notification and error reporting. | 
void ianjuta_vcs_remove (IAnjutaVcs *obj,GList *files,AnjutaAsyncNotify *notify,GError **err);
Remove files from the VCS repository.
| 
 | Self | 
| 
 | List of files, represented as Gfile objects, to remove. [element-type GFile] | 
| 
 | AnjutaAsyncNotify object for finish notification and error reporting. |