|
@@ -30,6 +30,8 @@
|
|
|
#ifndef BADVPN_NCD_NCDMODULE_H
|
|
#ifndef BADVPN_NCD_NCDMODULE_H
|
|
|
#define BADVPN_NCD_NCDMODULE_H
|
|
#define BADVPN_NCD_NCDMODULE_H
|
|
|
|
|
|
|
|
|
|
+#include <stdarg.h>
|
|
|
|
|
+
|
|
|
#include <misc/debug.h>
|
|
#include <misc/debug.h>
|
|
|
#include <system/BReactor.h>
|
|
#include <system/BReactor.h>
|
|
|
#include <base/BLog.h>
|
|
#include <base/BLog.h>
|
|
@@ -525,6 +527,12 @@ int NCDModuleInst_Backend_GetObj (NCDModuleInst *n, NCD_string_id_t name, NCDObj
|
|
|
*/
|
|
*/
|
|
|
void NCDModuleInst_Backend_Log (NCDModuleInst *n, int channel, int level, const char *fmt, ...);
|
|
void NCDModuleInst_Backend_Log (NCDModuleInst *n, int channel, int level, const char *fmt, ...);
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * Like {@link NCDModuleInst_Backend_Log}, but the extra arguments are passed
|
|
|
|
|
+ * as a va_list. This allows creation of logging wrappers.
|
|
|
|
|
+ */
|
|
|
|
|
+void NCDModuleInst_Backend_LogVarArg (NCDModuleInst *n, int channel, int level, const char *fmt, va_list vl);
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Sets the error flag for the module instance.
|
|
* Sets the error flag for the module instance.
|
|
|
* The error flag only has no effect until the backend calls
|
|
* The error flag only has no effect until the backend calls
|