obs-studio/test/test-input/test-input.c

29 lines
508 B
C
Raw Normal View History

#include <obs.h>
2013-09-30 19:37:13 -07:00
#include "test-input-exports.h"
const char *inputs[] = {"random"};
const char *filters[] = {"test"};
uint32_t module_version(uint32_t in_version)
{
return LIBOBS_API_VER;
}
2013-09-30 19:37:13 -07:00
bool enum_inputs(size_t idx, const char **name)
{
if (idx >= (sizeof(inputs)/sizeof(const char*)))
return false;
*name = inputs[idx];
return true;
}
bool enum_filters(size_t idx, const char **name)
{
if (idx >= (sizeof(filters)/sizeof(const char*)))
return false;
*name = filters[idx];
return true;
}