project-wizard: bgo #707943 - Auto completion code when you click in the widget tree...
[anjuta.git] / plugins / project-wizard / parser.h
blob894e29e73d7b20c238754d00e4e5c9540cd349dd
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 parser.h
4 Copyright (C) 2004 Sebastien Granjoux
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (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
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef __PARSER_H__
22 #define __PARSER_H__
24 #include <glib.h>
26 #include "header.h"
27 #include "property.h"
28 #include "file.h"
29 #include "action.h"
31 gboolean npw_header_list_readdir (GList** this, const gchar* pathname);
33 NPWHeader *npw_header_list_read (GList** this, const gchar* filename);
36 typedef struct _NPWPageParser NPWPageParser;
38 NPWPageParser* npw_page_parser_new (NPWPage* page, const gchar* filename, gint count);
39 void npw_page_parser_free (NPWPageParser* parser);
41 gboolean npw_page_parser_parse (NPWPageParser* parser, const gchar* text, gssize len, GError** error);
42 gboolean npw_page_parser_end_parse (NPWPageParser* parser, GError** error);
44 gboolean npw_page_read (NPWPage* page, const gchar* filename, gint count);
47 typedef struct _NPWFileListParser NPWFileListParser;
49 NPWFileListParser* npw_file_list_parser_new (const gchar* filename);
50 void npw_file_list_parser_free (NPWFileListParser* parser);
52 gboolean npw_file_list_parser_parse (NPWFileListParser* parser, const gchar* text, gssize len, GError** error);
53 GList* npw_file_list_parser_end_parse (NPWFileListParser* parser, GError** error);
56 typedef struct _NPWActionListParser NPWActionListParser;
58 NPWActionListParser* npw_action_list_parser_new (void);
59 void npw_action_list_parser_free (NPWActionListParser* parser);
61 gboolean npw_action_list_parser_parse (NPWActionListParser* parser, const gchar* text, gssize len, GError** error);
62 GList* npw_action_list_parser_end_parse (NPWActionListParser* parser, GError** error);
64 #endif