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-435) Refactor event admin
Date Mon, 09 Apr 2018 09:47:00 GMT
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)

Mime
View raw message