![]() |
![]() |
![]() |
libmissioncontrol-server Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals |
#include <mcd-dispatcher.h> McdDispatcher; McdDispatcher * mcd_dispatcher_new (TpDBusDaemon *dbus_daemon, McdMaster *master); gint mcd_dispatcher_get_channel_type_usage (McdDispatcher *dispatcher, GQuark chan_type_quark); void mcd_dispatcher_add_filter (McdDispatcher *dispatcher, McdFilterFunc filter, guint priority, gpointer user_data); void mcd_dispatcher_add_filters (McdDispatcher *dispatcher, const McdFilter *filters);
McdDispatcher implements TpSvcChannelDispatcher, TpSvcChannelDispatcherInterfaceOperationList and TpSvcDBusProperties.
"dbus-daemon" TpDBusDaemon* : Read / Write / Construct "dispatch-operations" GPtrArray_GValueArray_DBusGObjectPath+GHashTable_gchararray+GValue___* : Read "interfaces" GStrv* : Read "mcd-master" McdMaster* : Read / Write / Construct
"channel-added" : Run Last / Has Details "channel-removed" : Run Last / Has Details "dispatch-completed" : Run Last "dispatch-failed" : Run Last / Has Details "dispatched" : Run Last / Has Details
McdDispatcher * mcd_dispatcher_new (TpDBusDaemon *dbus_daemon, McdMaster *master);
|
|
|
|
Returns : |
gint mcd_dispatcher_get_channel_type_usage (McdDispatcher *dispatcher, GQuark chan_type_quark);
|
|
|
|
Returns : |
void mcd_dispatcher_add_filter (McdDispatcher *dispatcher, McdFilterFunc filter, guint priority, gpointer user_data);
Register a filter into the dispatcher chain: filter
will be invoked
whenever channels need to be dispatched.
|
The McdDispatcher. |
|
the filter function to be registered. |
|
The priority of the filter. |
|
user data to be passed to filter on invocation.
|
void mcd_dispatcher_add_filters (McdDispatcher *dispatcher, const McdFilter *filters);
Convenience function to add a batch of filters at once.
|
The McdDispatcher. |
|
a zero-terminated array of McdFilter elements. |
"dispatch-operations"
property"dispatch-operations" GPtrArray_GValueArray_DBusGObjectPath+GHashTable_gchararray+GValue___* : Read
A dbus-glib a(oa{sv}).
"channel-added"
signalvoid user_function (McdDispatcher *mcddispatcher, McdChannel *arg1, gpointer user_data) : Run Last / Has Details
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"channel-removed"
signalvoid user_function (McdDispatcher *mcddispatcher, McdChannel *arg1, gpointer user_data) : Run Last / Has Details
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |
"dispatch-completed"
signalvoid user_function (McdDispatcher *dispatcher, gpointer context, gpointer user_data) : Run Last
This signal is emitted when a dispatch operation has terminated. One can
inspect context
to get the status of the channels.
After this signal returns, context
is no longer valid.
|
the McdDispatcher. |
|
a McdDispatcherContext. |
|
user data set when the signal handler was connected. |
"dispatch-failed"
signalvoid user_function (McdDispatcher *mcddispatcher, McdChannel *arg1, gpointer arg2, gpointer user_data) : Run Last / Has Details
|
the object which received the signal. |
|
|
|
|
|
user data set when the signal handler was connected. |
"dispatched"
signalvoid user_function (McdDispatcher *mcddispatcher, McdChannel *arg1, gpointer user_data) : Run Last / Has Details
|
the object which received the signal. |
|
|
|
user data set when the signal handler was connected. |