]> git.0d.be Git - empathy.git/blobdiff - libempathy/empathy-contact.c
Rename empathy_contact_new_static to empathy_contact_new_for_log
[empathy.git] / libempathy / empathy-contact.c
index 813982b276015987710170f7221679dd10172528..fe8cf8234f5016d0c488f29cc63be694d2b3ab5f 100644 (file)
@@ -388,6 +388,23 @@ empathy_contact_new (TpContact *tp_contact)
       NULL);
 }
 
+EmpathyContact *
+empathy_contact_new_for_log (McAccount *account,
+                             const gchar *id,
+                             const gchar *name,
+                             gboolean is_user)
+{
+  g_return_val_if_fail (MC_IS_ACCOUNT (account), NULL);
+  g_return_val_if_fail (id != NULL, NULL);
+
+  return g_object_new (EMPATHY_TYPE_CONTACT,
+      "account", account,
+      "id", id,
+      "name", name,
+      "is-user", is_user,
+      NULL);
+}
+
 TpContact *
 empathy_contact_get_tp_contact (EmpathyContact *contact)
 {