libsigrokdecode  0.2.0
sigrok protocol decoding library
 All Data Structures Files Functions Variables Typedefs Enumerator Macros Groups Pages
Macros | Functions
log.c File Reference

Controlling the libsigrokdecode message logging functionality. More...

#include "libsigrokdecode.h"
#include "libsigrokdecode-internal.h"
#include <stdarg.h>
#include <stdio.h>
+ Include dependency graph for log.c:

Go to the source code of this file.

Macros

#define LOGDOMAIN_MAXLEN   30
 
#define LOGDOMAIN_DEFAULT   "srd: "
 

Functions

int srd_log_loglevel_set (int loglevel)
 Set the libsigrokdecode loglevel. More...
 
int srd_log_loglevel_get (void)
 Get the libsigrokdecode loglevel. More...
 
int srd_log_logdomain_set (const char *logdomain)
 Set the libsigrokdecode logdomain string. More...
 
char * srd_log_logdomain_get (void)
 Get the currently configured libsigrokdecode logdomain. More...
 
int srd_log_callback_set (srd_log_callback_t cb, void *cb_data)
 Set the libsigrokdecode log callback to the specified function. More...
 
int srd_log_callback_set_default (void)
 Set the libsigrokdecode log callback to the default built-in one. More...
 

Detailed Description

Controlling the libsigrokdecode message logging functionality.

Definition in file log.c.

Macro Definition Documentation

#define LOGDOMAIN_DEFAULT   "srd: "
#define LOGDOMAIN_MAXLEN   30

Referenced by srd_log_logdomain_set().