#include "libsigrok.h"
#include "libsigrok-internal.h"
+/**
+ * @file
+ *
+ * Controlling the libsigrok message logging functionality.
+ */
+
+/**
+ * @defgroup grp_logging Logging
+ *
+ * Controlling the libsigrok message logging functionality.
+ *
+ * @{
+ */
+
/* Currently selected libsigrok loglevel. Default: SR_LOG_WARN. */
static int sr_loglevel = SR_LOG_WARN; /* Show errors+warnings per default. */
static void *sr_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 "sr: "
+/** @endcond */
static char sr_log_domain[LOGDOMAIN_MAXLEN + 1] = LOGDOMAIN_DEFAULT;
/**
return ret;
}
+/** @private */
SR_PRIV int sr_log(int loglevel, const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SR_PRIV int sr_spew(const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SR_PRIV int sr_dbg(const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SR_PRIV int sr_info(const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SR_PRIV int sr_warn(const char *format, ...)
{
int ret;
return ret;
}
+/** @private */
SR_PRIV int sr_err(const char *format, ...)
{
int ret;
return ret;
}
+
+/** @} */