celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-365) Refactor some usage of void* to const void*
Date Sun, 10 Jul 2016 10:07:11 GMT
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

View raw message