@@ -734,62 +734,6 @@ bool celix_framework_isBundleAlreadyInstalled(celix_framework_t* fw, const char*
734734 return alreadyExists ;
735735}
736736
737- //celix_status_t fw_getDependentBundles(framework_pt framework, bundle_pt exporter, celix_array_list_t** list) {
738- // celix_status_t status = CELIX_SUCCESS;
739- //
740- // if (*list != NULL || exporter == NULL || framework == NULL) {
741- // return CELIX_ILLEGAL_ARGUMENT;
742- // }
743- //
744- // celix_array_list_t* modules;
745- // unsigned int modIdx = 0;
746- // *list = celix_arrayList_create();
747- //
748- // modules = bundle_getModules(exporter);
749- // for (modIdx = 0; modIdx < celix_arrayList_size(modules); modIdx++) {
750- // celix_module_t* module = celix_arrayList_get(modules, modIdx);
751- // celix_array_list_t* dependents = module_getDependents(module);
752- // if (dependents != NULL) {
753- // unsigned int depIdx = 0;
754- // for (depIdx = 0; depIdx < celix_arrayList_size(dependents); depIdx++) {
755- // celix_module_t* dependent = celix_arrayList_get(dependents, depIdx);
756- // celix_arrayList_add(*list, module_getBundle(dependent));
757- // }
758- // celix_arrayList_destroy(dependents);
759- // }
760- // }
761- //
762- // framework_logIfError(framework->logger, status, NULL, "Cannot get dependent bundles");
763- //
764- // return status;
765- //}
766-
767- //celix_status_t fw_populateDependentGraph(framework_pt framework, bundle_pt exporter, hash_map_pt* map) {
768- // celix_status_t status = CELIX_SUCCESS;
769- //
770- // if (framework == NULL || exporter == NULL) {
771- // return CELIX_ILLEGAL_ARGUMENT;
772- // }
773- //
774- // celix_array_list_t* dependents = NULL;
775- // if ((status = fw_getDependentBundles(framework, exporter, &dependents)) == CELIX_SUCCESS) {
776- // if (dependents != NULL) {
777- // unsigned int depIdx = 0;
778- // for (depIdx = 0; depIdx < celix_arrayList_size(dependents); depIdx++) {
779- // if (!hashMap_containsKey(*map, celix_arrayList_get(dependents, depIdx))) {
780- // hashMap_put(*map, celix_arrayList_get(dependents, depIdx), celix_arrayList_get(dependents, depIdx));
781- // fw_populateDependentGraph(framework, (bundle_pt)celix_arrayList_get(dependents, depIdx), map);
782- // }
783- // }
784- // celix_arrayList_destroy(dependents);
785- // }
786- // }
787- //
788- // framework_logIfError(framework->logger, status, NULL, "Cannot populate dependent graph");
789- //
790- // return status;
791- //}
792-
793737celix_status_t fw_registerService (framework_pt framework , service_registration_pt * registration , long bndId , const char * serviceName , const void * svcObj , celix_properties_t * properties ) {
794738 celix_status_t status = CELIX_SUCCESS ;
795739 char * error = NULL ;
@@ -1936,7 +1880,8 @@ static long celix_framework_installAndStartBundleInternal(celix_framework_t *fw,
19361880 if (!forcedAsync ) {
19371881 celix_framework_waitForBundleEvents (fw , bundleId );
19381882 }
1939- framework_logIfError (fw -> logger , status , NULL , "Failed to install bundle '%s'" , bundleLoc );
1883+ const char * action = autoStart ? "install and start" : "install" ;
1884+ framework_logIfError (fw -> logger , status , NULL , "Failed to %s bundle '%s'" , action , bundleLoc );
19401885
19411886 return bundleId ;
19421887}
@@ -2231,7 +2176,7 @@ static void celix_framework_printCelixErrForBundleEntry(celix_framework_t* frame
22312176celix_status_t celix_framework_startBundleEntry (celix_framework_t * framework , celix_bundle_entry_t * bndEntry ) {
22322177 assert (!celix_framework_isCurrentThreadTheEventLoop (framework ));
22332178 celix_status_t status = CELIX_SUCCESS ;
2234- const char * error = "" ;
2179+ const char * error = NULL ;
22352180 const char * name = "" ;
22362181 celix_module_t * module = NULL ;
22372182 celix_bundle_context_t * context = NULL ;
0 commit comments