(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:
@@ -120,9 +120,10 @@ struct obs_encoder_info {
|
||||
/**
|
||||
* Gets the full translated name of this encoder
|
||||
*
|
||||
* @return Translated name of the encoder
|
||||
* @param type_data The type_data variable of this structure
|
||||
* @return Translated name of the encoder
|
||||
*/
|
||||
const char *(*get_name)(void);
|
||||
const char *(*get_name)(void *type_data);
|
||||
|
||||
/**
|
||||
* Creates the encoder with the specified settings
|
||||
|
Reference in New Issue
Block a user