From: mk5004.lee Date: Tue, 1 Oct 2019 00:20:27 +0000 (+0900) Subject: Update doxygen X-Git-Tag: submit/tizen/20191104.005943~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf65d6c5a8b1027b49ba9dc7e134a1b8170ced1c;p=platform%2Fcore%2Fappfw%2Frpc-port.git Update doxygen - change file mode Change-Id: I65438ba547e89c21b80c22ba39ea5cd527e24852 Signed-off-by: mk5004.lee --- diff --git a/include/rpc-port-parcel.h b/include/rpc-port-parcel.h index 1a3d661..202086b 100644 --- a/include/rpc-port-parcel.h +++ b/include/rpc-port-parcel.h @@ -53,6 +53,7 @@ typedef struct __rpc_port_parcelable { * @return @c 0 on success, * otherwise a negative error value * @retval #RPC_PORT_ERROR_NONE Successful + * @retval #RPC_PORT_ERROR_INVALID_PARAMETER Invalid parameter * @see rpc_port_parcel_destroy() */ int rpc_port_parcel_create(rpc_port_parcel_h *h); @@ -409,7 +410,7 @@ int rpc_port_parcel_read(rpc_port_parcel_h h, rpc_port_parcelable_t *parcelable, int rpc_port_parcel_burst_read(rpc_port_parcel_h h, unsigned char *buf, unsigned int size); /** - * @brief Write bytes to rpc port parcel handle. + * @brief Writes bytes to rpc port parcel handle. * @since_tizen @if MOBILE 4.0 @elseif WEARABLE 5.0 @endif * @param[in] h The rpc port parcel handle * @param[in] buf The array buffer to write diff --git a/include/rpc-port.h b/include/rpc-port.h old mode 100755 new mode 100644 index 559141b..5f4ab6d --- a/include/rpc-port.h +++ b/include/rpc-port.h @@ -186,9 +186,9 @@ int rpc_port_proxy_destroy(rpc_port_proxy_h h); * @return @c 0 on success, * otherwise a negative error value * @retval #RPC_PORT_ERROR_NONE Successful + * @retval #RPC_PORT_ERROR_PERMISSION_DENIED Permission denied * @retval #RPC_PORT_ERROR_INVALID_PARAMETER The specified @a h is NULL * @retval #RPC_PORT_ERROR_IO_ERROR Internal I/O error - * @retval #RPC_PORT_ERROR_PERMISSION_DENIED Permission denied */ int rpc_port_proxy_connect(rpc_port_proxy_h h, const char *appid, const char *port); diff --git a/packaging/rpc-port.spec b/packaging/rpc-port.spec old mode 100755 new mode 100644 diff --git a/src/rpc-port-parcel.cc b/src/rpc-port-parcel.cc old mode 100755 new mode 100644 index f49d9e2..55c10b2 --- a/src/rpc-port-parcel.cc +++ b/src/rpc-port-parcel.cc @@ -29,6 +29,9 @@ using namespace rpc_port; RPC_API int rpc_port_parcel_create(rpc_port_parcel_h* h) { + if (h == nullptr) + return RPC_PORT_ERROR_INVALID_PARAMETER; + Parcel* p = new Parcel(); *h = p; @@ -41,7 +44,7 @@ RPC_API int rpc_port_parcel_create_from_port(rpc_port_parcel_h* h, int len; unsigned char* buf; - if (port == nullptr) + if (h == nullptr || port == nullptr) return RPC_PORT_ERROR_INVALID_PARAMETER; internal::Port* pt = static_cast(port); diff --git a/src/rpc-port.cc b/src/rpc-port.cc old mode 100755 new mode 100644