It is to fix UNREACHABLE_CODE.RET defect.
[Version] 0.3.20
Change-Id: Id9852d477311fef9869ac28af0bae2c6b49863f2
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
Name: espp-service
Summary: ESPP service package which contains client lib. and daemon binary
-Version: 0.3.19
-Release: 1
+Version: 0.3.20
+Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
USER_SRCS = ./src/daemon/*.c ./src/common/*.c
# User Defines
-USER_DEFS = USE_DLOG USE_SERVICE_APP ESPP_SERVICE_VERSION="0.3.19"
+USER_DEFS = USE_DLOG USE_SERVICE_APP ESPP_SERVICE_VERSION="0.3.20"
# User Includes
USER_INC_DIRS = ./src/daemon ./src/common ./inc ./inc/esplusplayer_capi
# User Library Path
USER_LIB_DIRS = ./libs
-
-# SES Version
-USER_SES_VER = 6.0
USER_SRCS = ../common/*.c ./*.c
# User Defines
-USER_DEFS = USE_DLOG USE_SERVICE_APP ESPP_SERVICE_VERSION="0.3.16"
+USER_DEFS = USE_DLOG USE_SERVICE_APP ESPP_SERVICE_VERSION="0.3.20"
# User Includes
USER_INC_DIRS = ../common ./
# User Library Path
USER_LIB_DIRS =
-
-# SES Version
-USER_SES_VER = 6.0
[ESPP_SERVICE_REQUEST_SET_CALLBACK] = __handle_set_callback,
};
-int espp_service_func_handler(handler_userdata_s *hdata, espp_service_data_from_client_s *data, espp_service_data_from_server_s *result)
+void espp_service_func_handler(handler_userdata_s *hdata, espp_service_data_from_client_s *data, espp_service_data_from_server_s *result)
{
ASSERT(hdata);
ASSERT(hdata->fd >= 0);
LOG_WARNING("fd[%d] data[%p, request:%s]", hdata->fd, data, requests[data->request].str);
handlers[data->request](hdata, data, result);
-
- return 0;
}
void espp_service_handle_destroy_cb(gpointer data)
int espp_service_send_buffer(int fd, const unsigned char *buffer, uint32_t size);
/* handler */
-int espp_service_func_handler(handler_userdata_s *hdata, espp_service_data_from_client_s *data, espp_service_data_from_server_s *result);
+void espp_service_func_handler(handler_userdata_s *hdata, espp_service_data_from_client_s *data, espp_service_data_from_server_s *result);
void espp_service_handle_destroy_cb(gpointer data);
/* message */
LOG_DEBUG("<<<<< from fd[%d]: request[%s]", fd, requests[rx_data.request].str);
memset(&tx_data, 0x00, write_len);
- if (espp_service_func_handler(hdata, &rx_data, &tx_data) != 0)
- LOG_ERROR("failed to espp_service_func_handler()");
-
+ espp_service_func_handler(hdata, &rx_data, &tx_data);
LOG_DEBUG(">>>>>> to fd[%d]: ret[%d]", fd, tx_data.ret);
if (write(fd, &tx_data, write_len) < 0) {
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="7.0" package="com.samsung.tizen.espp-service" version="0.3.19">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="8.0" package="com.samsung.tizen.espp-service" version="0.3.20">
<profile name="mobile"/>
<description>espp-service</description>
<service-application appid="com.samsung.tizen.espp-service" auto-restart="false" exec="espp-service" multiple="false" nodisplay="false" on-boot="false" taskmanage="false" type="capp">