author | Myhailo Danylenko <isbear@ukrpost.net> |
Wed, 20 Jan 2010 21:43:27 +0200 | |
changeset 91 | 37968123db86 |
parent 78 | 1253cacc0f21 |
child 92 | 5d691423c8a6 |
permissions | -rw-r--r-- |
72 | 1 |
|
2 |
/* Copyright 2009 Myhailo Danylenko |
|
3 |
||
4 |
This file is part of mcabber-lua. |
|
5 |
||
6 |
mcabber-lua 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. |
|
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 |
|
14 |
GNU General Public License for more details. |
|
15 |
||
16 |
You should have received a copy of the GNU General Public License |
|
17 |
along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
|
0 | 18 |
|
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
19 |
#ifndef MLUA_CONFIG_H |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
20 |
#define MLUA_CONFIG_H |
0 | 21 |
|
22 |
// define this to enable debugging output |
|
23 |
#cmakedefine DEBUG |
|
24 |
||
78 | 25 |
// define this to enable exporting mcabber connection for lua-loudmouth |
26 |
#cmakedefine LLM_CONNECTION_ENABLE |
|
27 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
28 |
// define this to enable lua-loudmouth log messages handler |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
29 |
#cmakedefine LLM_LOG_HANDLER |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
30 |
|
30
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
31 |
// size of background pipe reading buffer |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
32 |
#define MLUA_BGREAD_BUFFER ( ${ML_BGREAD_BUFFER} ) |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
33 |
|
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
34 |
// priority of glib event sources for timeout and bgread |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
35 |
#define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} ) |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
36 |
|
1 | 37 |
// hack for mcabber headers |
38 |
#define MODULES_ENABLE |
|
39 |
||
0 | 40 |
#ifdef DEBUG |
41 |
# include <stdio.h> |
|
42 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
43 |
# ifndef MLUA_LOG_PREFIX |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
44 |
# define MLUA_LOG_PREFIX ( NULL ) |
0 | 45 |
# endif |
46 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
47 |
# define D(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); } |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
48 |
# define I(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); } |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
49 |
# define W(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); } |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
50 |
# define E(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); } |
0 | 51 |
#else |
52 |
# define D(FORMAT...) { /* FORMAT */ } |
|
53 |
# define I(FORMAT...) { /* FORMAT */ } |
|
54 |
# define W(FORMAT...) { /* FORMAT */ } |
|
55 |
# define E(FORMAT...) { /* FORMAT */ } |
|
56 |
#endif |
|
57 |
||
58 |
#endif |
|
59 |