mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 15:58:01 +02:00
debug: optimize wp_log_level_is_enabled()
Add the 'const' attribute to let the compiler know that it doesn't need to call it multiple times for the same debug level argument, since the enabled log levels cannot change at runtime.
This commit is contained in:
parent
1faa752cd0
commit
2c1df41a16
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ G_BEGIN_DECLS
|
|||
#define WP_OBJECT_ARGS(object) G_OBJECT_TYPE_NAME(object), object
|
||||
|
||||
WP_API
|
||||
gboolean wp_log_level_is_enabled (GLogLevelFlags log_level);
|
||||
gboolean wp_log_level_is_enabled (GLogLevelFlags log_level) G_GNUC_CONST;
|
||||
|
||||
WP_API
|
||||
GLogWriterOutput wp_log_writer_default (GLogLevelFlags log_level,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue