sip: origin: Always notify state changes when relevant to the UI

by adding functions to the public API which determine if state changes
should be shown to the user and use them (instead of duplicating similar
logic).
This commit is contained in:
Evangelos Ribeiro Tzaras
2022-05-19 20:10:46 +02:00
parent 41479eea09
commit 46ff807f6b
3 changed files with 72 additions and 50 deletions

View File

@@ -109,5 +109,7 @@ const char *calls_account_state_reason_to_string (CallsAccountState
void calls_account_emit_message_for_state_change (CallsAccount *account,
CallsAccountState new_state,
CallsAccountStateReason reason);
gboolean calls_account_state_is_for_ui (CallsAccountState state);
gboolean calls_account_state_reason_is_for_ui (CallsAccountStateReason reason);
G_END_DECLS