application: Allow invoking with multiple -p arguments

When calls is invoked with one or more `--provider` arguments,
the application will only load the providers specified by the command line.

If no `--provider` argument is given, the application will instead fall back
to loading providers defined in the settings (see next commit).
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-06-09 14:19:27 +02:00
parent f930874d00
commit 4f6fb722b1
3 changed files with 78 additions and 23 deletions

View File

@@ -75,6 +75,8 @@ GListModel *calls_manager_get_suitable_origins (CallsManager
const gchar *calls_manager_get_contact_name (CallsCall *call);
gboolean calls_manager_has_active_call (CallsManager *self);
void calls_manager_hang_up_all_calls (CallsManager *self);
gboolean calls_manager_has_any_provider (CallsManager *self);
gboolean calls_manager_has_any_provider (CallsManager *self);
const char **calls_manager_get_provider_names (CallsManager *self,
guint *length);
G_END_DECLS