• Ankur Bansal's avatar
    [EasySetup] Fix links in baseline & ll response · dad17f20
    Ankur Bansal authored
    Update oic.r.easysetup baseline and link list response to correctly fill
    links property.
    Use OCLinksPayloadArrayCreate API to create the links payload for batch
    & link list interface. OCLinksPayloadArrayCreate API internally takes
    care of creating the most part of payload based on the properties of the
    resource. This will replace the logic of creating each property of links
    payload for each of the easy setup resources from the code.
    In link list interface response, add handling for both OCF & OIC
    response (for backward compatibility).
    Change-Id: I46ca2e2d635cb78e8c7fc7c5ef95d9e16327abb9
    Signed-off-by: default avatarAnkur Bansal <ankur.b1@samsung.com>
    (cherry picked from commit 787a73bd)
resourcehandler.c 64.8 KB