| telepathy-logger Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
TplChannelPriv;
void call_when_ready (TplChannel *self,
GAsyncReadyCallback cb,
gpointer user_data);
void call_when_ready_protected (TplChannel *self,
GAsyncReadyCallback cb,
gpointer user_data);
TpAccount * tpl_channel_get_account (TplChannel *self);
void tpl_channel_call_when_ready (TplChannel *self,
GAsyncReadyCallback cb,
gpointer user_data);
void call_when_ready (TplChannel *self,
GAsyncReadyCallback cb,
gpointer user_data);
|
|
|
|
|
void call_when_ready_protected (TplChannel *self,
GAsyncReadyCallback cb,
gpointer user_data);
This static method is called from TplChannelClass.call_when_ready, implemented by TplChannel subclasses.
See also: tpl_channel_call_when_ready()
|
a TplChannel instance |
|
a callback |
|
user's data passed to the callback |
void tpl_channel_call_when_ready (TplChannel *self,
GAsyncReadyCallback cb,
gpointer user_data);
The TplObserver has no idea of what TplChannel subclass intance it's dealing with. In order to prepare the subclass instance this method has to be called, which will call TplChannelClass.call_when_ready virtual method, implemented (mandatory) by TplChannel subclasses. Such method has to call, internally, TplChannelClass.call_when_ready_protected in order to prepare also the TplChannel instance.
|
a TplChannel instance |
|
a callback |
|
user's data passed to the callback |