glib-dbus g_signal_emit

g_signal_emit ()

void                g_signal_emit                       (gpointer instance,
guint signal_id,
GQuark detail,
...);

Emits a signal.

Note that g_signal_emit() resets the return value to the default if no handlers are connected, in contrast to g_signal_emitv().

instance :

the instance the signal is being emitted on.

signal_id :

the signal id

detail :

the detail

... :

parameters to be passed to the signal, followed by a location for the return value. If the return type of the signal is G_TYPE_NONE, the return value location can be omitted.

 

 

http://developer.gnome.org/gobject/stable/gobject-Closures.html

http://developer.gnome.org/gobject/stable/gobject-Signals.html#g-signal-emit

 

#include <glib-object.h>
void                g_cclosure_marshal_VOID__STRING     (GClosure *closure,
GValue *return_value,
guint n_param_values,
const GValue *param_values,
gpointer invocation_hint,
gpointer marshal_data);

g_cclosure_marshal_VOID__STRING ()

void                g_cclosure_marshal_VOID__STRING     (GClosure *closure,
GValue *return_value,
guint n_param_values,
const GValue *param_values,
gpointer invocation_hint,
gpointer marshal_data);

A marshaller for a GCClosure with a callback of type void (*callback) (gpointer instance, const gchar *arg1, gpointer user_data).

closure :

the GClosure to which the marshaller belongs

return_value :

ignored

n_param_values :

2

param_values :

a GValue array holding the instance and the gchar* parameter

invocation_hint :

the invocation hint given as the last argument to g_closure_invoke()

marshal_data :

additional data specified when registering the marshaller
posted @ 2011-12-11 19:14  alxe_yu  阅读(979)  评论(0)    收藏  举报