#include <stdarg.h>
#include <stdio.h>
+/**
+ * @file
+ *
+ * Controlling the libsigrokdecode message logging functionality.
+ */
+
+/**
+ * @defgroup grp_logging Logging
+ *
+ * Controlling the libsigrokdecode message logging functionality.
+ *
+ * @{
+ */
+
/* Currently selected libsigrokdecode loglevel. Default: SRD_LOG_WARN. */
static int srd_loglevel = SRD_LOG_WARN; /* Show errors+warnings per default. */
static void *srd_log_callback_data = NULL;
/* Log domain (a short string that is used as prefix for all messages). */
+/** @cond PRIVATE */
#define LOGDOMAIN_MAXLEN 30
#define LOGDOMAIN_DEFAULT "srd: "
+/** @endcond */
static char srd_log_domain[LOGDOMAIN_MAXLEN + 1] = LOGDOMAIN_DEFAULT;
/**
return ret;
}
+/** @private */
SRD_PRIV int srd_log(int loglevel, const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SRD_PRIV int srd_spew(const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SRD_PRIV int srd_dbg(const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SRD_PRIV int srd_info(const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SRD_PRIV int srd_warn(const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SRD_PRIV int srd_err(const char *format, ...)
{
int ret;
return ret;
}
+
+/** @} */