diff options
author | Eunyoung Lee <ey928.lee@samsung.com> | 2019-04-26 14:24:55 +0900 |
---|---|---|
committer | 박정훈/Tizen Platform Lab(SR)/Staff Engineer/삼성전자 <jh1979.park@samsung.com> | 2019-04-26 16:28:17 +0900 |
commit | 32c0a0a293ff27de74ccf74957f0e42bb697d0e1 (patch) | |
tree | d08cc6201def2576db46c8434e2efb5155819695 | |
parent | 0319fa563ef36b7a26df6add35a6c3b2262d98bb (diff) | |
download | iot-device-manager-32c0a0a293ff27de74ccf74957f0e42bb697d0e1.tar.gz iot-device-manager-32c0a0a293ff27de74ccf74957f0e42bb697d0e1.tar.bz2 iot-device-manager-32c0a0a293ff27de74ccf74957f0e42bb697d0e1.zip |
[sample] change func type to predefined type
-rw-r--r-- | src/devicemanagerservice.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/devicemanagerservice.c b/src/devicemanagerservice.c index 2c46172..28ff368 100644 --- a/src/devicemanagerservice.c +++ b/src/devicemanagerservice.c @@ -13,9 +13,7 @@ typedef struct _app_data { idm_command_h command; } app_data; -typedef void (*result_cb) (idm_command_h command, idm_result_e result, idm_reason_e reason, const char *detail, void *data); - -static void __get_taskinfo(int duration, int period, unsigned long id, result_cb result_cb_func, void *data); +static void __get_taskinfo(int duration, int period, unsigned long id, idm_result_cb result_cb_func, void *data); static char *__make_request(int duration, int period) { @@ -107,7 +105,7 @@ static void __get_tinfo_result_cb(idm_command_h command, idm_result_e result, id } } -static void __get_taskinfo(int duration, int period, unsigned long id, result_cb result_cb_func, void *data) +static void __get_taskinfo(int duration, int period, unsigned long id, idm_result_cb result_cb_func, void *data) { app_data *ad = data; idm_command_h command = NULL; |