search: Use G_REGEX_MULTILINE for find in files.
[anjuta.git] / plugins / am-project / amp-package.h
blobb75309736174b7d11279a424f703ea05a142789f
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */
2 /* amp-package.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 _AMP_PACKAGE_H_
23 #define _AMP_PACKAGE_H_
25 #include "am-project.h"
27 #include <glib-object.h>
29 #include <libanjuta/anjuta-project.h>
30 #include <libanjuta/anjuta-token.h>
31 #include <libanjuta/anjuta-token-file.h>
33 G_BEGIN_DECLS
35 /* Type macros
36 *---------------------------------------------------------------------------*/
38 #define AMP_TYPE_PACKAGE_NODE (amp_package_node_get_type ())
39 #define AMP_PACKAGE_NODE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AMP_TYPE_PACKAGE_NODE, AmpPackageNode))
41 GType amp_package_node_get_type (void) G_GNUC_CONST;
44 void amp_package_node_register (GTypeModule *module);
46 AmpPackageNode* amp_package_node_new (const gchar *name);
47 AmpPackageNode* amp_package_node_new_valid (const gchar *name, GError **error);
48 void amp_package_node_free (AmpPackageNode *node);
49 void amp_package_node_set_version (AmpPackageNode *node, const gchar *compare, const gchar *version);
50 AnjutaToken *amp_package_node_get_token (AmpPackageNode *node);
51 void amp_package_node_add_token (AmpPackageNode *node, AnjutaToken *token);
52 void amp_package_node_update_node (AmpPackageNode *node, AmpPackageNode *new_node);
54 G_END_DECLS
56 #endif /* _AMP_PACKAGE_H_ */