author | Myhailo Danylenko <isbear@ukrpost.net> |
Tue, 21 Aug 2012 16:06:12 +0300 | |
changeset 132 | 2827e775d5fa |
parent 115 | 47bed161e3b0 |
child 143 | 4232a5da1af2 |
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 |
|
109
2d2111cb5109
Switch to object-based command handling
Myhailo Danylenko <isbear@ukrpost.net>
parents:
95
diff
changeset
|
22 |
#include <mcabber/config.h> |
2d2111cb5109
Switch to object-based command handling
Myhailo Danylenko <isbear@ukrpost.net>
parents:
95
diff
changeset
|
23 |
|
0 | 24 |
// define this to enable debugging output |
25 |
#cmakedefine DEBUG |
|
26 |
||
78 | 27 |
// define this to enable exporting mcabber connection for lua-loudmouth |
28 |
#cmakedefine LLM_CONNECTION_ENABLE |
|
29 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
30 |
// define this to enable lua-loudmouth log messages handler |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
31 |
#cmakedefine LLM_LOG_HANDLER |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
32 |
|
30
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
33 |
// size of background pipe reading buffer |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
34 |
#define MLUA_BGREAD_BUFFER ( ${ML_BGREAD_BUFFER} ) |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
35 |
|
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
36 |
// priority of glib event sources for timeout and bgread |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
37 |
#define MLUA_SOURCE_PRIORITY ( ${ML_SOURCE_PRIORITY} ) |
2cf24aced294
Definitions moved to cmake options
Myhailo Danylenko <isbear@ukrpost.net>
parents:
6
diff
changeset
|
38 |
|
95
f2f4c7810a72
Use new module struct with api version
Myhailo Danylenko <isbear@ukrpost.net>
parents:
92
diff
changeset
|
39 |
#define PROJECT_VERSION ( "${PROJECT_VERSION}" ) |
f2f4c7810a72
Use new module struct with api version
Myhailo Danylenko <isbear@ukrpost.net>
parents:
92
diff
changeset
|
40 |
|
0 | 41 |
#ifdef DEBUG |
42 |
# include <stdio.h> |
|
43 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
44 |
# ifndef MLUA_LOG_PREFIX |
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
45 |
# define MLUA_LOG_PREFIX ( NULL ) |
0 | 46 |
# endif |
47 |
||
3
a5f864d4207f
Fixes for build system
Myhailo Danylenko <isbear@ukrpost.net>
parents:
1
diff
changeset
|
48 |
# 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
|
49 |
# 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
|
50 |
# 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
|
51 |
# define E(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); } |
0 | 52 |
#else |
53 |
# define D(FORMAT...) { /* FORMAT */ } |
|
54 |
# define I(FORMAT...) { /* FORMAT */ } |
|
55 |
# define W(FORMAT...) { /* FORMAT */ } |
|
56 |
# define E(FORMAT...) { /* FORMAT */ } |
|
57 |
#endif |
|
58 |
||
59 |
#endif |
|
60 |