Updated Spanish translation
[anjuta.git] / plugins / am-project / amp-source.h
blob4bb5e7286da8ca3a1fce0734403673ca4061708f
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */
2 /* amp-source.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., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef _AMP_SOURCE_H_
23 #define _AMP_SOURCE_H_
25 #include "am-project-private.h"
26 #include "am-scanner.h"
28 #include <glib-object.h>
30 #include <libanjuta/anjuta-project.h>
31 #include <libanjuta/anjuta-token.h>
32 #include <libanjuta/anjuta-token-file.h>
34 G_BEGIN_DECLS
36 /* Type macros
37 *---------------------------------------------------------------------------*/
39 #define AMP_TYPE_SOURCE_NODE (amp_source_node_get_type ())
40 #define AMP_SOURCE_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AMP_TYPE_SOURCE_NODE, AmpSourceNode))
42 GType amp_source_node_get_type (void) G_GNUC_CONST;
46 void amp_source_node_register (GTypeModule *module);
48 AnjutaProjectNode* amp_source_node_new (GFile *file, AnjutaProjectNodeType type);
49 AnjutaProjectNode* amp_source_node_new_valid (GFile *file, AnjutaProjectNodeType type, GError **error);
50 void amp_source_node_free (AmpSourceNode *node);
51 AnjutaToken *amp_source_node_get_token (AmpSourceNode *node);
52 void amp_source_node_add_token (AmpSourceNode *node, AnjutaToken *token);
53 void amp_source_node_update_node (AmpSourceNode *node, AmpSourceNode *new_node);
54 gboolean amp_source_node_set_file (AmpSourceNode *source, GFile *new_file);
57 G_END_DECLS
59 #endif /* _AMP_SOURCE_H_ */