1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */ 2 /* am-properties.h 3 * 4 * Copyright (C) 2010 Sébastien Granjoux 5 * 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. 10 * 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. 15 * 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., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301, USA. 20 */ 21 22 #ifndef _AM_PROPERTIES_H_ 23 #define _AM_PROPERTIES_H_ 24 25 #include "am-project.h" 26 27 #include <glib.h> 28 29 G_BEGIN_DECLS 30 31 AnjutaProjectPropertyInfo *amp_property_info_new (AnjutaTokenType type, gint position); 32 void amp_property_info_free (AnjutaProjectPropertyInfo *prop); 33 34 AnjutaProjectProperty *amp_property_new (const gchar *name, AnjutaTokenType type, gint position, const gchar *value, AnjutaToken *token); 35 void amp_property_free (AnjutaProjectProperty *prop); 36 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); 43 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); 47 48 gboolean amp_node_property_add_mandatory (AnjutaProjectNode *node); 49 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); 56 57 G_END_DECLS 58 59 #endif /* _AM_PROPERTIES_H_ */ 60