1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4; coding: utf-8 -*- */
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_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>
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
);
56 #endif /* _AMP_PACKAGE_H_ */