Method

MsgContactServicecreate

Declaration [src]

MsgContact*
msg_contact_service_create (
  MsgContactService* self,
  MsgContact* contact,
  GCancellable* cancellable,
  GError** error
)

Description [src]

Create new contact #contact and return new contact object.

Parameters

contact MsgContact
 

A MsgContact.

 The data is owned by the caller of the function.
cancellable GCancellable
 

A GCancellable.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: MsgContact
 

A new MsgContact.

 The caller of the method takes ownership of the data, and is responsible for freeing it.