Files
projectm/tests/playlist/ProjectMAPIMocks.cpp
Kai Blaschke bac2a7ae12 Fix playlist tests on Windows.
Removed dependency on projectMtarget alltogether, as the playlist tests don't need the core library at all, only a few API functions which are mocked. Also made sure the mocked functions are declared as dllexport on Windows to match the dllimport declspec in the playlist library.
2023-01-17 18:55:29 +01:00

25 lines
941 B
C++

/**
* This file defines the few projectM API calls used in the playlist library. We're not interested
* in their implementation in this test suite.
*/
#include <libprojectM/projectM.h>
#include <libprojectM/projectM_export.h>
PROJECTM_EXPORT void projectm_set_preset_switch_requested_event_callback(projectm_handle instance,
projectm_preset_switch_requested_event callback,
void* user_data)
{
}
PROJECTM_EXPORT void projectm_set_preset_switch_failed_event_callback(projectm_handle instance,
projectm_preset_switch_failed_event callback,
void* user_data)
{
}
PROJECTM_EXPORT void projectm_load_preset_file(projectm_handle instance, const char* filename,
bool smooth_transition)
{
}