From 777c1cbd40eb63365f2c28e38f6a93beb2d1c9d1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 16 Aug 2011 11:25:56 -0400 Subject: Coding style and whitespace cleanup. --- modules/plugin-mono/e-plugin-mono.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'modules/plugin-mono/e-plugin-mono.c') diff --git a/modules/plugin-mono/e-plugin-mono.c b/modules/plugin-mono/e-plugin-mono.c index bd5424921d..1c4113504d 100644 --- a/modules/plugin-mono/e-plugin-mono.c +++ b/modules/plugin-mono/e-plugin-mono.c @@ -50,7 +50,8 @@ static gpointer parent_class; static GType plugin_mono_type; static gchar * -get_xml_prop (xmlNodePtr node, const gchar *id) +get_xml_prop (xmlNodePtr node, + const gchar *id) { xmlChar *prop; gchar *out = NULL; @@ -82,7 +83,8 @@ plugin_mono_finalize (GObject *object) } static gint -plugin_mono_construct (EPlugin *plugin, xmlNodePtr root) +plugin_mono_construct (EPlugin *plugin, + xmlNodePtr root) { EPluginMono *plugin_mono; @@ -99,11 +101,11 @@ plugin_mono_construct (EPlugin *plugin, xmlNodePtr root) /* Two approaches: - You can have a Evolution.Plugin implementation which has every - callback as methods on it. Or you can just use static methods - for everything. - - All methods take a single (structured) argument. + * You can have a Evolution.Plugin implementation which has every + * callback as methods on it. Or you can just use static methods + * for everything. + * + * All methods take a single (structured) argument. */ static gpointer @@ -155,7 +157,7 @@ plugin_mono_invoke (EPlugin *plugin, if (m == NULL) { if (priv->class) { /* class method */ - MonoMethod* mono_method; + MonoMethod * mono_method; gpointer iter = NULL; d = mono_method_desc_new (name, FALSE); @@ -194,7 +196,7 @@ plugin_mono_invoke (EPlugin *plugin, g_hash_table_insert (priv->methods, g_strdup (name), m); } - params = g_malloc0 (sizeof (*params)*1); + params = g_malloc0 (sizeof (*params) * 1); params[0] = &data; res = mono_runtime_invoke (m, priv->plugin, params, &x); /* do i need to free params?? */ -- cgit v1.2.3