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:
@@ -108,9 +108,9 @@ static int_fast32_t xshm_update_geometry(struct xshm_data *data,
|
||||
/**
|
||||
* Returns the name of the plugin
|
||||
*/
|
||||
static const char* xshm_getname(const char* locale)
|
||||
static const char* xshm_getname(void)
|
||||
{
|
||||
UNUSED_PARAMETER(locale);
|
||||
/* TODO: locale */
|
||||
return "X11 Shared Memory Screen Input";
|
||||
}
|
||||
|
||||
@@ -154,8 +154,9 @@ static void xshm_defaults(obs_data_t defaults)
|
||||
/**
|
||||
* Get the properties for the capture
|
||||
*/
|
||||
static obs_properties_t xshm_properties(const char *locale)
|
||||
static obs_properties_t xshm_properties(void)
|
||||
{
|
||||
/* TODO: locale */
|
||||
obs_properties_t props = obs_properties_create();
|
||||
int_fast32_t screen_max;
|
||||
|
||||
|
Reference in New Issue
Block a user