[riot-notifications] [RIOT-OS/RIOT] sys: Add Link Format module (#11189)

Leandro Lanzieri notifications at github.com
Fri Jun 14 11:50:49 CEST 2019


leandrolanzieri commented on this pull request.



> +#define ENABLE_DEBUG (0)
+#include "debug.h"
+
+/* returns the correspondant parameter string */
+static const char *_param_to_str[] = {
+    LF_PARAM_ANCHOR, LF_PARAM_REL_TYPE, LF_PARAM_LANG, LF_PARAM_MEDIA,
+    LF_PARAM_TITLE, LF_PARAM_TITLE_EXT, LF_PARAM_TYPE, LF_PARAM_RES_TYPE,
+    LF_PARAM_IF_DESC, LF_PARAM_SIZE, LF_PARAM_CT, LF_PARAM_OBS, NULL
+};
+
+/* returns the correspondant parameter string size */
+static const unsigned _param_to_size[] = {
+    LF_PARAM_ANCHOR_S, LF_PARAM_REL_TYPE_S, LF_PARAM_LANG_S, LF_PARAM_MEDIA_S,
+    LF_PARAM_TITLE_S, LF_PARAM_TITLE_EXT_S, LF_PARAM_TYPE_S,
+    LF_PARAM_RES_TYPE_S, LF_PARAM_IF_DESC_S, LF_PARAM_SIZE_S, LF_PARAM_CT_S,
+    LF_PARAM_OBS_S, 0

Removed the last element and redefined the sizes.

-- 
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/11189#discussion_r293738953
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190614/64fd1e5c/attachment-0001.html>


More information about the notifications mailing list