You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Pepijn Noltes (JIRA)" <ji...@apache.org> on 2016/07/10 10:07:11 UTC

[jira] [Created] (CELIX-365) Refactor some usage of void* to const void*

Pepijn Noltes created CELIX-365:
-----------------------------------

             Summary: Refactor some usage of void* to const void*
                 Key: CELIX-365
                 URL: https://issues.apache.org/jira/browse/CELIX-365
             Project: Celix
          Issue Type: Improvement
            Reporter: Pepijn Noltes
            Assignee: Pepijn Noltes


I many case where void* or void** is used. const void* or const void** can be used.

This additional info should help in making the API clear. E.g a return of const void* indicate that you should not modify the content of the pointer (note that this also includes not freeing the content). This on itself indicates that you are not owner of the content.

Probably do not change bundleContext_getService, service_factory->getService, service_factory->ungetService and serviceReference_getService so that the changes are backwards compatible. 
 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)