libobs: Add obs_obj_is_private()

Returns true if an obs object is considered private. (Author's note: the
concept of "private" objects is not ideal, but we're stuck with it for
now)
This commit is contained in:
jp9000
2021-04-06 11:54:37 -07:00
parent ca08df9fb2
commit 33c5563c1e
2 changed files with 10 additions and 0 deletions

View File

@@ -2239,6 +2239,15 @@ void *obs_obj_get_data(void *obj)
return context->data;
}
bool obs_obj_is_private(void *obj)
{
struct obs_context_data *context = obj;
if (!context)
return false;
return context->private;
}
bool obs_set_audio_monitoring_device(const char *name, const char *id)
{
if (!name || !id || !*name || !*id)