vrahane commented on code in PR #3400:
URL: https://github.com/apache/mynewt-core/pull/3400#discussion_r2164911931
##########
sys/log/full/include/log/log.h:
##########
@@ -218,6 +272,21 @@ struct log {
#endif
#if MYNEWT_VAL(LOG_STATS)
STATS_SECT_DECL(logs) l_stats;
+#endif
+ /* Custom log init callback to be called by the last hdr
+ * read function to read custom data from log entries
+ * at init
+ */
+ log_walk_func_t l_init_cb;
+
+#if MYNEWT_VAL(LOG_FLAGS_TRAILER)
+ /* Log trailer support */
+ /* Void argument for callbacks registeration */
+ void *l_tr_arg;
Review Comment:
So, it is part of the `log` structure. So, all callbacks already have access
to it. I can add it if you want but its just two copies of the same pointer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]