transport: remove implicit-function-declaration build warnings
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 16 Jan 2019 07:58:05 +0000 (16:58 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Thu, 17 Jan 2019 00:34:45 +0000 (09:34 +0900)
Remove implicit-function-declaration build warnings by adding
function declarations to transport header.

Change-Id: Id258ab568c3eba49b1e443734443f9b207b86268
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
libthor/thor_transport.h

index 7db1017f15a03bb6b8fd703de2bb7d79d7170b88..ee745c6f64696239f68cc9936860cb15f7e8fb56 100644 (file)
 #include "thor_internal.h"
 
 int t_thor_init(thor_device_handle *th);
+void t_thor_cleanup(thor_device_handle *th);
 int t_thor_open(thor_device_handle *th, struct thor_device_id *dev_id,
                int wait);
-void thor_close(thor_device_handle *th);
+void t_thor_close(thor_device_handle *th);
 int t_thor_send_raw_data(thor_device_handle *th,
                         struct thor_data_src *data,
                         off_t trans_unit_size,
                         thor_progress_cb report_progress,
                         void *user_data);
+int t_thor_send(thor_device_handle *th, unsigned char *buf,
+               off_t count, int timeout);
+int t_thor_recv(thor_device_handle *th, unsigned char *buf,
+               off_t count, int timeout);
 
 /* USB transport */
 struct usb_device_handle {