| telepathy-logger Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define TPL_CHANNEL_FACTORY_ERROR enum TplChannelFactoryError; TplChannel * (*TplChannelConstructor) (TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props, TpAccount *tp_acc, GError **error); TplChannel * (*TplChannelFactory) (const gchar *chan_type, TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props, TpAccount *tp_acc, GError **error); void tpl_channel_factory_init (void); void tpl_channel_factory_deinit (void); void tpl_channel_factory_add (const gchar *type, TplChannelConstructor constructor); TplChannelConstructor tpl_channel_factory_lookup (const gchar *type); TplChannel * tpl_channel_factory_build (const gchar *channel_type, TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props, TpAccount *tp_acc, GError **error);
typedef enum
{
/* generic error */
TPL_CHANNEL_FACTORY_ERROR_FAILED,
TPL_CHANNEL_FACTORY_ERROR_CHANNEL_TYPE_NOT_HANDLED
} TplChannelFactoryError;
TplChannel * (*TplChannelConstructor) (TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props, TpAccount *tp_acc, GError **error);
|
|
|
|
|
|
|
|
|
|
Returns : |
TplChannel * (*TplChannelFactory) (const gchar *chan_type, TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props, TpAccount *tp_acc, GError **error);
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
void tpl_channel_factory_add (const gchar *type, TplChannelConstructor constructor);
|
|
|
TplChannelConstructor tpl_channel_factory_lookup (const gchar *type);
|
|
Returns : |
TplChannel * tpl_channel_factory_build (const gchar *channel_type, TpConnection *conn, const gchar *object_path, GHashTable *tp_chan_props, TpAccount *tp_acc, GError **error);
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |