search: Use G_REGEX_MULTILINE for find in files.
[anjuta.git] / plugins / am-project / am-properties.h
blob81b3888fd349a672095c346cbf859311851ce656
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */
2 /* am-properties.h
4 * Copyright (C) 2010 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 _AM_PROPERTIES_H_
23 #define _AM_PROPERTIES_H_
25 #include "am-project.h"
27 #include <glib.h>
29 G_BEGIN_DECLS
31 AnjutaProjectPropertyInfo *amp_property_info_new (AnjutaTokenType type, gint position);
32 void amp_property_info_free (AnjutaProjectPropertyInfo *prop);
34 AnjutaProjectProperty *amp_property_new (const gchar *name, AnjutaTokenType type, gint position, const gchar *value, AnjutaToken *token);
35 void amp_property_free (AnjutaProjectProperty *prop);
37 gboolean amp_node_property_load (AnjutaProjectNode *target, gint token_type, gint position, const gchar *value, AnjutaToken *token);
38 gboolean amp_node_property_add (AnjutaProjectNode *node, AnjutaProjectProperty *prop);
39 AnjutaProjectPropertyInfo *amp_node_get_property_info_from_token (AnjutaProjectNode *node, gint token, gint pos);
40 AnjutaProjectProperty *amp_node_get_property_from_token (AnjutaProjectNode *node, gint token, gint pos);
41 AnjutaProjectProperty *amp_node_property_set (AnjutaProjectNode *node, const gchar *id, const gchar* value);
42 AnjutaProjectProperty *amp_node_map_property_set (AnjutaProjectNode *node, const gchar *id, const gchar *name, const gchar* value);
44 gboolean amp_node_property_has_flags (AnjutaProjectNode *node, const gchar *id, const gchar *value);
45 AnjutaProjectProperty *amp_node_property_remove_flags (AnjutaProjectNode *node, const gchar *id, const gchar *value);
46 AnjutaProjectProperty *amp_node_property_add_flags (AnjutaProjectNode *node, const gchar *id, const gchar *value);
48 gboolean amp_node_property_add_mandatory (AnjutaProjectNode *node);
50 GList* amp_get_project_property_list (void);
51 GList* amp_get_group_property_list (void);
52 GList* amp_get_target_property_list (AnjutaProjectNodeType type);
53 GList* amp_get_source_property_list (void);
54 GList* amp_get_module_property_list (void);
55 GList* amp_get_package_property_list (void);
57 G_END_DECLS
59 #endif /* _AM_PROPERTIES_H_ */