call: Track which side hung up the call

Adding a boolean flag allows us to distinguish this from situations
where the other side ended the call.

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/743>
This commit is contained in:
Guido Günther
2024-06-13 19:35:23 +02:00
committed by Marge Bot
parent 7bc0cc06ca
commit 7b2ab53f4d
2 changed files with 30 additions and 0 deletions

View File

@@ -58,6 +58,10 @@ typedef enum {
CALLS_CALL_TYPE_SIP_VOICE,
} CallsCallType;
/**
* CallsCallClass:
* @hang_up: Called to hang up a call.
*/
struct _CallsCallClass {
GObjectClass parent_class;
@@ -88,6 +92,7 @@ void calls_call_hang_up (CallsCall *self);
gboolean calls_call_can_dtmf (CallsCall *self);
void calls_call_send_dtmf_tone (CallsCall *self,
char key);
gboolean calls_call_get_we_hung_up (CallsCall *self);
gboolean calls_call_state_parse_nick (CallsCallState *state,
const char *nick);