Return-Path: X-Original-To: apmail-incubator-celix-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-celix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 445C364FD for ; Wed, 27 Jul 2011 08:47:23 +0000 (UTC) Received: (qmail 2051 invoked by uid 500); 27 Jul 2011 08:41:00 -0000 Delivered-To: apmail-incubator-celix-commits-archive@incubator.apache.org Received: (qmail 1933 invoked by uid 500); 27 Jul 2011 08:40:57 -0000 Mailing-List: contact celix-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: celix-dev@incubator.apache.org Delivered-To: mailing list celix-commits@incubator.apache.org Received: (qmail 1904 invoked by uid 99); 27 Jul 2011 08:40:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 08:40:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jul 2011 08:40:50 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 195922388901; Wed, 27 Jul 2011 08:40:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1151379 - /incubator/celix/trunk/framework/private/src/framework.c Date: Wed, 27 Jul 2011 08:40:28 -0000 To: celix-commits@incubator.apache.org From: abroekhuis@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110727084029.195922388901@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: abroekhuis Date: Wed Jul 27 08:40:28 2011 New Revision: 1151379 URL: http://svn.apache.org/viewvc?rev=1151379&view=rev Log: Fixed merge problems Modified: incubator/celix/trunk/framework/private/src/framework.c Modified: incubator/celix/trunk/framework/private/src/framework.c URL: http://svn.apache.org/viewvc/incubator/celix/trunk/framework/private/src/framework.c?rev=1151379&r1=1151378&r2=1151379&view=diff ============================================================================== --- incubator/celix/trunk/framework/private/src/framework.c (original) +++ incubator/celix/trunk/framework/private/src/framework.c Wed Jul 27 08:40:28 2011 @@ -714,68 +714,6 @@ celix_status_t fw_stopBundle(FRAMEWORK f framework_setBundleStateAndNotify(framework, bundle, BUNDLE_RESOLVED); -======= - switch (bundle_getState(bundle)) { -======= ->>>>>>> Fixed broken build - case BUNDLE_UNINSTALLED: - printf("Cannot stop bundle since it is uninstalled."); - framework_releaseBundleLock(framework, bundle); - return status; - case BUNDLE_STARTING: - printf("Cannot stop bundle since it is starting."); - framework_releaseBundleLock(framework, bundle); - return status; - case BUNDLE_STOPPING: - printf("Cannot stop bundle since it is stopping."); - framework_releaseBundleLock(framework, bundle); - return status; - case BUNDLE_INSTALLED: - case BUNDLE_RESOLVED: - framework_releaseBundleLock(framework, bundle); - return status; - case BUNDLE_ACTIVE: - // only valid state - break; - } - - framework_setBundleStateAndNotify(framework, bundle, BUNDLE_STOPPING); - - ACTIVATOR activator = bundle_getActivator(bundle); - BUNDLE_CONTEXT context; - bundle_getContext(bundle, &context); - if (activator->stop != NULL) { - activator->stop(activator->userData, context); - } - - if (activator->destroy != NULL) { - activator->destroy(activator->userData, context); - } - - if (strcmp(module_getId(bundle_getCurrentModule(bundle)), "0") != 0) { - activator->start = NULL; - activator->stop = NULL; - activator->userData = NULL; - //free(activator); - bundle_setActivator(bundle, NULL); - - serviceRegistry_unregisterServices(framework->registry, bundle); - serviceRegistry_ungetServices(framework->registry, bundle); - - dlclose(bundle_getHandle(bundle)); - } - - bundleContext_destroy(context); - bundle_setContext(bundle, NULL); - - MANIFEST manifest = NULL; - bundle_getManifest(bundle, &manifest); - - manifest_destroy(manifest); - - framework_setBundleStateAndNotify(framework, bundle, BUNDLE_RESOLVED); - ->>>>>>> Updated error handling, fixed a bug in the dependency manager framework_releaseBundleLock(framework, bundle); }