Fix a Gtk warning when checking path input in the log viewer.
[anjuta-git-plugin.git] / plugins / project-wizard / autogen.h
blob796ffbe6089730694ed292d35bb78a3fdc42fdc4
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 autogen.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 __AUTOGEN_H__
22 #define __AUTOGEN_H__
24 #include "values.h"
26 #include <libanjuta/anjuta-preferences.h>
28 #include <glib.h>
30 typedef struct _NPWAutogen NPWAutogen;
31 typedef void (*NPWAutogenFunc) (NPWAutogen* autogen, gpointer data);
32 typedef void (*NPWAutogenOutputFunc) (const gchar* output, gpointer data);
34 NPWAutogen* npw_autogen_new (void);
35 void npw_autogen_free (NPWAutogen* this);
37 gboolean npw_autogen_write_definition_file (NPWAutogen* this, NPWValueHeap* values);
39 gboolean npw_autogen_set_input_file (NPWAutogen* this, const gchar* filename, const gchar* start_marker, const gchar* end_marker);
40 gboolean npw_autogen_set_output_file (NPWAutogen* this, const gchar* filename);
41 gboolean npw_autogen_set_output_callback (NPWAutogen* this, NPWAutogenOutputFunc func, gpointer user_data);
43 gboolean npw_autogen_execute (NPWAutogen* this, NPWAutogenFunc func, gpointer data, GError** error);
45 gboolean npw_check_autogen(void);
47 #endif