celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnol...@apache.org
Subject [49/50] celix git commit: CELIX-272: Added missing properties for importing services
Date Mon, 11 Apr 2016 10:55:16 GMT
CELIX-272: Added missing properties for importing services


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/f741eb4f
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/f741eb4f
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/f741eb4f

Branch: refs/heads/release/celix-2.0.0
Commit: f741eb4f816df066c6a8e81d9a22b25cc8339f24
Parents: e6ebebb
Author: Pepijn Noltes <pepijnnoltes@gmail.com>
Authored: Wed Mar 9 16:37:41 2016 +0100
Committer: Pepijn Noltes <pepijnnoltes@gmail.com>
Committed: Wed Mar 9 16:37:41 2016 +0100

----------------------------------------------------------------------
 .../rsa/private/src/import_registration_dfi.c                    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/f741eb4f/remote_services/remote_service_admin_dfi/rsa/private/src/import_registration_dfi.c
----------------------------------------------------------------------
diff --git a/remote_services/remote_service_admin_dfi/rsa/private/src/import_registration_dfi.c
b/remote_services/remote_service_admin_dfi/rsa/private/src/import_registration_dfi.c
index ee1dbbf..2507ea8 100644
--- a/remote_services/remote_service_admin_dfi/rsa/private/src/import_registration_dfi.c
+++ b/remote_services/remote_service_admin_dfi/rsa/private/src/import_registration_dfi.c
@@ -142,7 +142,9 @@ void importRegistration_destroy(import_registration_pt import) {
 celix_status_t importRegistration_start(import_registration_pt import) {
     celix_status_t  status = CELIX_SUCCESS;
     if (import->factoryReg == NULL && import->factory != NULL) {
-        status = bundleContext_registerServiceFactory(import->context, (char *)import->classObject,
import->factory, NULL /*TODO*/, &import->factoryReg);
+        properties_pt props = NULL;
+        properties_copy(import->endpoint->properties, &props);
+        status = bundleContext_registerServiceFactory(import->context, (char *)import->classObject,
import->factory, props, &import->factoryReg);
     } else {
         status = CELIX_ILLEGAL_STATE;
     }


Mime
View raw message