1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-27 20:30:13 -04:00

Fix log test stub

This commit is contained in:
Michael Vetter 2020-02-21 21:29:14 +01:00
parent 55f49f1259
commit f055faf31c

View File

@ -26,20 +26,21 @@
#include "log.h" #include "log.h"
void log_init(log_level_t filter) {} void log_init(log_level_t filter, char *log_file) {}
log_level_t log_get_filter(void) log_level_t log_get_filter(void)
{ {
return mock_type(log_level_t); return mock_type(log_level_t);
} }
void log_reinit(void) {} void log_reinit(void) {}
void log_close(void) {} void log_close(void) {}
void log_debug(const char * const msg, ...) {} void log_debug(const char * const msg, ...) {}
void log_info(const char * const msg, ...) {} void log_info(const char * const msg, ...) {}
void log_warning(const char * const msg, ...) {} void log_warning(const char * const msg, ...) {}
void log_error(const char * const msg, ...) {} void log_error(const char * const msg, ...) {}
void log_msg(log_level_t level, const char * const area, void log_msg(log_level_t level, const char * const area, const char * const msg) {}
const char * const msg) {}
char * get_log_file_location(void) const char * get_log_file_location(void)
{ {
return mock_ptr_type(char *); return mock_ptr_type(char *);
} }