aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits/todo/todo-conduit-config.h
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-10-18 03:33:52 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-10-18 03:33:52 +0800
commitf5a84bbd66488aee1502a7aa17c7844f2bef0b4d (patch)
treed6fc5d2a48c34c5979a279de2fae8a088e0fb984 /calendar/conduits/todo/todo-conduit-config.h
parent66492867d6c19d5378ff2b25147b662cf8e528a1 (diff)
downloadgsoc2013-evolution-f5a84bbd66488aee1502a7aa17c7844f2bef0b4d.tar
gsoc2013-evolution-f5a84bbd66488aee1502a7aa17c7844f2bef0b4d.tar.gz
gsoc2013-evolution-f5a84bbd66488aee1502a7aa17c7844f2bef0b4d.tar.bz2
gsoc2013-evolution-f5a84bbd66488aee1502a7aa17c7844f2bef0b4d.tar.lz
gsoc2013-evolution-f5a84bbd66488aee1502a7aa17c7844f2bef0b4d.tar.xz
gsoc2013-evolution-f5a84bbd66488aee1502a7aa17c7844f2bef0b4d.tar.zst
gsoc2013-evolution-f5a84bbd66488aee1502a7aa17c7844f2bef0b4d.zip
Add defines
2000-10-17 JP Rosevear <jpr@helixcode.com> * conduits/todo/todo-conduit-control-applet.c: Add defines * conduits/todo/todo-conduit-config.h: put #ifdefs around functions can't make this a public interface in the usual way as then the symbols would be exported * conduits/todo/todo-conduit.c: Kill warnings. clahey will be happy! Add some defines to include only the necessary config functions. (conduit_get_gpilot_conduit): Hook up archive signals * conduits/calendar/calendar-conduit.c: Same as above * conduits/calendar/calendar-conduit-control-applet.c: ditto * conduits/calendar/calendar-conduit-config.h: ditto svn path=/trunk/; revision=5967
Diffstat (limited to 'calendar/conduits/todo/todo-conduit-config.h')
-rw-r--r--calendar/conduits/todo/todo-conduit-config.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/calendar/conduits/todo/todo-conduit-config.h b/calendar/conduits/todo/todo-conduit-config.h
index 38f3cf8e39..7a23475839 100644
--- a/calendar/conduits/todo/todo-conduit-config.h
+++ b/calendar/conduits/todo/todo-conduit-config.h
@@ -37,6 +37,8 @@ struct _EToDoConduitCfg {
GnomePilotConduitSyncType sync_type; /* only used by capplet */
};
+#ifdef TODO_CONFIG_LOAD
+/* Load the configuration data */
static void
todoconduit_load_configuration (EToDoConduitCfg **c, guint32 pilot_id)
{
@@ -56,7 +58,9 @@ todoconduit_load_configuration (EToDoConduitCfg **c, guint32 pilot_id)
(*c)->pilot_id = pilot_id;
}
+#endif
+#ifdef TODO_CONFIG_SAVE
/* Saves the configuration data. */
static void
todoconduit_save_configuration (EToDoConduitCfg *c)
@@ -73,7 +77,9 @@ todoconduit_save_configuration (EToDoConduitCfg *c)
gnome_config_sync ();
gnome_config_drop_all ();
}
+#endif
+#ifdef TODO_CONFIG_DUPE
/* Creates a duplicate of the configuration data */
static EToDoConduitCfg*
todoconduit_dupe_configuration (EToDoConduitCfg *c)
@@ -89,7 +95,10 @@ todoconduit_dupe_configuration (EToDoConduitCfg *c)
return retval;
}
+#endif
+#ifdef TODO_CONFIG_DESTROY
+/* Destroy a configuration */
static void
todoconduit_destroy_configuration (EToDoConduitCfg **c)
{
@@ -99,6 +108,7 @@ todoconduit_destroy_configuration (EToDoConduitCfg **c)
g_free (*c);
*c = NULL;
}
+#endif
#endif __TODO_CONDUIT_CONFIG_H__