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 2018/04/09 19:37:00 UTC

[jira] [Updated] (CELIX-435) Refactor event admin

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

Pepijn Noltes updated CELIX-435:
--------------------------------
    Fix Version/s: 2.3.0

> Refactor event admin
> --------------------
>
>                 Key: CELIX-435
>                 URL: https://issues.apache.org/jira/browse/CELIX-435
>             Project: Celix
>          Issue Type: Improvement
>          Components: event admin
>    Affects Versions: 2.3.0
>            Reporter: Pepijn Noltes
>            Priority: Major
>             Fix For: 2.3.0
>
>
> The event admin currenlty does not work anymore. Refactor the event admin so that it works again and that:
>  * It created and export a event_admin_api interface library target containing the api
>  * Update api so that for event admin no event struct is needed -> i.e. signature celix_status_t (*postEvent)(event_admin_t *event_admin, const char* *topic, propeties_t *props);
>  * event admin api only contains a sendEvent and postEvent method.
>  * For sendEvent  and postEvent the caller is responsbile for freeing the properties
>  * For postEvent the event admin will create a copy of the properties
>  * The eventHandle api contains one method with the signature: celix_status_t (*handleEvent)(void *handle, const char *topic, const properties_t *props);
>  * For event handler the topic and properties arguments are only ensure to be valid during the executing of the handleEvent method.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)