Remove 'locale' parameter from all callbacks
The locale parameter was a mistake, because it puts extra needless burden upon the module developer to have to handle this variable for each and every single callback function. The parameter is being removed in favor of a single centralized module callback function that specifically updates locale information for a module only when needed.
This commit is contained in:
@@ -21,7 +21,7 @@ struct obs_service_info {
|
||||
/* required */
|
||||
const char *id;
|
||||
|
||||
const char *(*getname)(const char *locale);
|
||||
const char *(*getname)(void);
|
||||
void *(*create)(obs_data_t settings, obs_service_t service);
|
||||
void (*destroy)(void *data);
|
||||
|
||||
@@ -33,7 +33,7 @@ struct obs_service_info {
|
||||
|
||||
void (*defaults)(obs_data_t settings);
|
||||
|
||||
obs_properties_t (*properties)(const char *locale);
|
||||
obs_properties_t (*properties)(void);
|
||||
|
||||
/**
|
||||
* Called when getting ready to start up an output, before the encoders
|
||||
|
Reference in New Issue
Block a user