libobs: Use uthash for source objects

All sources are part of a hash table that allows a lookup by UUID.
Public sources additionally are in a hash table allowing lookup by name.
This commit is contained in:
derrod
2023-03-18 10:47:49 +01:00
parent 183fa8c06c
commit c68eeaef1d
7 changed files with 322 additions and 54 deletions
+9
View File
@@ -351,6 +351,15 @@ Libobs Objects
---------------------
.. function:: obs_source_t *obs_get_transition_by_uuid(const char *uuid)
Gets a transition by its UUID.
Increments the source reference counter, use
:c:func:`obs_source_release()` to release it when complete.
---------------------
.. function:: obs_scene_t *obs_get_scene_by_name(const char *name)
Gets a scene by its name.