1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
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
26 typedef struct _NPWFile NPWFile
;
27 typedef struct _NPWFileList NPWFileList
;
35 NPW_FILE_DEFAULT
= -1,
38 } NPWFileBooleanValue
;
40 NPWFile
* npw_file_new_file (const gchar
*destination
, const gchar
*source
);
41 void npw_file_free (NPWFile
* file
);
43 NPWFileType
npw_file_get_type (const NPWFile
* file
);
44 const gchar
* npw_file_get_destination (const NPWFile
* file
);
45 const gchar
* npw_file_get_source (const NPWFile
* file
);
47 void npw_file_set_execute (NPWFile
* file
, gboolean value
);
48 gboolean
npw_file_get_execute (const NPWFile
* file
);
50 void npw_file_set_project (NPWFile
* file
, gboolean value
);
51 gboolean
npw_file_get_project (const NPWFile
* file
);
53 void npw_file_set_autogen (NPWFile
* file
, NPWFileBooleanValue value
);
54 NPWFileBooleanValue
npw_file_get_autogen (const NPWFile
* file
);