Warning: hold_handles is deprecated.
Hold (ensure a reference to) the given handles, if they are valid.
Holding handles is not needed with Connection Managers having immortal handles (any Connection Manager using telepathy-glib >= 0.13.8).
Other Connection Managers are considered deprecated, clients wanting to still support them should continue using this deprecated function.
If they are valid, the callback will later be called with the given handles; if not all of them are valid, the callback will be called with an error.
This function, along with unref_handles, get_contact_attributes and Contact, keeps a client-side reference count of handles; you should not use the RequestHandles, HoldHandles and GetContactAttributes D-Bus methods directly as well as these functions.
this |
a connection |
timeout_ms |
the timeout in milliseconds, or -1 to use the default |
handle_type |
the handle type |
handles |
an array of handles |
callback |
called on success or failure (unless |
weak_object |
if not |
destroy |
called to destroy |
n_handles |
the number of handles in |
user_data |
arbitrary user-supplied data |