2
* * Copyright (C) 2009-2011 Ali <aliov@xfce.org>
4
* Licensed under the GNU General Public License Version 2
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
#if !defined (__PAROLE_H_INSIDE__) && !defined (PAROLE_COMPILATION)
22
#error "Only <parole.h> can be included directly."
25
#ifndef __PAROLE_PL_PARSER_H
26
#define __PAROLE_PL_PARSER_H
34
PAROLE_PL_FORMAT_UNKNOWN,
42
ParolePlFormat parole_pl_parser_guess_format_from_extension (const gchar *filename);
44
ParolePlFormat parole_pl_parser_guess_format_from_data (const gchar *filename);
46
gboolean parole_pl_parser_can_parse_data (const guchar *data, gint len);
48
GSList *parole_pl_parser_parse_from_file_by_extension (const gchar *filename);
50
GSList *parole_pl_parser_parse_all_from_file (const gchar *filename);
52
gboolean parole_pl_parser_save_from_files (GSList *files,
53
const gchar *filename,
54
ParolePlFormat format);
58
#endif /* __PAROLE_PL_PARSER_H */