ensure_connection
Description:
[ Version ( deprecated = true , since = "0.9.0" ) ]
public unowned Connection ensure_connection (string path)
public unowned Connection ensure_connection (string path)
Warning: ensure_connection is deprecated.
Set the connection of the account by specifying the connection object path.
Note:
New code should use ensure_connection instead.
This function does not return a new ref and it is not guaranteed that the returned Connection object is ready.
The use-case for this function is in a HandleChannels callback and you already know the object path for the connection, so you can let this create its Connection and return it for use.
Parameters:
this |
a Account |
path |
the path to connection object for Account |
Returns:
the connection of the account, or |