提交 fe3f7539 编写于 作者: Z Zachary Lund

libobs: Allow const argument in obs_set_cmdline_args

obs_set_cmdline_args copies the arguments passed to it. This means that
the array passed will never require it to be modified.
上级 c9612983
......@@ -854,7 +854,7 @@ bool obs_startup(const char *locale, const char *module_config_path,
}
static struct obs_cmdline_args cmdline_args = {0, NULL};
void obs_set_cmdline_args(int argc, char **argv)
void obs_set_cmdline_args(int argc, const char * const *argv)
{
char *data;
size_t len;
......
......@@ -305,7 +305,7 @@ EXPORT const char *obs_get_version_string(void);
* @param argv An array of command line arguments, copied from main() and ends
* with NULL.
*/
EXPORT void obs_set_cmdline_args(int argc, char **argv);
EXPORT void obs_set_cmdline_args(int argc, const char * const *argv);
/**
* Get the argc/argv used to start OBS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册