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 2020/02/12 21:36:19 UTC
[GitHub] [mynewt-core] ccollins476ad commented on a change in pull request
#2181: [RFC] sys/config: Extended callbacks
ccollins476ad commented on a change in pull request #2181: [RFC] sys/config: Extended callbacks
URL: https://github.com/apache/mynewt-core/pull/2181#discussion_r378526340
##########
File path: sys/config/include/config/config.h
##########
@@ -157,14 +162,40 @@ struct conf_handler {
* The name of the conifguration item/subtree
*/
char *ch_name;
+
+ /**
+ * Whether to use the extended callbacks.
+ * 0=standard
+ * 1=extended
+ */
+ uint8_t ch_ext : 1;
Review comment:
I agree, it should be a bool. I think I was bothered by the size increase of this struct so I went overboard. But since there is only one field like this, we're not saving any space anyway. I'll change it to bool.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services