[riot-notifications] [RIOT-OS/RIOT] ut_process: initial import of a URI template processor (#16702)

benpicco notifications at github.com
Thu Sep 16 16:59:11 CEST 2021


@benpicco commented on this pull request.



> +#include <string.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @brief   Name-value-pair of a variable for URI template extension
+ */
+typedef struct {
+    const char *name;       /**< name of the variable */
+    const char *value;      /**< value for the variable */
+} ut_process_var_t;
+
+/**
+ * @brief   Extends a URI template by a given value set

> It means that a variable is "set" or alternatively, the variable is removed altogether, if it is not provided with the value set.

Why not also add this to the API doc?

-- 
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/16702#discussion_r710203297
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210916/d47126b7/attachment.htm>


More information about the notifications mailing list