condition: introduce condition_test_list()

This commit is contained in:
Yu Watanabe
2019-03-21 23:37:39 +09:00
parent f6d6d53237
commit 828fa6108b
2 changed files with 48 additions and 0 deletions
+2
View File
@@ -68,6 +68,8 @@ void condition_free(Condition *c);
Condition* condition_free_list(Condition *c);
int condition_test(Condition *c);
typedef int (*condition_test_logger_t)(void *userdata, int level, int error, const char *file, int line, const char *func, const char *format, ...) _printf_(7, 8);
bool condition_test_list(Condition *first, const char *(*to_string)(ConditionType t), condition_test_logger_t logger, void *userdata);
void condition_dump(Condition *c, FILE *f, const char *prefix, const char *(*to_string)(ConditionType t));
void condition_dump_list(Condition *c, FILE *f, const char *prefix, const char *(*to_string)(ConditionType t));