From 6c0fc7c72af0cdcd28e706450fb256a561a585b7 Mon Sep 17 00:00:00 2001 From: Adenilson Cavalcanti Date: Sun, 24 Aug 2008 13:35:39 -0400 Subject: [PATCH] Changing plugin name (its going to handle both calendar and contacts). --- src/gcalendar.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gcalendar.c b/src/gcalendar.c index 2f8bcd0..a8c1994 100644 --- a/src/gcalendar.c +++ b/src/gcalendar.c @@ -444,7 +444,9 @@ static void *gc_initialize(OSyncPlugin *plugin, if (!plgdata->sink) goto error_freeplg; - /* Add object format somehow */ + /* TODO: is this correct? And how to handle contacts too? Probably I will need + * 2 sinks... + */ //osync_objtype_sink_add_objformat(plgdata->sink, "xmlformat-event"); OSyncObjTypeSinkFunctions functions; @@ -478,7 +480,7 @@ static osync_bool gc_discover(void *data, OSyncPluginInfo *info, OSyncError **er osync_objtype_sink_set_available(plgdata->sink, TRUE); OSyncVersion *version = osync_version_new(error); - osync_version_set_plugin(version, "google-calendar"); + osync_version_set_plugin(version, "google-data"); osync_plugin_info_set_version(info, version); osync_version_unref(version); @@ -493,9 +495,9 @@ osync_bool get_sync_info(OSyncPluginEnv *env, OSyncError **error) if (!plugin) goto error; - osync_plugin_set_name(plugin, "google-calendar"); - osync_plugin_set_longname(plugin, "Google Calendar"); - osync_plugin_set_description(plugin, "Google Calendar plugin"); + osync_plugin_set_name(plugin, "google-data"); + osync_plugin_set_longname(plugin, "Google calendar/plugin"); + osync_plugin_set_description(plugin, "Google calendar and contacts plugin"); osync_plugin_set_initialize(plugin, gc_initialize); osync_plugin_set_finalize(plugin, gc_finalize); -- 2.11.4.GIT