sourceTypes method
Implementation
List<Map<String, String>> sourceTypes() {
int idx = 0;
final List<Map<String, String>> list = [];
ffi.Pointer<ffi.Pointer<ffi.Int8>> id = calloc();
while (_lib.obs_enum_source_types(idx++, id) != 0) {
final sourceType = _lib.obs_source_get_display_name(id.value).string;
if (id.value.string != null && sourceType != null) {
list.add({'id': id.value.string!, 'name': sourceType});
}
}
calloc.free(id);
return list;
}