3 Copyright (C) 2012 Belledonne Communications SARL
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 typedef struct _lpc2xml_context lpc2xml_context;
27 typedef enum _lpc2xml_log_level {
34 typedef void(*lpc2xml_function)(void *ctx, lpc2xml_log_level level, const char *fmt, va_list list);
36 lpc2xml_context* lpc2xml_context_new(lpc2xml_function cbf, void *ctx);
37 void lpc2xml_context_destroy(lpc2xml_context*);
39 int lpc2xml_set_lpc(lpc2xml_context* context, const LpConfig *lpc);
41 int lpc2xml_convert_file(lpc2xml_context* context, const char *filename);
42 int lpc2xml_convert_fd(lpc2xml_context* context, int fd);
43 int lpc2xml_convert_string(lpc2xml_context* context, char **content);