diff options
author | Michael Biebl <biebl@debian.org> | 2009-11-04 19:37:23 +0100 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2009-11-04 19:37:23 +0100 |
commit | 6f64702386210741d62f3394e27b1b6695dde698 (patch) | |
tree | 676906a73270831fbc42be9ea0f267756cb0031d /src/ck-marshal.c | |
parent | 6e7c6dfda732880e6feaef53f8ff0aaf23b4d4d4 (diff) | |
download | consolekit-6f64702386210741d62f3394e27b1b6695dde698.tar.gz |
Imported Upstream version 0.4.1upstream/0.4.1
Diffstat (limited to 'src/ck-marshal.c')
-rw-r--r-- | src/ck-marshal.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/ck-marshal.c b/src/ck-marshal.c index 8b08794..06dc9b3 100644 --- a/src/ck-marshal.c +++ b/src/ck-marshal.c @@ -124,3 +124,40 @@ ck_marshal_BOOLEAN__POINTER (GClosure *closure, g_value_set_boolean (return_value, v_return); } +/* VOID:OBJECT,OBJECT (ck-marshal.list:3) */ +void +ck_marshal_VOID__OBJECT_OBJECT (GClosure *closure, + GValue *return_value G_GNUC_UNUSED, + guint n_param_values, + const GValue *param_values, + gpointer invocation_hint G_GNUC_UNUSED, + gpointer marshal_data) +{ + typedef void (*GMarshalFunc_VOID__OBJECT_OBJECT) (gpointer data1, + gpointer arg_1, + gpointer arg_2, + gpointer data2); + register GMarshalFunc_VOID__OBJECT_OBJECT callback; + register GCClosure *cc = (GCClosure*) closure; + register gpointer data1, data2; + + g_return_if_fail (n_param_values == 3); + + if (G_CCLOSURE_SWAP_DATA (closure)) + { + data1 = closure->data; + data2 = g_value_peek_pointer (param_values + 0); + } + else + { + data1 = g_value_peek_pointer (param_values + 0); + data2 = closure->data; + } + callback = (GMarshalFunc_VOID__OBJECT_OBJECT) (marshal_data ? marshal_data : cc->callback); + + callback (data1, + g_marshal_value_peek_object (param_values + 1), + g_marshal_value_peek_object (param_values + 2), + data2); +} + |