This PR augments `struct log` with an "append callback."  If a log's callback 
is set, it gets called each time the log is appended to.

The callback has the following type:
```
/** @typedef log_append_cb
 * @brief Callback that is executed each time the corresponding log is appended
 * to.
 *
 * @param log                   The log that was just appended to.
 * @param idx                   The index of newly appended log entry.
 */
typedef void log_append_cb(struct log *log, uint32_t idx);
```

[ Full content available at: https://github.com/apache/mynewt-core/pull/1407 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to