mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
libobs: Add UUIDs to obs_source objects
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user