mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
completion wrap qoflog
This commit is contained in:
@@ -83,6 +83,19 @@ engine-common.i */
|
||||
|
||||
%include "engine-common.i"
|
||||
%include "engine-deprecated.h"
|
||||
|
||||
#if defined(SWIGGUILE)
|
||||
%ignore QofLogModule;
|
||||
%typemap(in) QofLogModule {
|
||||
$1 = (const char *)SWIG_scm2str($input);
|
||||
}
|
||||
|
||||
%typemap(freearg) QofLogModule {
|
||||
SWIG_free((char*)$1);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
%include "qoflog.h"
|
||||
|
||||
%inline %{
|
||||
@@ -327,7 +340,12 @@ void qof_book_set_string_option(QofBook* book, const char* opt_name, const char*
|
||||
SET_ENUM("QOF-COMPARE-CONTAINS");
|
||||
SET_ENUM("QOF-COMPARE-NCONTAINS");
|
||||
|
||||
SET_ENUM("QOF-LOG-DEBUG"); /* errors out */
|
||||
SET_ENUM("QOF-LOG-DEBUG");
|
||||
SET_ENUM("QOF-LOG-FATAL");
|
||||
SET_ENUM("QOF-LOG-ERROR");
|
||||
SET_ENUM("QOF-LOG-WARNING");
|
||||
SET_ENUM("QOF-LOG-MESSAGE");
|
||||
SET_ENUM("QOF-LOG-INFO");
|
||||
|
||||
SET_ENUM("QOF-NUMERIC-MATCH-ANY");
|
||||
SET_ENUM("QOF-NUMERIC-MATCH-CREDIT");
|
||||
|
||||
@@ -96,15 +96,15 @@ extern "C"
|
||||
|
||||
#define QOF_MOD_ENGINE "qof.engine"
|
||||
|
||||
#define LOG_LEVEL_LIST(_) \
|
||||
_(QOF_LOG_FATAL, = G_LOG_LEVEL_ERROR) \
|
||||
_(QOF_LOG_ERROR, = G_LOG_LEVEL_CRITICAL) \
|
||||
_(QOF_LOG_WARNING, = G_LOG_LEVEL_WARNING) \
|
||||
_(QOF_LOG_MESSAGE, = G_LOG_LEVEL_MESSAGE) \
|
||||
_(QOF_LOG_INFO, = G_LOG_LEVEL_INFO) \
|
||||
_(QOF_LOG_DEBUG, = G_LOG_LEVEL_DEBUG)
|
||||
|
||||
DEFINE_ENUM (QofLogLevel, LOG_LEVEL_LIST);
|
||||
typedef enum
|
||||
{
|
||||
QOF_LOG_FATAL = G_LOG_LEVEL_ERROR,
|
||||
QOF_LOG_ERROR = G_LOG_LEVEL_CRITICAL,
|
||||
QOF_LOG_WARNING = G_LOG_LEVEL_WARNING,
|
||||
QOF_LOG_MESSAGE = G_LOG_LEVEL_MESSAGE,
|
||||
QOF_LOG_INFO = G_LOG_LEVEL_INFO,
|
||||
QOF_LOG_DEBUG = G_LOG_LEVEL_DEBUG
|
||||
} QofLogLevel;
|
||||
|
||||
const char* qof_log_level_to_string(QofLogLevel lvl);
|
||||
QofLogLevel qof_log_level_from_string(const char *str);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
add_subdirectory(test)
|
||||
|
||||
set(GUILE_DEPENDS scm-core-utils scm-gnc-module)
|
||||
set(GUILE_DEPENDS scm-core-utils scm-gnc-module gncmod-engine)
|
||||
|
||||
|
||||
gnc_add_scheme_targets(scm-scm
|
||||
|
||||
Reference in New Issue
Block a user