Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * TpConnectionContactsByIdCb:
- * @connection: The connection
- * @n_contacts: The number of TpContact objects successfully created
- * (one per valid ID), or 0 on unrecoverable errors
- * @contacts: (array length=n_contacts): An array of @n_contacts TpContact
- * objects (this callback is
- * not given a reference to any of these objects, and must call
- * g_object_ref() on any that it will keep), or %NULL on unrecoverable errors
- * @requested_ids: (array length=n_contacts): An array of @n_contacts valid IDs
- * (JIDs, SIP URIs etc.)
- * that were passed to tp_connection_get_contacts_by_id(), in an order
- * corresponding to @contacts, or %NULL on unrecoverable errors
- * @failed_id_errors: (element-type utf8 GLib.Error): A hash table in which
- * the keys are IDs and the values are errors (#GError)
- * @error: %NULL on success, or an unrecoverable error that caused everything
- * to fail
- * @user_data: the @user_data that was passed to
- * tp_connection_get_contacts_by_id()
- * @weak_object: the @weak_object that was passed to
- * tp_connection_get_contacts_by_id()
- */
- /**
- * tp_connection_get_contacts_by_id:
- * @self: A connection, which must be ready (#TpConnection:connection-ready
- * must be %TRUE)
- * @n_ids: The number of IDs in @ids (must be at least 1)
- * @ids: (array length=n_ids) (transfer none): An array of strings representing
- * the desired contacts by their
- * identifiers in the IM protocol (XMPP JIDs, SIP URIs, MSN Passports,
- * AOL screen-names etc.)
- * @n_features: The number of features in @features (may be 0)
- * @features: (array length=n_features): An array of features that must be
- * ready for use (if supported)
- * before the callback is called (may be %NULL if @n_features is 0)
- * @callback: A user callback to call when the contacts are ready
- * @user_data: Data to pass to the callback
- * @destroy: Called to destroy @user_data either after @callback has been
- * called, or if the operation is cancelled
- * @weak_object: (allow-none) (transfer none): An object to pass to the
- * callback, which will be weakly
- * referenced; if this object is destroyed, the operation will be cancelled
- */
- conn.get_contacts_by_id(
- [ "dannielle.meyer@gmail.com" ],
- [],
- function(conn, contacts, requested, failed, error,
- user_data, weak_obj)
- {
- print("Callback");
- },
- null, null, null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement