]> git.sur5r.net Git - glabels/blob - src/xml-label.h
Imported Upstream version 3.0.0
[glabels] / src / xml-label.h
1 /*
2  *  xml-label.h
3  *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
4  *
5  *  This file is part of gLabels.
6  *
7  *  gLabels is free software: you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation, either version 3 of the License, or
10  *  (at your option) any later version.
11  *
12  *  gLabels is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with gLabels.  If not, see <http://www.gnu.org/licenses/>.
19  */
20
21 #ifndef __XML_LABEL_H__
22 #define __XML_LABEL_H__
23
24 #include "label.h"
25
26 G_BEGIN_DECLS
27
28
29 typedef enum {
30         XML_LABEL_UNKNOWN_MEDIA = 1,
31         XML_LABEL_OK = 0,
32         XML_LABEL_ERROR_OPEN_PARSE = -10,
33         XML_LABEL_ERROR_SAVE_FILE = -20
34 } glXMLLabelStatus;
35
36
37 extern glLabel      *gl_xml_label_open          (const gchar * filename,
38                                                  glXMLLabelStatus *status);
39 extern glLabel      *gl_xml_label_open_buffer   (const gchar * buffer,
40                                                  glXMLLabelStatus *status);
41
42 extern void          gl_xml_label_save          (glLabel * label,
43                                                  const gchar * filename,
44                                                  glXMLLabelStatus *status);
45 extern gchar        *gl_xml_label_save_buffer   (glLabel * label,
46                                                  glXMLLabelStatus *status);
47
48
49 G_END_DECLS
50
51
52 #endif /* __XML_LABEL_H__ */
53
54
55
56 /*
57  * Local Variables:       -- emacs
58  * mode: C                -- emacs
59  * c-basic-offset: 8      -- emacs
60  * tab-width: 8           -- emacs
61  * indent-tabs-mode: nil  -- emacs
62  * End:                   -- emacs
63  */