Update doxygen 04/215004/1
authormk5004.lee <mk5004.lee@samsung.com>
Tue, 1 Oct 2019 00:20:27 +0000 (09:20 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Tue, 1 Oct 2019 00:21:06 +0000 (09:21 +0900)
- change file mode

Change-Id: I65438ba547e89c21b80c22ba39ea5cd527e24852
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
include/rpc-port-parcel.h
include/rpc-port.h [changed mode: 0755->0644]
packaging/rpc-port.spec [changed mode: 0755->0644]
src/rpc-port-parcel.cc [changed mode: 0755->0644]
src/rpc-port.cc [changed mode: 0755->0644]

index 1a3d661..202086b 100644 (file)
@@ -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
old mode 100755 (executable)
new mode 100644 (file)
index 559141b..5f4ab6d
@@ -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);
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index f49d9e2..55c10b2
@@ -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<internal::Port*>(port);
old mode 100755 (executable)
new mode 100644 (file)