call-list: allow getting call object by DBus path
This commit is contained in:
@@ -135,6 +135,19 @@ cmp_call_by_path (MMBaseCall *call,
|
|||||||
return g_strcmp0 (mm_base_call_get_path (call), path);
|
return g_strcmp0 (mm_base_call_get_path (call), path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MMBaseCall *
|
||||||
|
mm_call_list_get_call (MMCallList *self,
|
||||||
|
const gchar *call_path)
|
||||||
|
{
|
||||||
|
GList *l;
|
||||||
|
|
||||||
|
l = g_list_find_custom (self->priv->list,
|
||||||
|
(gpointer)call_path,
|
||||||
|
(GCompareFunc)cmp_call_by_path);
|
||||||
|
|
||||||
|
return (l ? MM_BASE_CALL (l->data) : NULL);
|
||||||
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
mm_call_list_delete_call (MMCallList *self,
|
mm_call_list_delete_call (MMCallList *self,
|
||||||
const gchar *call_path,
|
const gchar *call_path,
|
||||||
|
@@ -64,6 +64,9 @@ guint mm_call_list_get_count (MMCallList *self);
|
|||||||
void mm_call_list_add_call (MMCallList *self,
|
void mm_call_list_add_call (MMCallList *self,
|
||||||
MMBaseCall *call);
|
MMBaseCall *call);
|
||||||
|
|
||||||
|
MMBaseCall *mm_call_list_get_call (MMCallList *self,
|
||||||
|
const gchar *call_path);
|
||||||
|
|
||||||
gboolean mm_call_list_delete_call (MMCallList *self,
|
gboolean mm_call_list_delete_call (MMCallList *self,
|
||||||
const gchar *call_path,
|
const gchar *call_path,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
Reference in New Issue
Block a user