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; 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); const GList* mcd_dispatcher_context_get_channels (McdDispatcherContext *context); McdChannel* mcd_dispatcher_context_get_channel_by_type (McdDispatcherContext *context, GQuark type); McdConnection* mcd_dispatcher_context_get_connection (McdDispatcherContext *context); void mcd_dispatcher_context_process (McdDispatcherContext *ctx, gboolean result);
void (*McdFilterFunc) (McdDispatcherContext *ctx, gpointer user_data);
ctx : |
|
user_data : |
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 : |
const GList* mcd_dispatcher_context_get_channels (McdDispatcherContext *context);
context : |
the McdDispatcherContext. |
Returns : | a GList of McdChannel elements. |
McdChannel* mcd_dispatcher_context_get_channel_by_type (McdDispatcherContext *context, GQuark type);
context : |
the McdDispatcherContext. |
type : |
the GQuark representing the channel type. |
Returns : | the first McdChannel of the requested type, or NULL .
|
McdConnection* mcd_dispatcher_context_get_connection (McdDispatcherContext *context);
context : |
the McdDispatcherContext. |
Returns : | the McdConnection. |
void mcd_dispatcher_context_process (McdDispatcherContext *ctx, gboolean result);
Continue to process the context
.
mcd_dispatcher_context_process (c, TRUE) is exactly equivalent to mcd_dispatcher_context_proceed (c), which should be used instead in new code.
mcd_dispatcher_context_process (c, TRUE) is exactly equivalent to mcd_dispatcher_context_destroy_all (c) followed by mcd_dispatcher_context_proceed (c), which should be used instead in new code.
ctx : |
|
result : |
FALSE if the channels are to be destroyed
|