summaryrefslogtreecommitdiff
path: root/src/arch/sharing/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/sharing/container.c')
-rw-r--r--src/arch/sharing/container.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/arch/sharing/container.c b/src/arch/sharing/container.c
index f027673..5ff62b7 100644
--- a/src/arch/sharing/container.c
+++ b/src/arch/sharing/container.c
@@ -66,22 +66,28 @@ static void g_share_container_default_init(GShareContainerInterface *iface)
* *
* Description : Assure la mise à jour du contenu d'un intégrateur. *
* *
-* Retour : - *
+* Retour : Bilan de l'opération. *
* *
* Remarques : - *
* *
******************************************************************************/
-void g_share_container_replace(GShareContainer *container, GSharedInstance *old, GSharedInstance *new)
+bool g_share_container_replace(GShareContainer *container, GSharedInstance *old, GSharedInstance *new)
{
+ bool result; /* Bilan à retourner */
GShareContainerIface *iface; /* Interface utilisée */
if (old != new)
{
iface = G_SHARE_CONTAINER_GET_IFACE(container);
- iface->replace(container, old, new);
+ result = iface->replace(container, old, new);
}
+ else
+ result = false;
+
+ return result;
+
}