aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-corba-storage-registry.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-12-05 09:08:18 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-12-05 09:08:18 +0800
commit9c28295de36c8c18c01c5c7846566526cee7f1ac (patch)
tree80bdfe6eefc6b8d3c720191029fc7c899d8ec891 /shell/e-corba-storage-registry.c
parent80445852285529e0d323c8bb076512b69eaf96a3 (diff)
downloadgsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.gz
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.bz2
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.lz
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.xz
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.tar.zst
gsoc2013-evolution-9c28295de36c8c18c01c5c7846566526cee7f1ac.zip
Start implementing a physical URI property for the toplevel nodes in
storages. Also add initial code in the shell to handle that. svn path=/trunk/; revision=6787
Diffstat (limited to 'shell/e-corba-storage-registry.c')
-rw-r--r--shell/e-corba-storage-registry.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/shell/e-corba-storage-registry.c b/shell/e-corba-storage-registry.c
index b0c4a34d74..982bd76e49 100644
--- a/shell/e-corba-storage-registry.c
+++ b/shell/e-corba-storage-registry.c
@@ -68,10 +68,11 @@ create_servant (void)
}
static GNOME_Evolution_StorageListener
-impl_StorageRegistry_register_storage (PortableServer_Servant servant,
- const GNOME_Evolution_Storage storage_interface,
- const CORBA_char *name,
- CORBA_Environment *ev)
+impl_StorageRegistry_addStorage (PortableServer_Servant servant,
+ const GNOME_Evolution_Storage storage_interface,
+ const CORBA_char *name,
+ const CORBA_char *toplevel_node_uri,
+ CORBA_Environment *ev)
{
BonoboObject *bonobo_object;
ECorbaStorageRegistry *storage_registry;
@@ -85,7 +86,7 @@ impl_StorageRegistry_register_storage (PortableServer_Servant servant,
storage_registry = E_CORBA_STORAGE_REGISTRY (bonobo_object);
priv = storage_registry->priv;
- storage = e_corba_storage_new (storage_interface, name);
+ storage = e_corba_storage_new (toplevel_node_uri, storage_interface, name);
if (! e_storage_set_add_storage (priv->storage_set, storage)) {
CORBA_exception_set (ev,
@@ -104,9 +105,9 @@ impl_StorageRegistry_register_storage (PortableServer_Servant servant,
}
static void
-impl_StorageRegistry_unregister_storage (PortableServer_Servant servant,
- const CORBA_char *name,
- CORBA_Environment *ev)
+impl_StorageRegistry_removeStorageByName (PortableServer_Servant servant,
+ const CORBA_char *name,
+ CORBA_Environment *ev)
{
BonoboObject *bonobo_object;
ECorbaStorageRegistry *storage_registry;
@@ -165,8 +166,8 @@ corba_class_init (void)
base_epv->default_POA = NULL;
epv = g_new0 (POA_GNOME_Evolution_StorageRegistry__epv, 1);
- epv->addStorage = impl_StorageRegistry_register_storage;
- epv->removeStorageByName = impl_StorageRegistry_unregister_storage;
+ epv->addStorage = impl_StorageRegistry_addStorage;
+ epv->removeStorageByName = impl_StorageRegistry_removeStorageByName;
vepv = &storage_registry_vepv;
vepv->_base_epv = base_epv;