28 #ifndef __MU_LOADER_H__
29 #define __MU_LOADER_H__
31 #include <moonunit/internal/boilerplate.h>
32 #include <moonunit/error.h>
33 #include <moonunit/plugin.h>
34 #include <moonunit/option.h>
35 #include <moonunit/test.h>
36 #include <sys/types.h>
42 typedef void (*MuLogCallback)(
struct MuLogEvent const* event,
void* data);
49 bool (*can_open) (
struct MuLoader*,
const char* path);
55 void (*free_tests) (
struct MuLoader*,
struct MuLibrary* handle,
struct MuTest** list);
61 const char* (*test_name) (
struct MuLoader*,
struct MuTest*);
63 const char* (*test_suite) (
struct MuLoader*,
struct MuTest*);
65 struct MuTestResult* (*dispatch)(
struct MuLoader*,
struct MuTest*, MuLogCallback,
void*,
MuLogLevel);
67 void (*free_result)(
struct MuLoader*,
struct MuTestResult*);
74 bool mu_loader_can_open(
MuLoader* loader,
const char* path);
76 void mu_loader_set_option(
MuLoader* loader,
const char *name, ...);
77 void mu_loader_set_option_string(
MuLoader* loader,
const char *name,
const char *value);
78 MuType mu_loader_option_type(
MuLoader* loader,
const char *name);
MuLogLevel
Definition: test.h:133