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 09:47:00 UTC

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

Pepijn Noltes created CELIX-435:
-----------------------------------

             Summary: 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


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)