libobs: Add UUIDs to obs_source objects

This commit is contained in:
derrod
2023-03-12 01:11:38 +01:00
committed by Rodney
parent f72cc4498f
commit 30519768ad
9 changed files with 95 additions and 27 deletions
+9
View File
@@ -333,6 +333,15 @@ Libobs Objects
---------------------
.. function:: obs_source_t *obs_get_source_by_uuid(const char *uuid)
Gets a source by its UUID.
Increments the source reference counter, use
:c:func:`obs_source_release()` to release it when complete.
---------------------
.. function:: obs_source_t *obs_get_transition_by_name(const char *name)
Gets a transition by its name.
+6
View File
@@ -941,6 +941,12 @@ General Source Functions
---------------------
.. function:: const char *obs_source_get_uuid(const obs_source_t *source)
:return: The UUID of the source
---------------------
.. function:: void obs_source_set_name(obs_source_t *source, const char *name)
Sets the name of a source. If the source is not private and the name