![]() |
![]() |
![]() |
libmissioncontrol-server Reference Manual | ![]() |
---|---|---|---|---|
#define MCD_PLUGIN_INIT_FUNC #define MCD_FILTER_IN #define MCD_FILTER_OUT McdDispatcherContext; void (*McdFilterFunc) (McdDispatcherContext *ctx, gpointer user_data); #define MCD_FILTER_PRIORITY_CRITICAL #define MCD_FILTER_PRIORITY_SYSTEM #define MCD_FILTER_PRIORITY_USER #define MCD_FILTER_PRIORITY_NOTICE #define MCD_FILTER_PRIORITY_LOW McdFilter; void mcd_dispatcher_register_filter (McdDispatcher *dispatcher, McdFilterFunc filter, GQuark channel_type_quark, guint filter_flags, guint priority, gpointer user_data); void mcd_dispatcher_unregister_filter (McdDispatcher *dispatcher, McdFilterFunc filter, GQuark channel_type_quark, guint filter_flags); void mcd_dispatcher_register_filters (McdDispatcher *dispatcher, McdFilter *filters, GQuark channel_type_quark, guint filter_flags); McdDispatcher* mcd_dispatcher_context_get_dispatcher (McdDispatcherContext *ctx); TpChannel* mcd_dispatcher_context_get_channel_object (McdDispatcherContext *ctx); TpConnection* mcd_dispatcher_context_get_connection_object (McdDispatcherContext *ctx); McdChannel* mcd_dispatcher_context_get_channel (McdDispatcherContext *ctx); McdConnection* mcd_dispatcher_context_get_connection (McdDispatcherContext *ctx); McdChannelHandler* mcd_dispatcher_context_get_chan_handler (McdDispatcherContext *ctx); GPtrArray* mcd_dispatcher_context_get_members (McdDispatcherContext *ctx); void mcd_dispatcher_context_process (McdDispatcherContext *ctx, gboolean result);
void (*McdFilterFunc) (McdDispatcherContext *ctx, gpointer user_data);
ctx : |
|
user_data : |
void mcd_dispatcher_register_filter (McdDispatcher *dispatcher, McdFilterFunc filter, GQuark channel_type_quark, guint filter_flags, guint priority, gpointer user_data);
Indicates to Mission Control that we want to register a filter for a unique combination of channel type/filter flags.
dispatcher : |
The McdDispatcher. |
filter : |
the filter function to be registered. |
channel_type_quark : |
Quark indicating the channel type. |
filter_flags : |
The flags for the filter, such as incoming/outgoing. |
priority : |
The priority of the filter. |
user_data : |
void mcd_dispatcher_unregister_filter (McdDispatcher *dispatcher, McdFilterFunc filter, GQuark channel_type_quark, guint filter_flags);
Indicates to Mission Control that we will not want to have a filter for particular unique channel type/filter flags combination anymore.
dispatcher : |
The McdDispatcher. |
filter : |
the filter function to be registered. |
channel_type_quark : |
Quark indicating the channel type. |
filter_flags : |
The flags for the filter, such as incoming/outgoing. |
void mcd_dispatcher_register_filters (McdDispatcher *dispatcher, McdFilter *filters, GQuark channel_type_quark, guint filter_flags);
Convenience function to register a batch of filters at once.
dispatcher : |
The McdDispatcher. |
filters : |
a zero-terminated array of McdFilter elements. |
channel_type_quark : |
Quark indicating the channel type. |
filter_flags : |
The flags for the filter, such as incoming/outgoing. |
McdDispatcher* mcd_dispatcher_context_get_dispatcher (McdDispatcherContext *ctx);
ctx : |
|
Returns : |
TpChannel* mcd_dispatcher_context_get_channel_object (McdDispatcherContext *ctx);
ctx : |
|
Returns : |
TpConnection* mcd_dispatcher_context_get_connection_object (McdDispatcherContext *ctx);
ctx : |
|
Returns : |
McdChannel* mcd_dispatcher_context_get_channel (McdDispatcherContext *ctx);
ctx : |
|
Returns : |
McdConnection* mcd_dispatcher_context_get_connection (McdDispatcherContext *ctx);
ctx : |
|
Returns : |
McdChannelHandler* mcd_dispatcher_context_get_chan_handler (McdDispatcherContext *ctx);
ctx : |
|
Returns : |
GPtrArray* mcd_dispatcher_context_get_members (McdDispatcherContext *ctx);
ctx : |
|
Returns : |
void mcd_dispatcher_context_process (McdDispatcherContext *ctx, gboolean result);
ctx : |
|
result : |