mirror of
https://github.com/falk-werner/webfused
synced 2024-10-27 20:44:08 +00:00
27 lines
428 B
C++
27 lines
428 B
C++
#include "mock/libconfig.hpp"
|
|
#include "util/wrap.hpp"
|
|
|
|
extern "C"
|
|
{
|
|
|
|
static webfused_test::ILibConfig * wfd_MockLibConfig = nullptr;
|
|
|
|
WFD_WRAP_FUNC2(wfd_MockLibConfig, config_setting_t *, config_setting_get_elem,
|
|
config_setting_t const *, unsigned int);
|
|
|
|
}
|
|
|
|
namespace webfused_test
|
|
{
|
|
|
|
MockLibConfig::MockLibConfig()
|
|
{
|
|
wfd_MockLibConfig = this;
|
|
}
|
|
|
|
MockLibConfig::~MockLibConfig()
|
|
{
|
|
wfd_MockLibConfig = nullptr;
|
|
}
|
|
|
|
} |