isbear@23:
isbear@59: /* Copyright 2009-2016 Myhailo Danylenko
isbear@23:
isbear@23: This file is part of lua-lm.
isbear@23:
isbear@23: lua-lm is free software: you can redistribute it and/or modify
isbear@23: it under the terms of the GNU General Public License as published by
isbear@23: the Free Software Foundation, either version 2 of the License, or
isbear@23: (at your option) any later version.
isbear@23:
isbear@23: This program is distributed in the hope that it will be useful,
isbear@23: but WITHOUT ANY WARRANTY; without even the implied warranty of
isbear@23: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
isbear@23: GNU General Public License for more details.
isbear@23:
isbear@23: You should have received a copy of the GNU General Public License
isbear@23: along with this program. If not, see . */
isbear@5:
isbear@5: #ifndef LLM_CONFIG_H
isbear@5: #define LLM_CONFIG_H
isbear@5:
isbear@5: // define this to enable debugging output
isbear@5: #cmakedefine DEBUG
isbear@5:
isbear@57: // define this, if your loudmouth uses SHA256 fingerprints
isbear@57: #cmakedefine HAVE_LM_SHA256_FINGERPRINTS
isbear@57:
isbear@6: // define this, if your loudmouth have lm_connection_get_keep_alive_rate ()
isbear@6: #cmakedefine HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE
isbear@6:
isbear@31: // define this, if your loudmouth have lm_connection_unregister_reply_handler ()
isbear@31: #cmakedefine HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER
isbear@31:
isbear@59: // define this, if your loudmouth have lm_ssl_set_ca ()
isbear@59: #cmakedefine HAVE_LM_SSL_SET_CA
isbear@59:
isbear@59: // define this, if your loudmouth have lm_ssl_set_cipher_list ()
isbear@59: #cmakedefine HAVE_LM_SSL_SET_CIPHER_LIST
isbear@59:
isbear@66: // define this, if your loudmouth have LmMessageNodeAttribute
isbear@66: #cmakedefine HAVE_LM_MESSAGE_NODE_ATTRIBUTE
isbear@66:
isbear@63: // building against lua 5.1
isbear@63: #cmakedefine LUA51_COMPATIBILITY
isbear@63:
isbear@63: #ifdef LUA51_COMPATIBILITY
isbear@54: # define lua_rawlen lua_objlen
isbear@54: # define luaL_setfuncs(STATE, REGTABLE, IGZERO) luaL_register ( STATE, NULL, REGTABLE )
isbear@54: #endif
isbear@54:
isbear@5: #ifdef DEBUG
isbear@23: # include
isbear@6:
isbear@6: # ifndef LLM_LOG_PREFIX
isbear@6: # define LLM_LOG_PREFIX ( "lua-lm" )
isbear@6: # endif
isbear@6:
isbear@6: # define D(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_DEBUG, FORMAT); }
isbear@6: # define I(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_INFO, FORMAT); }
isbear@6: # define W(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_WARNING, FORMAT); }
isbear@6: # define E(FORMAT...) { g_log (LLM_LOG_PREFIX, G_LOG_LEVEL_ERROR, FORMAT); }
isbear@5: #else
isbear@6: # define D(FORMAT...) { /* FORMAT */ }
isbear@6: # define I(FORMAT...) { /* FORMAT */ }
isbear@6: # define W(FORMAT...) { /* FORMAT */ }
isbear@6: # define E(FORMAT...) { /* FORMAT */ }
isbear@5: #endif
isbear@5:
isbear@5: #endif
isbear@5: