author | Mikael Hallendal <micke@imendio.com> |
Tue, 04 Mar 2008 00:38:08 +0100 | |
changeset 349 | 3dafc8376e9b |
parent 101 | a8abfbc8c005 |
child 417 | 364c17252e5f |
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_MESSAGE_HANDLER_H__ |
|
22 |
#define __LM_MESSAGE_HANDLER_H__ |
|
23 |
||
24 |
#if !defined (LM_INSIDE_LOUDMOUTH_H) && !defined (LM_COMPILATION) |
|
25 |
#error "Only <loudmouth/loudmouth.h> can be included directly, this file may disappear or change contents." |
|
26 |
#endif |
|
27 |
||
28 |
#include <loudmouth/lm-connection.h> |
|
29 |
||
101
a8abfbc8c005
2004-10-22 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
99
diff
changeset
|
30 |
G_BEGIN_DECLS |
a8abfbc8c005
2004-10-22 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
99
diff
changeset
|
31 |
|
1 | 32 |
typedef LmHandlerResult (* LmHandleMessageFunction) (LmMessageHandler *handler, |
33 |
LmConnection *connection, |
|
34 |
LmMessage *message, |
|
35 |
gpointer user_data); |
|
36 |
||
37 |
LmMessageHandler *lm_message_handler_new (LmHandleMessageFunction function, |
|
38 |
gpointer user_data, |
|
39 |
GDestroyNotify notify); |
|
19
bb3195f74ac7
2003-07-17 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
7
diff
changeset
|
40 |
void lm_message_handler_invalidate (LmMessageHandler *handler); |
bb3195f74ac7
2003-07-17 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
7
diff
changeset
|
41 |
gboolean lm_message_handler_is_valid (LmMessageHandler *handler); |
1 | 42 |
LmMessageHandler *lm_message_handler_ref (LmMessageHandler *handler); |
43 |
void lm_message_handler_unref (LmMessageHandler *handler); |
|
44 |
||
101
a8abfbc8c005
2004-10-22 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
99
diff
changeset
|
45 |
G_END_DECLS |
1 | 46 |
|
47 |
#endif /* __LM_MESSAGE_HANDLER_H__ */ |
|
48 |