Commit f12b4118 authored by Bob Ham's avatar Bob Ham
Browse files

calls-call: Add calls_call_get_inbound function

parent b1a743b7
......@@ -212,6 +212,29 @@ DEFINE_CALL_FUNC_VOID(answer);
DEFINE_CALL_FUNC_VOID(hang_up);
/**
* calls_call_get_inbound:
* @self: a #CallsCall
*
* Get the direction of the call.
*
* Returns: TRUE if inbound, FALSE if outbound.
*/
gboolean
calls_call_get_inbound (CallsCall *self)
{
gboolean inbound;
g_return_val_if_fail (CALLS_IS_CALL (self), FALSE);
g_object_get (self,
"inbound", &inbound,
NULL);
return inbound;
}
static inline gboolean
tone_key_is_valid (gchar key)
{
......
......@@ -68,6 +68,7 @@ struct _CallsCallInterface
const gchar * calls_call_get_number (CallsCall *self);
const gchar * calls_call_get_name (CallsCall *self);
CallsCallState calls_call_get_state (CallsCall *self);
gboolean calls_call_get_inbound (CallsCall *self);
void calls_call_answer (CallsCall *self);
void calls_call_hang_up (CallsCall *self);
void calls_call_tone_start (CallsCall *self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment