X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=sigrok-internal.h;h=d385340357c551d6323105443d49970fd975beee;hb=c548332c21acc2588114214b38eaa3237fc3f8b3;hp=4aeae18e4cdd904b0edb97517b6dcb24c79b3f96;hpb=f5a443f27ad0e99f8f0f93867a1f298d7a6a327a;p=libsigrok.git diff --git a/sigrok-internal.h b/sigrok-internal.h index 4aeae18e..d3853403 100644 --- a/sigrok-internal.h +++ b/sigrok-internal.h @@ -20,6 +20,8 @@ #ifndef SIGROK_SIGROK_INTERNAL_H #define SIGROK_SIGROK_INTERNAL_H +#include + /*--- Macros ----------------------------------------------------------------*/ #ifndef ARRAY_SIZE @@ -37,6 +39,21 @@ int load_hwplugins(void); +/*--- log.c -----------------------------------------------------------------*/ + +/* Log levels for sr_log() and friends. */ +#define SR_LOG_NONE 0 +#define SR_LOG_DBG 1 +#define SR_LOG_INFO 2 +#define SR_LOG_WARN 3 +#define SR_LOG_ERR 4 + +int sr_log(int loglevel, const char *format, ...); +int sr_dbg(const char *format, ...); +int sr_info(const char *format, ...); +int sr_warn(const char *format, ...); +int sr_err(const char *format, ...); + /*--- hardware/common/serial.c ----------------------------------------------*/ GSList *list_serial_ports(void);