Skip to content

Commit

Permalink
Replace array_list with celix_array_list in rsa shm v2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Dec 30, 2023
1 parent 01b3af1 commit 61c641a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ celix_status_t rsaShm_exportService(rsa_shm_t *admin, char *serviceId,
}

// Create export registrations for its interfaces.
size_t interfaceNum = arrayList_size(interfaces);
size_t interfaceNum = celix_arrayList_size(interfaces);
for (int iter = 0; iter < interfaceNum; iter++) {
char *interface = arrayList_get(interfaces, iter);
char *interface = celix_arrayList_get(interfaces, iter);
celix_autoptr(endpoint_description_t) endpointDescription = NULL;
export_registration_t *registration = NULL;
int ret = CELIX_SUCCESS;
Expand Down Expand Up @@ -538,13 +538,13 @@ static celix_status_t rsaShm_createEndpointDescription(rsa_shm_t *admin,
}

//LCOV_EXCL_START
celix_status_t rsaShm_getExportedServices(rsa_shm_t *admin CELIX_UNUSED, array_list_pt *services CELIX_UNUSED) {
celix_status_t rsaShm_getExportedServices(rsa_shm_t *admin CELIX_UNUSED, celix_array_list_t** services CELIX_UNUSED) {
celix_status_t status = CELIX_SUCCESS;
//It is stub and will not be called at present.
return status;
}

celix_status_t rsaShm_getImportedEndpoints(rsa_shm_t *admin CELIX_UNUSED, array_list_pt *services CELIX_UNUSED) {
celix_status_t rsaShm_getImportedEndpoints(rsa_shm_t *admin CELIX_UNUSED, celix_array_list_t** services CELIX_UNUSED) {
celix_status_t status = CELIX_SUCCESS;
//It is stub and will not be called at present.
return status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#ifdef __cplusplus
extern "C" {
#endif

#include "rsa_shm_export_registration.h"
#include "rsa_shm_import_registration.h"
#include "endpoint_description.h"
Expand All @@ -49,9 +50,9 @@ celix_status_t rsaShm_exportService(rsa_shm_t *admin, char *serviceId,

celix_status_t rsaShm_removeExportedService(rsa_shm_t *admin, export_registration_t *registration);

celix_status_t rsaShm_getExportedServices(rsa_shm_t *admin, array_list_pt *services);
celix_status_t rsaShm_getExportedServices(rsa_shm_t *admin, celix_array_list_t** services);

celix_status_t rsaShm_getImportedEndpoints(rsa_shm_t *admin, array_list_pt *services);
celix_status_t rsaShm_getImportedEndpoints(rsa_shm_t *admin, celix_array_list_t** services);

celix_status_t rsaShm_importService(rsa_shm_t *admin, endpoint_description_t *endpointDescription,
import_registration_t **registration);
Expand Down

0 comments on commit 61c641a

Please sign in to comment.