summaryrefslogtreecommitdiffstats
path: root/glib/dbus-binding-tool-glib.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2005-06-14 15:55:10 +0000
committerColin Walters <walters@verbum.org>2005-06-14 15:55:10 +0000
commit50f85baa3d92657a6c77c450a8f6dc34206e0610 (patch)
tree7506e84d0f82cad75f4bbc55a0dc3531260c796c /glib/dbus-binding-tool-glib.c
parentf5c4d6b55cdc73c2aaa6a19d96be573d6f521590 (diff)
2005-06-14 Colin Walters <walters@verbum.org>
* glib/dbus-binding-tool-glib.c: * glib/dbus-gobject.c: * glib/dbus-gvalue.c: Fix indentation and brace style.
Diffstat (limited to 'glib/dbus-binding-tool-glib.c')
-rw-r--r--glib/dbus-binding-tool-glib.c74
1 files changed, 40 insertions, 34 deletions
diff --git a/glib/dbus-binding-tool-glib.c b/glib/dbus-binding-tool-glib.c
index 76536aad..70c89e91 100644
--- a/glib/dbus-binding-tool-glib.c
+++ b/glib/dbus-binding-tool-glib.c
@@ -152,32 +152,35 @@ compute_marshaller (MethodInfo *method, GError **error)
}
}
- if (method_info_get_annotation (method, DBUS_GLIB_ANNOTATION_ASYNC) != NULL) {
- if (!first)
- g_string_append (ret, ",");
- g_string_append (ret, "POINTER");
- first = FALSE;
- } else {
- /* Append pointer for each out arg storage */
- for (elt = method_info_get_args (method); elt; elt = elt->next)
+ if (method_info_get_annotation (method, DBUS_GLIB_ANNOTATION_ASYNC) != NULL)
{
- ArgInfo *arg = elt->data;
-
- if (arg_info_get_direction (arg) == ARG_OUT)
+ if (!first)
+ g_string_append (ret, ",");
+ g_string_append (ret, "POINTER");
+ first = FALSE;
+ }
+ else
+ {
+ /* Append pointer for each out arg storage */
+ for (elt = method_info_get_args (method); elt; elt = elt->next)
{
- if (!first)
- g_string_append (ret, ",");
- else
- first = FALSE;
- g_string_append (ret, "POINTER");
+ ArgInfo *arg = elt->data;
+
+ if (arg_info_get_direction (arg) == ARG_OUT)
+ {
+ if (!first)
+ g_string_append (ret, ",");
+ else
+ first = FALSE;
+ g_string_append (ret, "POINTER");
+ }
}
- }
- /* Final GError parameter */
- if (!first)
- g_string_append (ret, ",");
- g_string_append (ret, "POINTER");
+ /* Final GError parameter */
+ if (!first)
+ g_string_append (ret, ",");
+ g_string_append (ret, "POINTER");
- }
+ }
return g_string_free (ret, FALSE);
@@ -226,22 +229,25 @@ compute_marshaller_name (MethodInfo *method, const char *prefix, GError **error)
}
}
- if (method_info_get_annotation (method, DBUS_GLIB_ANNOTATION_ASYNC) != NULL) {
- g_string_append (ret, "_POINTER");
- } else {
- /* Append pointer for each out arg storage */
- for (elt = method_info_get_args (method); elt; elt = elt->next)
+ if (method_info_get_annotation (method, DBUS_GLIB_ANNOTATION_ASYNC) != NULL)
{
- ArgInfo *arg = elt->data;
-
- if (arg_info_get_direction (arg) == ARG_OUT)
+ g_string_append (ret, "_POINTER");
+ }
+ else
+ {
+ /* Append pointer for each out arg storage */
+ for (elt = method_info_get_args (method); elt; elt = elt->next)
{
- g_string_append (ret, "_POINTER");
+ ArgInfo *arg = elt->data;
+
+ if (arg_info_get_direction (arg) == ARG_OUT)
+ {
+ g_string_append (ret, "_POINTER");
+ }
}
+ /* Final GError parameter */
+ g_string_append (ret, "_POINTER");
}
- /* Final GError parameter */
- g_string_append (ret, "_POINTER");
- }
return g_string_free (ret, FALSE);
}