![]() |
SoapySDR
0.1.0
Vendor and platform neutral SDR interface library
|
Go to the source code of this file.
Typedefs | |
typedef void(* | SoapySDRLogHandler )(const SoapySDRLogLevel logLevel, const char *message) |
Enumerations | |
enum | SoapySDRLogLevel { SOAPY_SDR_FATAL = 1, SOAPY_SDR_CRITICAL = 2, SOAPY_SDR_ERROR = 3, SOAPY_SDR_WARNING = 4, SOAPY_SDR_NOTICE = 5, SOAPY_SDR_INFO = 6, SOAPY_SDR_DEBUG = 7, SOAPY_SDR_TRACE = 8 } |
Functions | |
SOAPY_SDR_API void | SoapySDR_log (const SoapySDRLogLevel logLevel, const char *message) |
SOAPY_SDR_API void | SoapySDR_vlogf (const SoapySDRLogLevel logLevel, const char *format, va_list argList) |
static void | SoapySDR_logf (const SoapySDRLogLevel logLevel, const char *format,...) |
SOAPY_SDR_API void | SoapySDR_registerLogHandler (const SoapySDRLogHandler handler) |
Logger API for SoapySDR devices. Implementations should use the logger rather than stdio. The default log handler prints to the stdout and stderr.
typedef void(* SoapySDRLogHandler)(const SoapySDRLogLevel logLevel, const char *message) |
Typedef for the registered log handler function.
enum SoapySDRLogLevel |
SOAPY_SDR_API void SoapySDR_log | ( | const SoapySDRLogLevel | logLevel, |
const char * | message | ||
) |
Send a message to the registered logger.
logLevel | a possible logging level |
message | a logger message string |
|
inlinestatic |
Send a message to the registered logger.
logLevel | a possible logging level |
format | a printf style format string |
SOAPY_SDR_API void SoapySDR_registerLogHandler | ( | const SoapySDRLogHandler | handler | ) |
Register a new system log handler. Platforms should call this to replace the default stdio handler.
SOAPY_SDR_API void SoapySDR_vlogf | ( | const SoapySDRLogLevel | logLevel, |
const char * | format, | ||
va_list | argList | ||
) |
Send a message to the registered logger.
logLevel | a possible logging level |
format | a printf style format string |
argList | an argument list for the formatter |