mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-07 04:53:15 -04:00
(API Change) libobs: Pass type data to get_name callbacks
API changed from: obs_source_info::get_name(void) obs_output_info::get_name(void) obs_encoder_info::get_name(void) obs_service_info::get_name(void) API changed to: obs_source_info::get_name(void *type_data) obs_output_info::get_name(void *type_data) obs_encoder_info::get_name(void *type_data) obs_service_info::get_name(void *type_data) This allows the type data to be used when getting the name of the object (useful for plugin wrappers primarily). NOTE: Though a parameter was added, this is backward-compatible with older plugins due to calling convention. The new parameter will simply be ignored by older plugins, and the stack (if used) will be cleaned up by the caller.
This commit is contained in:
1 parent
0ed913a136
commit
6285a47726
52 files changed
+98
-58
No files matched your search
+3
-2
@@ -133,9 +133,10 @@ struct obs_source_info {
|
||||
/**
|
||||
* Get the translated name of the source type
|
||||
*
|
||||
* @return The translated name of the source type
|
||||
* @param type_data The type_data variable of this structure
|
||||
* @return The translated name of the source type
|
||||
*/
|
||||
const char *(*get_name)(void);
|
||||
const char *(*get_name)(void *type_data);
|
||||
|
||||
/**
|
||||
* Creates the source data for the source
|
||||
|
||||
Reference in new issue
Block a user