PipeWire 1.2.1
Loading...
Searching...
No Matches
spa_log_methods Struct Reference

#include <spa/support/log.h>

Data Fields

uint32_t version
 
void(* log )(void *object, enum spa_log_level level, const char *file, int line, const char *func, const char *fmt,...)
 Log a message with the given log level.
 
void(* logv )(void *object, enum spa_log_level level, const char *file, int line, const char *func, const char *fmt, va_list args)
 Log a message with the given log level.
 
void(* logt )(void *object, enum spa_log_level level, const struct spa_log_topic *topic, const char *file, int line, const char *func, const char *fmt,...)
 Log a message with the given log level for the given topic.
 
void(* logtv )(void *object, enum spa_log_level level, const struct spa_log_topic *topic, const char *file, int line, const char *func, const char *fmt, va_list args)
 Log a message with the given log level for the given topic.
 
void(* topic_init )(void *object, struct spa_log_topic *topic)
 Initializes a spa_log_topic to the correct logging level.
 

Field Documentation

◆ version

uint32_t spa_log_methods::version

◆ log

void(* spa_log_methods::log) (void *object, enum spa_log_level level, const char *file, int line, const char *func, const char *fmt,...)

Log a message with the given log level.

Note
If compiled with this header, this function is only called for implementations of version 0. For versions 1 and above, see logt() instead.
Parameters
loga spa_log
levela spa_log_level
filethe file name
linethe line number
functhe function name
fmtprintf style format
...format arguments

◆ logv

void(* spa_log_methods::logv) (void *object, enum spa_log_level level, const char *file, int line, const char *func, const char *fmt, va_list args)

Log a message with the given log level.

Note
If compiled with this header, this function is only called for implementations of version 0. For versions 1 and above, see logtv() instead.
Parameters
loga spa_log
levela spa_log_level
filethe file name
linethe line number
functhe function name
fmtprintf style format
argsformat arguments

◆ logt

void(* spa_log_methods::logt) (void *object, enum spa_log_level level, const struct spa_log_topic *topic, const char *file, int line, const char *func, const char *fmt,...)

Log a message with the given log level for the given topic.

Note
Callers that do not use topic-based logging (version 0), the topic is NULL
Parameters
loga spa_log
levela spa_log_level
topicthe topic for this message, may be NULL
filethe file name
linethe line number
functhe function name
fmtprintf style format
...format arguments
Since
1

◆ logtv

void(* spa_log_methods::logtv) (void *object, enum spa_log_level level, const struct spa_log_topic *topic, const char *file, int line, const char *func, const char *fmt, va_list args)

Log a message with the given log level for the given topic.

Note
For callers that do not use topic-based logging (version 0), the topic is NULL
Parameters
loga spa_log
levela spa_log_level
topicthe topic for this message, may be NULL
filethe file name
linethe line number
functhe function name
fmtprintf style format
argsformat arguments
Since
1

◆ topic_init

void(* spa_log_methods::topic_init) (void *object, struct spa_log_topic *topic)

Initializes a spa_log_topic to the correct logging level.

Since
1

The documentation for this struct was generated from the following file: