Function to create TpBaseClient from a .client file
@danni
Submitted by Danielle Madeley Assigned to Telepathy bugs list
Description
It's so easy for .client files and the TpBaseClient to get out of sync, causing havoc. It would be nice if you could simply create a TpBaseClient from a .client file.
Proposed API:
TpBaseClient * tp_base_client_new_from_client_file (const char *filename, TpSimpleObserverObserveChannelsImpl observe_channels, TpSimpleApproverAddDispatchOperationImpl add_dispatch_op, TpSimpleHandlerHandleChannelsImpl handle_channels, gpointer user_data, GDestroyNotify destroy);
If observe_channels, add_dispatch_op or handle_channels were defined, and the .client file did not define that type of client, there could be a WARNING.
All properties such as name, recover, delay_approvers, the filters and capabilities would all be learned from the .client file. The uniquify property would clearly always be FALSE (you don't want a unique name for a registered client).
Version: git master