parse_object_path


Description:

[ Version ( deprecated = true , since = "0.9.0" ) ]
public static bool parse_object_path (string object_path, out string cm, out string protocol, out string account_id) throws Error

Warning: parse_object_path is deprecated.

Validates and parses a Telepathy Account's object path, extracting the connection manager's name, the protocol, and the account's unique identifier from the path.

Note:

This includes replacing underscores with hyphens in the protocol name, as defined in the Account specification.

Any of the out parameters may be null if not needed. If true is returned, the caller is responsible for freeing the strings stored in any non-%NULL out parameters, using g_free.

Parameters:

object_path

a Telepathy Account's object path

cm

location at which to store the account's connection manager's name

protocol

location at which to store the account's protocol

account_id

location at which to store the account's unique identifier

Returns:

true if object_path was successfully parsed; false and sets error otherwise.