config.h.in
changeset 3 a5f864d4207f
parent 1 7d87d323c889
child 6 90dceae3ed1f
--- a/config.h.in	Mon Feb 23 17:05:43 2009 +0200
+++ b/config.h.in	Mon Feb 23 18:27:13 2009 +0200
@@ -1,24 +1,30 @@
 
-#ifndef LLM_CONFIG_H
-#define LLM_CONFIG_H
+#ifndef MLUA_CONFIG_H
+#define MLUA_CONFIG_H
 
 // define this to enable debugging output
 #cmakedefine DEBUG
 
+// define this to enable lua-loudmouth log messages handler
+#cmakedefine LLM_LOG_HANDLER
+
+// define this to a lua function name that will handle hooks
+#define LUA_HOOK_NAME ( "${LUA_HOOK_NAME}" )
+
 // hack for mcabber headers
 #define MODULES_ENABLE
 
 #ifdef DEBUG
 #  include <stdio.h>
 
-#  ifndef LLM_LOG_PREFIX
-#    define LLM_LOG_PREFIX ( NULL )
+#  ifndef MLUA_LOG_PREFIX
+#    define MLUA_LOG_PREFIX ( NULL )
 #  endif
 
-#  define D(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); }
-#  define I(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); }
-#  define W(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); }
-#  define E(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); }
+#  define D(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); }
+#  define I(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); }
+#  define W(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); }
+#  define E(FORMAT...) { g_log (MLUA_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); }
 #else
 #  define D(FORMAT...) { /* FORMAT */ }
 #  define I(FORMAT...) { /* FORMAT */ }