Add send file implmentation
[platform/core/api/multi-device-group.git] / include / mdg.h
index e491f82..3b437c0 100755 (executable)
@@ -801,9 +801,6 @@ int mdg_device_regist_channel(mdg_h handle, char *channel_id,
 int mdg_device_unregist_channel(mdg_h handle, char *channel_id);
 
 /* Client Side */
-//int mdg_device_get_channels(mdg_h handle, mdg_device_h device,
-//             mdg_device_get_channels_cb get_channels_cb, void *user_data);
-
 /**
  * @brief Sends data to the remote device.
  * @details We can send data to devices included in group.
@@ -835,6 +832,13 @@ int mdg_device_send_data(mdg_h handle, mdg_device_h device, char *channel_id,
                           unsigned char *data, int len,
                           mdg_device_send_data_finish_cb finish_cb, void *user_data);
 
+typedef void (*mdg_send_file_progress_cb)(const char *file_path, long send_size,
+               long total_size, int percent, void *user_data);
+typedef void (*mdg_send_file_finish_cb)(int result, mdg_device_h device, void *user_data);
+
+int mdg_device_send_file(mdg_h handle, mdg_device_h device, char *file_path,
+                          mdg_send_file_progress_cb progress_cb, mdg_send_file_finish_cb finish_cb, void *user_data);
+
 /**
  * @}
  */