Fixing missing Device Info in conv_service_read() 43/99843/2
authorRamasamy <ram.kannan@samsung.com>
Thu, 24 Nov 2016 08:27:32 +0000 (13:57 +0530)
committerRamasamy <ram.kannan@samsung.com>
Mon, 28 Nov 2016 08:07:34 +0000 (13:37 +0530)
- Added loading device info json in conv_service_read()

signed-off-by: Ram <ram.kannan@samsung.com>
Change-Id: I24a97066f1407908ee0575dfb85e896638e0ef5f

lib/conv_lib_service.cpp

index 80f7282..9b59aff 100755 (executable)
@@ -338,12 +338,14 @@ EXTAPI int conv_service_read(conv_service_h handle, conv_channel_h channel_handl
                payload = payload_handle->jpayload;
 
        json service = handle->jservice;
+       json device = handle->jdevice;
        std::string type = convert_type_to_string(handle->service_type);
        if (type.empty())
                return CONV_ERROR_INVALID_PARAMETER;
 
        description.set(NULL, CONV_JSON_SERVICE, service);
        description.set(NULL, CONV_JSON_CHANNEL, channel);
+       description.set(NULL, CONV_JSON_DEVICE, device);
        description.set(NULL, CONV_JSON_PAYLOAD, payload);
        description.set(NULL, CONV_JSON_TYPE, type);
        description.set(NULL, CONV_JSON_IS_LOCAL, handle->is_local);