1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */
4 * Copyright (C) 2009 Sébastien Granjoux
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef _DIR_PROJECT_H_
23 #define _DIR_PROJECT_H_
25 #include <glib-object.h>
27 #include <libanjuta/anjuta-project.h>
31 #define DIR_TYPE_PROJECT (dir_project_get_type ())
32 #define DIR_PROJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIR_TYPE_PROJECT, DirProject))
33 #define DIR_PROJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIR_TYPE_PROJECT, DirProjectClass))
34 #define DIR_IS_PROJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIR_TYPE_PROJECT))
35 #define DIR_IS_PROJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), DIR_TYPE_PROJECT))
37 #define DIR_GROUP(obj) ((DirGroup *)obj)
38 #define DIR_TARGET(obj) ((DirTarget *)obj)
39 #define DIR_SOURCE(obj) ((DirSource *)obj)
42 typedef struct _DirProject DirProject
;
43 typedef struct _DirProjectClass DirProjectClass
;
45 GType
dir_project_get_type (void);
46 DirProject
*dir_project_new (GFile
*directory
, GError
**error
);
48 gint
dir_project_probe (GFile
*directory
, GError
**error
);
50 gboolean
dir_project_load (DirProject
*project
, GFile
*directory
, GError
**error
);
51 AnjutaProjectNode
*dir_project_load_node (DirProject
*project
, AnjutaProjectNode
*node
, GError
**error
);
52 AnjutaProjectNode
*dir_project_save_node (DirProject
*project
, AnjutaProjectNode
*node
, GError
**error
);
53 gboolean
dir_project_reload (DirProject
*project
, GError
**error
);
54 void dir_project_unload (DirProject
*project
);
58 #endif /* _DIR_PROJECT_H_ */