summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-03-03 15:15:51 -0600
committerDudemanguy <random342@airmail.cc>2024-03-03 15:15:51 -0600
commitb08822b8ce829856261d826c199e94a7fdab72ab (patch)
tree286aaf1954d16488198e9638ae2c536ee9f74857
parent385031ae2d525ccf8c2a6fb71268e197b6d26a07 (diff)
downloadmpv-b08822b8ce829856261d826c199e94a7fdab72ab.tar.bz2
mpv-b08822b8ce829856261d826c199e94a7fdab72ab.tar.xz
test/test_utils: add mp_msg_set_max_level stub
Needed since the previous commit.
-rw-r--r--test/test_utils.c1
-rw-r--r--test/test_utils.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/test_utils.c b/test/test_utils.c
index b80caf8f71..98597c9847 100644
--- a/test/test_utils.c
+++ b/test/test_utils.c
@@ -105,6 +105,7 @@ const char *mp_help_text;
void mp_msg(struct mp_log *log, int lev, const char *format, ...) {};
int mp_msg_find_level(const char *s) {return 0;};
int mp_msg_level(struct mp_log *log) {return 0;};
+void mp_msg_set_max_level(struct mp_log *log, int lev) {};
void mp_write_console_ansi(void) {};
void mp_set_avdict(AVDictionary **dict, char **kv) {};
struct mp_log *mp_log_new(void *talloc_ctx, struct mp_log *parent,
diff --git a/test/test_utils.h b/test/test_utils.h
index 66615d3710..df8c567ce9 100644
--- a/test/test_utils.h
+++ b/test/test_utils.h
@@ -51,6 +51,7 @@ void mp_msg(struct mp_log *log, int lev, const char *format, ...)
PRINTF_ATTRIBUTE(3, 4);
int mp_msg_find_level(const char *s);
int mp_msg_level(struct mp_log *log);
+void mp_msg_set_max_level(struct mp_log *log, int lev);
void mp_write_console_ansi(void);
typedef struct AVDictionary AVDictionary;
void mp_set_avdict(AVDictionary **dict, char **kv);