[riot-notifications] [RIOT-OS/RIOT] net/gcoap: add/publish link format attributes for a resource (#11765)

Ken Bannister notifications at github.com
Sun Jul 7 13:03:02 CEST 2019


kb2ma commented on this pull request.



> +/** @} */
+
+/**
+ * @brief   Context information required to write a resource link
+ */
+typedef struct {
+    unsigned content_format;            /**< link format */
+    size_t link_pos;                    /**< position of link within listener */
+    uint16_t flags;                     /**< encoder switches; see GCOAP_LINK_FLAG_*
+                                             constants */
+} coap_link_encoder_ctx_t;
+
+/**
+ * @brief   Handler function to write a resource link
+ */
+typedef ssize_t (*gcoap_link_encoder_t)(const coap_resource_t *resource, char *buf,

Sure thing

-- 
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/11765#discussion_r300861223
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190707/ed87705d/attachment.html>


More information about the notifications mailing list