author | hallski <hallski> |
Fri, 13 Jun 2003 16:08:46 +0000 | |
changeset 7 | d8eae83450ac |
parent 4 | 52f92481d8de |
child 57 | 6b168a8917f7 |
permissions | -rw-r--r-- |
1 | 1 |
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
2 |
/* |
|
7
d8eae83450ac
2003-06-13 Mikael Hallendal <micke@imendio.com>
hallski <hallski>
parents:
4
diff
changeset
|
3 |
* Copyright (C) 2003 Mikael Hallendal <micke@imendio.com> |
1 | 4 |
* Copyright (C) 2003 CodeFactory AB. |
5 |
* |
|
6 |
* This program is free software; you can redistribute it and/or |
|
7 |
* modify it under the terms of the GNU Lesser General Public License as |
|
8 |
* published by the Free Software Foundation; either version 2 of the |
|
9 |
* License, or (at your option) any later version. |
|
10 |
* |
|
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 GNU |
|
14 |
* Lesser General Public License for more details. |
|
15 |
* |
|
16 |
* You should have received a copy of the GNU Lesser General Public |
|
17 |
* License along with this program; if not, write to the |
|
18 |
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
19 |
* Boston, MA 02111-1307, USA. |
|
20 |
*/ |
|
21 |
||
22 |
/* Private functions that are internal to the library */ |
|
23 |
||
24 |
#ifndef __LM_INTERNALS_H__ |
|
25 |
#define __LM_INTERNALS_H__ |
|
26 |
||
27 |
#include "lm-message.h" |
|
28 |
#include "lm-message-handler.h" |
|
29 |
#include "lm-message-node.h" |
|
30 |
||
31 |
typedef struct { |
|
32 |
gpointer func; |
|
33 |
gpointer user_data; |
|
34 |
GDestroyNotify notify; |
|
35 |
} LmCallback; |
|
36 |
||
37 |
LmCallback *_lm_utils_new_callback (gpointer func, |
|
38 |
gpointer user_data, |
|
39 |
GDestroyNotify notify); |
|
40 |
void _lm_utils_free_callback (LmCallback *cb); |
|
41 |
||
42 |
gchar * _lm_utils_generate_id (void); |
|
43 |
LmHandlerResult _lm_message_handler_handle_message (LmMessageHandler *handler, |
|
44 |
LmConnection *connection, |
|
45 |
LmMessage *messag); |
|
46 |
||
47 |
const gchar * _lm_message_type_to_string (LmMessageType type); |
|
48 |
const gchar * _lm_message_sub_type_to_string (LmMessageSubType type); |
|
49 |
LmMessage * _lm_message_new_from_node (LmMessageNode *node); |
|
50 |
void _lm_message_node_add_child_node (LmMessageNode *node, |
|
51 |
LmMessageNode *child); |
|
52 |
LmMessageNode * _lm_message_node_new (const gchar *name); |
|
53 |
void _lm_debug_init (void); |
|
54 |
||
55 |
#endif /* __LM_INTERNALS_H__ */ |