You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/09/18 20:29:44 UTC

[GitHub] ccollins476ad opened a new pull request #1407: sys/log: Execute callback when log is appended to

ccollins476ad opened a new pull request #1407: sys/log: Execute callback when log is appended to
URL: https://github.com/apache/mynewt-core/pull/1407
 
 
   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);
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services