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/10/10 10:02:20 UTC

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

     [ https://issues.apache.org/jira/browse/CELIX-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pepijn Noltes closed CELIX-365.
-------------------------------
    Resolution: Fixed

> 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)