Fix vc engine API (get_info) 98/160498/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Thu, 16 Nov 2017 10:29:01 +0000 (19:29 +0900)
committersooyeon.kim <sooyeon.kim@samsung.com>
Thu, 16 Nov 2017 10:29:01 +0000 (19:29 +0900)
Change-Id: I6c14b6134e639d0dc21ce33cbb48a886551fc500
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
include/vce.h
server/vcd_engine_agent.c

index 68f411a3451345f325c50b77ae1105c2e0f56aa6..eff406110134e93e7c9a90d722fd7baf8a1017f3 100755 (executable)
@@ -463,10 +463,12 @@ typedef int (*vce_process_haptic_event_cb)(const char* event);
 * @brief Called when the engine service user requests the base information of VC engine.
 * @since_tizen 5.0
 *
-* @param[in] engine_uuid The engine id
-* @param[in] engine_name The engine name
+* @param[out] engine_uuid The engine id
+* @param[out] engine_name The engine name
+* @param[out] engine_setting The setting path name
+* @param[out] use_network @c true to need network @c false not to need network.
 */
-typedef int (*vce_get_info_cb)(char** engine_uuid, char** engine_name);
+typedef int (*vce_get_info_cb)(char** engine_uuid, char** engine_name, char** engine_setting, bool* use_network);
 
 
 /**
index c5021510b13df764a4987e6f6577ecf63a2f6065..49b9f7f3c62b6dbf5efca988322f5322a7a9aac0 100644 (file)
@@ -33,11 +33,13 @@ typedef struct {
        char*   engine_uuid;
        char*   engine_name;
        char*   engine_path;
+       char*   engine_setting_path;
 
        /* engine load info */
        bool    is_set;
        bool    is_loaded;
        bool    is_command_ready;
+       bool    use_network;
        void    *handle;
 
        vc_engine_callback_s* callbacks;
@@ -155,7 +157,7 @@ int __internal_get_engine_info(vce_request_callback_s* callback)
                return VCD_ERROR_ENGINE_NOT_FOUND;
        }
 
-       if (0 != callback->get_info(&(g_dynamic_engine.engine_uuid), &(g_dynamic_engine.engine_name))) {
+       if (0 != callback->get_info(&(g_dynamic_engine.engine_uuid), &(g_dynamic_engine.engine_name), &(g_dynamic_engine.engine_setting_path), &(g_dynamic_engine.use_network))) {
                SLOG(LOG_ERROR, TAG_VCD, "[Engine Agent ERROR] Fail to get engine info");
                return VCD_ERROR_ENGINE_NOT_FOUND;
        }