libobs: Add functions to get private type data

The private type data is the type_data variable that's provided when
object types are registered by plugins.
This commit is contained in:
jp9000
2015-09-15 22:51:37 -07:00
parent 7920668e56
commit 0ed913a136
5 changed files with 32 additions and 0 deletions

View File

@@ -334,3 +334,9 @@ bool obs_weak_service_references_service(obs_weak_service_t *weak,
{
return weak && service && weak->service == service;
}
void *obs_service_get_type_data(obs_service_t *service)
{
return obs_service_valid(service, "obs_service_get_type_data")
? service->info.type_data : NULL;
}