author | Mikael Hallendal <micke@imendio.com> |
Sun, 10 Jun 2007 18:14:31 +0200 | |
changeset 268 | 7eb1cedb3241 |
parent 99 | 81e9d035de02 |
child 399 | b5ebdc9d8152 |
permissions | -rw-r--r-- |
1 | 1 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
2 |
/* |
|
99
81e9d035de02
2004-10-05 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
84
diff
changeset
|
3 |
* Copyright (C) 2003 Imendio AB |
1 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU Lesser General Public License as |
|
7 |
* published by the Free Software Foundation; either version 2 of the |
|
8 |
* License, or (at your option) any later version. |
|
9 |
* |
|
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 GNU |
|
13 |
* Lesser General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU Lesser General Public |
|
16 |
* License along with this program; if not, write to the |
|
17 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
18 |
* Boston, MA 02111-1307, USA. |
|
19 |
*/ |
|
20 |
||
21 |
#ifndef __LM_PARSER_H__ |
|
22 |
#define __LM_PARSER_H__ |
|
23 |
||
24 |
#include <glib.h> |
|
25 |
#include "lm-message.h" |
|
26 |
||
27 |
typedef struct LmParser LmParser; |
|
28 |
||
29 |
typedef void (* LmParserMessageFunction) (LmParser *parser, |
|
30 |
LmMessage *message, |
|
31 |
gpointer user_data); |
|
32 |
||
33 |
LmParser * lm_parser_new (LmParserMessageFunction function, |
|
34 |
gpointer user_data, |
|
35 |
GDestroyNotify notify); |
|
36 |
void lm_parser_parse (LmParser *parser, |
|
37 |
const gchar *string); |
|
38 |
void lm_parser_free (LmParser *parser); |
|
39 |
||
40 |
#endif /* __LM_PARSER_H__ */ |