1 /*
2    gnauralXML.h - declarations for gnauralXML.c
3 
4    Copyright (C) 20100608  Bret Logan
5 
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.
10 
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.
15 
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20 
21 #ifndef _GNAURALXML_H_
22 #define _GNAURALXML_H_
23 
24 //Increments this whenever a change to file format obsoletes old gnaural formats:
25 //#define gxml_XMLFILEVERSION "1.20060924"
26 //#define gxml_XMLFILEVERSION "1.20070124"
27 //#define gxml_VERSION_GNAURAL_XMLFILE "1.20100606"
28 #define gxml_VERSION_GNAURAL_XMLFILE "1.20101006"
29 
30 extern int gxml_ParserXML_VoiceCount;   //this is a *true* count of Voices (as opposed to listed count in file) taken from  pre-reads of the XML file; has priority
31 extern int gxml_ParserXML_EntryCount;   //this is a *true* count of Entries (as opposed to listed count in file) taken from  pre-reads of the XML file; has priority
32 extern int gxml_GnauralFile;    //just a way to know internally if a file being opened isn't a valid Gnaurl2 file
33 extern void gxml_XMLWriteFile (char *filename);
34 extern int gxml_XMLReadFile (char *filename, GtkWidget * widget, gboolean MergeRestore);        //returns 0 on success
35 extern void gxml_XMLParser (const gchar * CurrentElement, const gchar * Attribute, const gchar * Value);        //internal use
36 extern int gxml_XMLEventDataParser (const gchar * DataType, const gchar * Value, const int internal_EntryCount);        //internal use
37 extern void gxml_XMLParser_counter (const gchar * CurrentElement, const gchar * Attribute, const gchar * Value);        //always must give valid strings. Also BEWARE: Attribute will equal NULL if there are none
38 #endif
39