diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-08-16 23:25:56 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:09:00 +0800 |
commit | 777c1cbd40eb63365f2c28e38f6a93beb2d1c9d1 (patch) | |
tree | dfab9ca8f30c7b1539f86dfe19b8bf761d6a899c /modules/plugin-mono | |
parent | 83675abbc2b3a3bc6421094a56651d021fc0cdcd (diff) | |
download | gsoc2013-evolution-777c1cbd40eb63365f2c28e38f6a93beb2d1c9d1.tar gsoc2013-evolution-777c1cbd40eb63365f2c28e38f6a93beb2d1c9d1.tar.gz gsoc2013-evolution-777c1cbd40eb63365f2c28e38f6a93beb2d1c9d1.tar.bz2 gsoc2013-evolution-777c1cbd40eb63365f2c28e38f6a93beb2d1c9d1.tar.lz gsoc2013-evolution-777c1cbd40eb63365f2c28e38f6a93beb2d1c9d1.tar.xz gsoc2013-evolution-777c1cbd40eb63365f2c28e38f6a93beb2d1c9d1.tar.zst gsoc2013-evolution-777c1cbd40eb63365f2c28e38f6a93beb2d1c9d1.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'modules/plugin-mono')
-rw-r--r-- | modules/plugin-mono/e-plugin-mono.c | 20 |
1 files changed, 11 insertions, 9 deletions
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?? */ |