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:
@@ -4,10 +4,8 @@ struct rtmp_custom {
|
||||
char *server, *key;
|
||||
};
|
||||
|
||||
static const char *rtmp_custom_name(const char *locale)
|
||||
static const char *rtmp_custom_name(void)
|
||||
{
|
||||
UNUSED_PARAMETER(locale);
|
||||
|
||||
/* TODO: locale */
|
||||
return "Custom Streaming Server";
|
||||
}
|
||||
@@ -41,7 +39,7 @@ static void *rtmp_custom_create(obs_data_t settings, obs_service_t service)
|
||||
return data;
|
||||
}
|
||||
|
||||
static obs_properties_t rtmp_custom_properties(const char *locale)
|
||||
static obs_properties_t rtmp_custom_properties(void)
|
||||
{
|
||||
obs_properties_t ppts = obs_properties_create();
|
||||
|
||||
|
Reference in New Issue
Block a user