[riot-notifications] [RIOT-OS/RIOT] sys: Add RIOT Registry implementation (#10799)

José Alamos notifications at github.com
Wed Feb 20 15:13:32 CET 2019


jia200x commented on this pull request.



> +     * @param[in] argc Number of elements in @p argv
+     * @param[in] argv Parsed string representing the configuration parameter.
+     * @param[in] context Context of the handler
+     * @return 0 on success, non-zero on failure (if @p export_func fails,
+     *         i.e. returns non-zero, this error code should be returned by the
+     *         handler as it is considered a failure).
+     *
+     * @note The strings passed in @p argv do not contain the string of the name
+     * of the configuration group. E.g. If a parameter name is 'group/foo/var'
+     * and the name of the group is 'group', argv will contain 'foo' and 'var'.
+     */
+    int (*hndlr_export)(int (*export_func)(const char *name, char *val),
+                        int argc, char **argv, void *context);
+
+    void *context; /**< Optional context used by the handlers */
+} registry_handler_t;

I think this should be discussed in the corresponding RDM: #10622 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10799#discussion_r258498446
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190220/10308005/attachment.html>


More information about the notifications mailing list