Mercurial > geeqie
annotate src/gq-marshal.c @ 1657:00673c03d856
various geeqie-ufraw improvements
- handle xmp sidecars
- commandline options, help
author | nadvornik |
---|---|
date | Sat, 20 Jun 2009 23:15:11 +0000 |
parents | c9949c19a6d0 |
children |
rev | line source |
---|---|
1012
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
1 #include "gq-marshal.h" |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
2 |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
3 #include <glib-object.h> |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
4 |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
5 |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
6 #ifdef G_ENABLE_DEBUG |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
7 #define g_marshal_value_peek_boolean(v) g_value_get_boolean(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
8 #define g_marshal_value_peek_char(v) g_value_get_char(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
9 #define g_marshal_value_peek_uchar(v) g_value_get_uchar(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
10 #define g_marshal_value_peek_int(v) g_value_get_int(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
11 #define g_marshal_value_peek_uint(v) g_value_get_uint(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
12 #define g_marshal_value_peek_long(v) g_value_get_long(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
13 #define g_marshal_value_peek_ulong(v) g_value_get_ulong(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
14 #define g_marshal_value_peek_int64(v) g_value_get_int64(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
15 #define g_marshal_value_peek_uint64(v) g_value_get_uint64(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
16 #define g_marshal_value_peek_enum(v) g_value_get_enum(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
17 #define g_marshal_value_peek_flags(v) g_value_get_flags(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
18 #define g_marshal_value_peek_float(v) g_value_get_float(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
19 #define g_marshal_value_peek_double(v) g_value_get_double(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
20 #define g_marshal_value_peek_string(v) (char*) g_value_get_string(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
21 #define g_marshal_value_peek_param(v) g_value_get_param(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
22 #define g_marshal_value_peek_boxed(v) g_value_get_boxed(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
23 #define g_marshal_value_peek_pointer(v) g_value_get_pointer(v) |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
24 #define g_marshal_value_peek_object(v) g_value_get_object(v) |
1012
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
25 #else /* !G_ENABLE_DEBUG */ |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
26 /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
27 * Do not access GValues directly in your code. Instead, use the |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
28 * g_value_get_*() functions |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
29 */ |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
30 #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
31 #define g_marshal_value_peek_char(v) (v)->data[0].v_int |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
32 #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
33 #define g_marshal_value_peek_int(v) (v)->data[0].v_int |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
34 #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
35 #define g_marshal_value_peek_long(v) (v)->data[0].v_long |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
36 #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
37 #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
38 #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
39 #define g_marshal_value_peek_enum(v) (v)->data[0].v_long |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
40 #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
41 #define g_marshal_value_peek_float(v) (v)->data[0].v_float |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
42 #define g_marshal_value_peek_double(v) (v)->data[0].v_double |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
43 #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
44 #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
45 #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
46 #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
47 #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
48 #endif /* !G_ENABLE_DEBUG */ |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
49 |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
50 |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
51 /* VOID:VOID (gq-marshal.list:1) */ |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
52 |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
53 /* VOID:INT,INT,INT,INT (gq-marshal.list:2) */ |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
54 void |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
55 gq_marshal_VOID__INT_INT_INT_INT(GClosure *closure, |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
56 GValue *return_value G_GNUC_UNUSED, |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
57 guint n_param_values, |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
58 const GValue *param_values, |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
59 gpointer invocation_hint G_GNUC_UNUSED, |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
60 gpointer marshal_data) |
1012
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
61 { |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
62 typedef void (*GMarshalFunc_VOID__INT_INT_INT_INT) (gpointer data1, |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
63 gint arg_1, |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
64 gint arg_2, |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
65 gint arg_3, |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
66 gint arg_4, |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
67 gpointer data2); |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
68 register GMarshalFunc_VOID__INT_INT_INT_INT callback; |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
69 register GCClosure *cc = (GCClosure*) closure; |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
70 register gpointer data1, data2; |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
71 |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
72 g_return_if_fail(n_param_values == 5); |
1012
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
73 |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
74 if (G_CCLOSURE_SWAP_DATA(closure)) |
1012
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
75 { |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
76 data1 = closure->data; |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
77 data2 = g_value_peek_pointer(param_values + 0); |
1012
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
78 } |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
79 else |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
80 { |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
81 data1 = g_value_peek_pointer(param_values + 0); |
1012
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
82 data2 = closure->data; |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
83 } |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
84 callback = (GMarshalFunc_VOID__INT_INT_INT_INT) (marshal_data ? marshal_data : cc->callback); |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
85 |
1346
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
86 callback(data1, |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
87 g_marshal_value_peek_int(param_values + 1), |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
88 g_marshal_value_peek_int(param_values + 2), |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
89 g_marshal_value_peek_int(param_values + 3), |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
90 g_marshal_value_peek_int(param_values + 4), |
c9949c19a6d0
No space between function name and first parenthesis, it eases greping (see CODING).
zas_
parents:
1055
diff
changeset
|
91 data2); |
1012
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
92 } |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
93 |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
94 /* VOID:DOUBLE (gq-marshal.list:3) */ |
fe82830ab8fd
converted image loader to a GObject and use signals for notification
nadvornik
parents:
diff
changeset
|
95 |
1055
1646720364cf
Adding a vim modeline to all files - patch by Klaus Ethgen
nadvornik
parents:
1012
diff
changeset
|
96 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */ |