application: Propagate verbosity to main instance

If another instance of calls was already running, invoking calls with
`-v` flag would set the verbosity for the newly created process and then
exit if it was not the primary instance.
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-10-13 15:18:03 +02:00
parent a5eb750350
commit f7e632dcb4
3 changed files with 36 additions and 0 deletions

View File

@@ -278,3 +278,17 @@ calls_log_get_verbosity (void)
{
return verbosity;
}
int
calls_log_set_verbosity (guint new_verbosity)
{
int diff = verbosity - new_verbosity;
if (new_verbosity == verbosity)
return 0;
verbosity = new_verbosity;
return diff;
}