platform/core/appfw/rpc-port.git
3 weeks agoRelease version 1.14.22 94/309494/1 accepted/tizen/8.0/unified/20240412.063035
Hwankyu Jhun [Thu, 11 Apr 2024 10:40:35 +0000 (19:40 +0900)]
Release version 1.14.22

Changes:
 - Handle EINTR error

Change-Id: I3643f76b057b0e4b30793ed67cd706839f487c24
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
3 weeks agoHandle EINTR error 93/309493/1
Hwankyu Jhun [Thu, 11 Apr 2024 10:40:02 +0000 (19:40 +0900)]
Handle EINTR error

Currently, the socket mode is blocking. We should handle EINTR error to
receive the data properly.

Change-Id: Icec0439bf547401b72575d05da513711513f4b54
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 weeks agoRelease version 1.14.21 71/309071/1 accepted/tizen/8.0/unified/20240405.142121
Hwankyu Jhun [Thu, 4 Apr 2024 08:36:15 +0000 (17:36 +0900)]
Release version 1.14.21

Changes:
 - Change socket mode before watching it

Change-Id: I83a45d206a8bb709491adab5753f53adb32657b8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 weeks agoChange socket mode before watching it 46/309046/1
Hwankyu Jhun [Thu, 4 Apr 2024 07:24:32 +0000 (16:24 +0900)]
Change socket mode before watching it

Before watching the fd, the fd should be non-blocking mode.
If it's not, it can make blocking the thread.

Change-Id: I46c2f7e094228b239dd193cf2dd04cfe2b926637
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoRelease version 1.14.20 96/307096/1 accepted/tizen/8.0/unified/20240306.173507 accepted/tizen/unified/20240306.011946 accepted/tizen/unified/x/20240307.010641
Hwankyu Jhun [Tue, 5 Mar 2024 00:38:10 +0000 (09:38 +0900)]
Release version 1.14.20

Changes:
 - Modify implementation of AccessController

Change-Id: I921e9242ef1bf045e3134b93f50ec209cff6ea7e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoModify implementation of AccessController 95/307095/2
Hwankyu Jhun [Mon, 4 Mar 2024 23:46:53 +0000 (08:46 +0900)]
Modify implementation of AccessController

After this patch is applied, the cyanra object is managed as an instance.
When checking the permission using cynara API, the cynara instance is used.
When the process is terminating, a crash issue occurs when the cynara-thread
calls the cynara_initialize(). The patch is to solve that.

Change-Id: I6b76645c5a43387a48bf996360680dfe87b6e90c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 months agoRelease version 1.14.19 96/306096/1 accepted/tizen/unified/20240305.052957 accepted/tizen/unified/x/20240305.021747
Changgyu Choi [Fri, 16 Feb 2024 05:49:13 +0000 (14:49 +0900)]
Release version 1.14.19

Changes:
 - Remove conditional statements for Moible/Wearable profile

Change-Id: I2497dfc3397053d0a291c495c1f1541398e27ff2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 months agoRemove conditional statements for Moible/Wearable profile 74/306074/1
Changgyu Choi [Fri, 16 Feb 2024 04:47:53 +0000 (13:47 +0900)]
Remove conditional statements for Moible/Wearable profile

Change-Id: I6b92bf26fb63ffe967416d62057d5ead1ef188b3
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 months agoRelease version 1.14.18 42/305242/1 accepted/tizen/unified/20240131.175428 accepted/tizen/unified/x/20240205.063644
Changgyu Choi [Tue, 30 Jan 2024 08:34:59 +0000 (17:34 +0900)]
Release version 1.14.18

Changes:
 - Fix critical section range

Change-Id: If2693f68720d2570417fdc9cddba73e8d4a176bd
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
3 months agoFix critical section range 50/305150/1
Changgyu Choi [Mon, 29 Jan 2024 09:37:37 +0000 (18:37 +0900)]
Fix critical section range

lock should be get before checking whether listener_ is nullptr or not.

Change-Id: Ied8d03d9bc772542837d7f8b5f2eb1ad8a61c5e9
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoRelease version 1.14.17 55/303355/1 accepted/tizen_unified_riscv accepted/tizen/8.0/unified/20231227.170213 accepted/tizen/unified/20231227.063300 accepted/tizen/unified/riscv/20240103.054538
Changgyu Choi [Tue, 26 Dec 2023 07:26:24 +0000 (16:26 +0900)]
Release version 1.14.17

Changes:
 - Fix deadlock issue

Change-Id: Ia58ca61148f2fd4db4725000b0fbd1cbaeb306ee
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoFix deadlock issue 53/303353/4
Changgyu Choi [Tue, 26 Dec 2023 07:04:17 +0000 (16:04 +0900)]
Fix deadlock issue

This patch fixes deadlock issue.
When CynaraThread was blocked from WaitAndPop() and the instance was desctucted at the same time,
CynaraThread occurs deadlock.

Change-Id: Iee2c6fb02dd1f5fd6b9b5331c4d87ddbbb880697
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
4 months agoRelease version 1.14.16 96/302796/1 accepted/tizen/8.0/unified/20231214.164515 accepted/tizen/unified/20231214.164953 accepted/tizen/unified/riscv/20231226.210644
Hwankyu Jhun [Wed, 13 Dec 2023 23:21:59 +0000 (08:21 +0900)]
Release version 1.14.16

Changes:
 - Fix the use of incorrect options

Change-Id: I3c606d3b843b5f63a7858cf647e3ec81854046f6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
4 months agoFix the use of incorrect options 95/302795/1
Hwankyu Jhun [Wed, 13 Dec 2023 22:17:30 +0000 (07:17 +0900)]
Fix the use of incorrect options

The value that should be set for flags of the fcntl() is FD_CLOEXEC.
This patch modifies to use FD_CLOEXEC instead of O_CLOEXEC.

Change-Id: I443a54ba18098d1bd2f094cdb081ad6b54fbd02b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.14.15 87/299187/1 accepted/tizen/8.0/unified/20231005.093101 accepted/tizen/unified/20230923.084306 tizen_8.0_m2_release
Hwankyu Jhun [Thu, 21 Sep 2023 08:09:25 +0000 (17:09 +0900)]
Release version 1.14.15

Changes:
 - Fix OnResultReceived() of proxy

Change-Id: Idde71316987151f21fc79901ff09904b63e1c50d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoFix OnResultReceived() of proxy 81/299181/1
Hwankyu Jhun [Thu, 21 Sep 2023 07:27:20 +0000 (16:27 +0900)]
Fix OnResultReceived() of proxy

This patch adds printing logs for debugging.
Before calling the OnConnected(), the rpc-port library checks whether
main and delegate ports are nullptrs or not.

Change-Id: Ief9fb0da872058b8451165a0492f73509bdc1ce0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.14.14 67/299167/1
Hwankyu Jhun [Thu, 21 Sep 2023 04:56:12 +0000 (13:56 +0900)]
Release version 1.14.14

Changes:
 - Fix static analysis issues

Change-Id: If9f6746c59383c3dcc09caf605d2cf10fe9b080b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoFix static analysis issues 42/299042/1
Hwankyu Jhun [Tue, 19 Sep 2023 01:54:20 +0000 (10:54 +0900)]
Fix static analysis issues

Issues:
 - COPY_INSTEAD_OF_MOVE

Change-Id: Ie072a4808a2170dea24e337a5aaf7828e752763d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.14.13 40/299040/1
Hwankyu Jhun [Tue, 19 Sep 2023 00:41:53 +0000 (09:41 +0900)]
Release version 1.14.13

Changes:
 - Add exception handlings

Change-Id: I04ce827edb906d6a39dc16d6db2dcbd8b5ac9989
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoAdd exception handlings 37/299037/1
Hwankyu Jhun [Mon, 18 Sep 2023 22:37:38 +0000 (07:37 +0900)]
Add exception handlings

The generated code can throw InvalidIOException and std::bad_weak_ptr
exceptions. This patch adds exception handlings.

Change-Id: I91e4d1fecab9e4e9a2047efe47f4616a396b9b00
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.14.12 54/298654/1 accepted/tizen/unified/20230913.091627
Hwankyu Jhun [Tue, 12 Sep 2023 06:30:08 +0000 (15:30 +0900)]
Release version 1.14.12

Changes:
 - Set close on exec for client socket

Change-Id: Ibc960b181ead21a8111d8f06f6afec95c5bf6b05
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoSet close on exec for client socket 52/298652/1
Hwankyu Jhun [Tue, 12 Sep 2023 05:58:06 +0000 (14:58 +0900)]
Set close on exec for client socket

To close the client socket fd, this patch sets O_CLOEXEC flag using fcntl().

Change-Id: I90f60c23ffc8aa0e62c93e26b4494493fb08eedb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.14.11 96/298596/1 accepted/tizen/unified/20230912.013614
Hwankyu Jhun [Mon, 11 Sep 2023 07:42:04 +0000 (16:42 +0900)]
Release version 1.14.11

Changes:
 - Set close on exec

Change-Id: Ia85f9ae058728d429182b3fd049575136016cf2a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoSet close on exec 74/298574/1
Hwankyu Jhun [Mon, 11 Sep 2023 02:17:36 +0000 (11:17 +0900)]
Set close on exec

To avoid inheriting fd to the child process, this patch sets close on
exec flag to fd.

Change-Id: I3ab2255e8cd80ad50ffbf355e51f0acec1030d68
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoRelease version 1.14.10 27/298427/1 accepted/tizen/unified/20230907.175317
Hwankyu Jhun [Thu, 7 Sep 2023 01:08:28 +0000 (10:08 +0900)]
Release version 1.14.10

Changes:
 - Modify log message

Change-Id: I811bc99da9292bece5a0a93b42553cdf649f1c78
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 months agoModify log message 25/298425/1
Hwankyu Jhun [Wed, 6 Sep 2023 23:56:03 +0000 (08:56 +0900)]
Modify log message

To debug the issues, the file descriptor number is needed.
This patch changes the log format and the log level.

Change-Id: Ie1d90c6c87f5009b92bf086aa2a71f983709be40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 1.14.9 99/297899/1 accepted/tizen/unified/20230829.181400
Hwankyu Jhun [Mon, 28 Aug 2023 07:33:00 +0000 (16:33 +0900)]
Release version 1.14.9

Changes:
 - Remove build warning message
 - Improve code coverage

Change-Id: I94f98f02e9c5bea7476cfed66e3e4e250a47d948
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoImprove code coverage 88/297888/3
Hwankyu Jhun [Mon, 28 Aug 2023 06:33:11 +0000 (15:33 +0900)]
Improve code coverage

- Adds unit tests
- Excludes some lines

Change-Id: I2e3e64252fb48eecd4130323151c6fb892832a39
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRemove build warning message 68/297868/1
Hwankyu Jhun [Mon, 28 Aug 2023 01:21:59 +0000 (10:21 +0900)]
Remove build warning message

- Removes unused variable

Change-Id: I9a50268f0f7e0b4b73825204b704175fe712254d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
8 months agoRelease version 1.14.8 66/296866/1 accepted/tizen/unified/20230809.071938
Changgyu Choi [Mon, 7 Aug 2023 01:34:13 +0000 (10:34 +0900)]
Release version 1.14.8

Changes:
 - Protect to access released handle

Change-Id: Iaece9994d3e626f6f851ed6f160de0a051d28110
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
9 months agoProtect to access released handle 49/296749/2
Changgyu Choi [Fri, 4 Aug 2023 02:17:08 +0000 (11:17 +0900)]
Protect to access released handle

Change-Id: Ib228d1991930e220226e83b2d7ed87155589e595
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
9 months agoRelease version 1.14.7 49/296049/1 accepted/tizen/unified/20230719.102920
jusung son [Wed, 19 Jul 2023 01:00:08 +0000 (10:00 +0900)]
Release version 1.14.7

Changes:
 - Add a new internal API for gettting peer info

Change-Id: Ib3ef3ada76b401924d5d20480f1c929581f9618a
Signed-off-by: jusung son <jusung07.son@samsung.com>
9 months agoAdd a new internal API for gettting peer info 47/296047/2
jusung son [Wed, 19 Jul 2023 00:39:32 +0000 (09:39 +0900)]
Add a new internal API for gettting peer info

 - rpc_port_get_peer_info()

Change-Id: I8516e79389fe89d391ea1b30999ba253e811d22e
Signed-off-by: jusung son <jusung07.son@samsung.com>
10 months agoRelease version 1.14.6 54/295154/1 accepted/tizen_unified_dev accepted/tizen/unified/20230705.063735 accepted/tizen/unified/dev/20230726.115743
Hwankyu Jhun [Mon, 3 Jul 2023 08:38:39 +0000 (08:38 +0000)]
Release version 1.14.6

Changes:
 - Fixed the build error using gcc 13

Change-Id: If1be7db5a87f2badacf3dcec95a7fa617d6c7dec
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
10 months agoFixed the build error using gcc 13 37/295137/1
Hwankyu Jhun [Mon, 3 Jul 2023 07:27:22 +0000 (07:27 +0000)]
Fixed the build error using gcc 13

- Fix wrong indentation
- Remove unnecessary std::move call

Change-Id: I903fa85df87fccb7b0aa74aeccd4c888d26e48c1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.14.5 68/293568/1 accepted/tizen/unified/20230601.162954
Hwankyu Jhun [Wed, 31 May 2023 08:02:16 +0000 (08:02 +0000)]
Release version 1.14.5

Changes:
 - Change tizen version from 7.5 to 8.0

Change-Id: I9a699694d24b9e46ce28ad4039196b5dafd79f5f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoChange tizen version from 7.5 to 8.0 45/292845/1
Hwankyu Jhun [Mon, 15 May 2023 22:31:59 +0000 (22:31 +0000)]
Change tizen version from 7.5 to 8.0

Platform version policy has been changed from 7.5 to 8.0. This patch modifies
the description of the API added in 7.5 to 8.0.

Change-Id: I6a506b9202cd166c6398feb673fef8e84804df0c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoRelease version 1.14.4 26/292726/1
Hwankyu Jhun [Fri, 12 May 2023 02:08:36 +0000 (02:08 +0000)]
Release version 1.14.4

Changes:
 - Add nodelete option for destroying handles

Change-Id: I349b3acef2b9cf024c5e631be46480809b43bc23
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
11 months agoAdd nodelete option for destroying handles 22/292722/1
Hwankyu Jhun [Fri, 12 May 2023 01:42:06 +0000 (01:42 +0000)]
Add nodelete option for destroying handles

If the process unloads the rpc-port library, the process will be crashed by
the glib source. While calling elm_shutdown(), the glib source will be dispatched.
In that case, the process has crashed if the rpc-port library is unloaded.

Change-Id: I67354c0d7bc8d2ef51b363cb762f5c8132940783
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
13 months agoRelease version 1.14.3 28/290228/1
Changgyu Choi [Wed, 22 Mar 2023 00:19:07 +0000 (09:19 +0900)]
Release version 1.14.3

Changes:
 - Fix static analysis issues

Change-Id: If66e5c982c92a20ae7c1e57b306a392c37bbb9d1
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
13 months agoFix static analysis issues 96/290196/7
Changgyu Choi [Tue, 21 Mar 2023 09:11:42 +0000 (18:11 +0900)]
Fix static analysis issues

Change-Id: I4e2de4075c4822edc168495db2cd4edadf9072a0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
13 months agoRelease version 1.14.2 93/290193/1
Changgyu Choi [Tue, 21 Mar 2023 08:40:35 +0000 (17:40 +0900)]
Release version 1.14.2

Changes:
 - Add CynaraThread

Change-Id: Icb60fde83d15d476876d796c39397ee9779d098a
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
13 months agoAdd CynaraThread 84/290084/9
Changgyu Choi [Mon, 20 Mar 2023 06:23:39 +0000 (15:23 +0900)]
Add CynaraThread

Some cynara apis cause blocking a thread.
This patch adds a sub thread for processing cynara requests.

Change-Id: Ib800d034ce0e545f18327b00f00ace729de8a8f2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
14 months agoRelease version 1.14.1 49/288649/1 accepted/tizen/unified/20230222.161454
Hwankyu Jhun [Tue, 21 Feb 2023 03:23:49 +0000 (03:23 +0000)]
Release version 1.14.1

Changes:
 - Fix wrong API description

Change-Id: Ie8f65243a06e3b06f7622893e25c0d2acc1e42c4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
14 months agoFix wrong API description 38/288638/1
Hwankyu Jhun [Tue, 21 Feb 2023 01:55:55 +0000 (01:55 +0000)]
Fix wrong API description

The '@h' should be '@a h'.

Change-Id: I4056ad50e14c7b2a1af775ff6741080463df49a2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.14.0 20/287720/1 accepted/tizen/unified/20230207.165811
Hwankyu Jhun [Fri, 3 Feb 2023 04:13:59 +0000 (04:13 +0000)]
Release version 1.14.0

Changes:
 - Add a new API for creating parcel handle

Change-Id: I37c8bd60a218fea59dea9c39210187b09878ed90
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoAdd a new API for creating parcel handle 69/285169/8
Hwankyu Jhun [Wed, 7 Dec 2022 06:06:53 +0000 (06:06 +0000)]
Add a new API for creating parcel handle

To create a parcel handle without the header, a new API is added.

Adds:
 - rpc_port_parcel_create_without_header()

Change-Id: Ic4d0b79ea580243e988a02261a3c4b586f27bdd4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.13.15 53/287653/1 accepted/tizen/unified/20230206.093828 accepted/tizen/unified/20230206.093945
Hwankyu Jhun [Thu, 2 Feb 2023 03:54:03 +0000 (03:54 +0000)]
Release version 1.13.15

Changes:
 - Move port existence check to the Watch method

Change-Id: Ib23c4b1c19e66a9c9aef2a494c3aaf899ccd63f1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoMove port existence check to the Watch method 44/287644/2
Hwankyu Jhun [Thu, 2 Feb 2023 02:37:06 +0000 (02:37 +0000)]
Move port existence check to the Watch method

To make unblocking the main thread, the port existence check is moved to
the Watch() method. If the proxy application calls the rpc_port_proxy_connect()
function in the sub thread, the Aul::ExistPort() is called in the thread.

Change-Id: Ie82e0527c56981337c1b241c8d2b090696a1b0de
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.13.14 62/287262/1 accepted/tizen/unified/20230130.165639
Hwankyu Jhun [Thu, 26 Jan 2023 04:04:17 +0000 (04:04 +0000)]
Release version 1.13.14

Changes:
 - Revert "Check current thread ID to destroy handle"

Change-Id: I487c8d45b2abefab33204366ab4047c719d72ecf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRevert "Check current thread ID to destroy handle" 59/287259/1
Hwankyu Jhun [Thu, 26 Jan 2023 03:39:02 +0000 (03:39 +0000)]
Revert "Check current thread ID to destroy handle"

This reverts commit 2da1742b97e33d2b9c42d01104080721143d8b59.
When calling the event callback function, app developer releases the handle
in the callback function. It makes a crash issue.
Even if the destroy function is called in the main thread, the rpc-port library
doesn't release the handle immediately to prevent the issue.

Change-Id: I58a25d9e4c5f1f42065901dac8e6a30f22f898d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.13.13 03/287003/1 accepted/tizen/unified/20230120.182035
Hwankyu Jhun [Wed, 18 Jan 2023 06:43:56 +0000 (06:43 +0000)]
Release version 1.13.13

Changes:
 - Modify Port::Write() method

Change-Id: Ifeb3aab21595f577b57ebae0883f087b8f00a116
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoModify Port::Write() method 99/286999/1
Hwankyu Jhun [Wed, 18 Jan 2023 06:20:02 +0000 (06:20 +0000)]
Modify Port::Write() method

After this patch is applied, if the cache buffer is not empty, the
rpc-port library checks the socket whether writing is possible or not.
If it's possible, the rpc-port library writes the delayed message to
the socket fd.

Change-Id: If54967bbc7fce4d4494b9fee44d8dcfe5e57de50
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoRelease version 1.13.12 93/286693/1 accepted/tizen/unified/20230113.091214
Hwankyu Jhun [Wed, 11 Jan 2023 23:26:02 +0000 (23:26 +0000)]
Release version 1.13.12

Changes:
 - Use tizen_base::SharedQueue

Change-Id: I03fac659f314b95277f3552beca0765989ef0870
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
15 months agoUse tizen_base::SharedQueue 67/286667/1
Hwankyu Jhun [Wed, 11 Jan 2023 10:55:05 +0000 (10:55 +0000)]
Use tizen_base::SharedQueue

To remove duplicated codes about shared queue, we add a
tizen-shared-queue library. This patch uses the tizen_base::SharedQueue
and removes duplicated shared queue codes.

Change-Id: I43e1aa4ecce2c97524046145b0db02e3cb3e1d0d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.13.11 72/286372/1
Hwankyu Jhun [Thu, 5 Jan 2023 01:42:10 +0000 (01:42 +0000)]
Release version 1.13.11

Changes:
 - Modify connect method of proxy

Change-Id: I703dd13a99aaaa1bd96bceefcb49e93a8e99f719
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoModify connect method of proxy 26/286326/7
Hwankyu Jhun [Wed, 4 Jan 2023 03:46:37 +0000 (03:46 +0000)]
Modify connect method of proxy

The proxy is able to call the rpc_port_proxy_connect() function after
calling the rpc_port_proxy_disconnect() function.

Change-Id: Ib9cb6758b1792e4f3413164745b5c34819ef51ce
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoRelease version 1.13.10 12/286012/1 accepted/tizen/7.0/unified/20221227.171429 accepted/tizen/unified/20221227.170641
Hwankyu Jhun [Mon, 26 Dec 2022 05:28:38 +0000 (05:28 +0000)]
Release version 1.13.10

Changes:
 - Call abort() when double free occurs

Change-Id: I9f7508c7010188f9cdb72200a6539dd620b6ed0a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
16 months agoCall abort() when double free occurs 11/286011/1
Hwankyu Jhun [Mon, 26 Dec 2022 05:14:37 +0000 (05:14 +0000)]
Call abort() when double free occurs

When double free occurs, rpc-port library calls abort().
This is for deubgging C# applications.

Change-Id: I15465d756f8b17d21b4b56bb2938cb2c8b536fe4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
17 months agoRelease version 1.13.9 67/284667/1
Changgyu Choi [Wed, 23 Nov 2022 01:14:42 +0000 (10:14 +0900)]
Release version 1.13.9

Changes:
 - Add client reset step in OnTimedOut()

Change-Id: I70f808c4c1c82902f8e9278f2e8a0044625a5d7c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
17 months agoAdd client reset step in OnTimedOut() 31/284631/3
Changgyu Choi [Tue, 22 Nov 2022 05:29:40 +0000 (14:29 +0900)]
Add client reset step in OnTimedOut()

If the timeout occurs between OnAppeared and Connected events,
even if try to reconnect, the port may not be valid.
After applying this patch, the client is reset to protect the possibility of accessing invalid ports.

Change-Id: Ic268bac9f899f96c2ceda196f5def1abdd624159
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
18 months agoRelease version 1.13.8 83/283083/1 accepted/tizen/unified/20221104.082313
Changgyu Choi [Tue, 18 Oct 2022 02:25:12 +0000 (11:25 +0900)]
Release version 1.13.8

Changes:
 - Fix wrong exception handling
 - Release the client handle
 - Fix static analysis issues

Change-Id: Ia6118104adb388f2a6387b8f5ad0295949df1402
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
18 months agoFix static analysis issues 31/283031/1
Changgyu Choi [Mon, 17 Oct 2022 04:14:44 +0000 (13:14 +0900)]
Fix static analysis issues

Change-Id: I443f2472f98001c1b279cc27d835dc341024e846
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
18 months agoRelease the client handle 36/282836/1
Hwankyu Jhun [Wed, 12 Oct 2022 06:41:39 +0000 (06:41 +0000)]
Release the client handle

When the client application calls the rpc_port_proxy_connect() function
after the diconnected event is received, the main_client_ and the
delegate_client_ handles have to be released.

Change-Id: I2aeef18323bc9f438b048cfef42fb9dd1c82f62e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoFix wrong exception handling 48/282448/4
Changgyu Choi [Tue, 4 Oct 2022 02:47:34 +0000 (11:47 +0900)]
Fix wrong exception handling

Change-Id: Ifd4f0104ad69dbcaddbdc31a75e84b676471716e
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
19 months agoRelease version 1.13.7 32/282232/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.061819 accepted/tizen/7.0/unified/hotfix/20221116.105042 accepted/tizen/unified/20220929.140025 tizen_7.0_m2_release
Hwankyu Jhun [Wed, 28 Sep 2022 23:20:50 +0000 (23:20 +0000)]
Release version 1.13.7

Changes:
 - Fix bugs about getting and setting raw data

Change-Id: I55f35f2f2506158285f6b3f07ac8a924e73e6206
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoFix bugs about getting and setting raw data 16/282216/1
Hwankyu Jhun [Wed, 28 Sep 2022 10:27:29 +0000 (10:27 +0000)]
Fix bugs about getting and setting raw data

Unfortunately, there is a bug about the raw data of the parcel.
When the rpc_port_parcel_get_raw() is called, the function allocates a
tizen_base::Parcel to set the raw data internally.

Change-Id: I4297f7fab5ba144bafd17366b518627bfbd1e5d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoRelease version 1.13.6 23/282123/1 accepted/tizen/unified/20220928.144443
Hwankyu Jhun [Tue, 27 Sep 2022 06:56:16 +0000 (06:56 +0000)]
Release version 1.13.6

Changes:
 - Use modified tizen_base::Parcel
 - Fix static analysis issue

Change-Id: Ifad26b8f42b17f3b793f751659203e6e27ccccc1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoFix static analysis issue 02/282102/4
Hwankyu Jhun [Tue, 27 Sep 2022 05:30:49 +0000 (05:30 +0000)]
Fix static analysis issue

The following issue is fixed:
 - ODR_VIOLATION

Change-Id: Icece742e174148c3af52fed4e7346a04b51e1790
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoUse modified tizen_base::Parcel 66/281966/2
Hwankyu Jhun [Fri, 23 Sep 2022 11:06:39 +0000 (11:06 +0000)]
Use modified tizen_base::Parcel

To improve the performance of the parcel creation, the implementation of
the Parcel is changed. It uses malloc() instead of std::vector.

Requires:
 - https://review.tizen.org/gerrit/#/c/platform/core/base/bundle/+/281779/

Change-Id: Iaf01e6e94e34e10a36b8ca17081c6aba3b3b51e1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoRelease version 1.13.5 13/281813/1 accepted/tizen/unified/20220923.125143
Hwankyu Jhun [Thu, 22 Sep 2022 05:42:25 +0000 (05:42 +0000)]
Release version 1.13.5

Changes:
 - Check debug port connection
 - Fix static analysis issue

Change-Id: Iad333eae69105012fa456e08f0f042b792e7883e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoFix static analysis issue 78/281778/2
Hwankyu Jhun [Thu, 22 Sep 2022 01:29:11 +0000 (01:29 +0000)]
Fix static analysis issue

- Initializes member variables

Change-Id: Iea984746028c53001d2a2100cc57d03fc3315f30
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoCheck debug port connection 40/281740/2
Hwankyu Jhun [Wed, 21 Sep 2022 08:20:13 +0000 (08:20 +0000)]
Check debug port connection

If the debug port is not connected, the rpc-port doesn't send and
receive the sequence number.

Change-Id: I7697410a0500a790fad2328d9aa4ff54a93da652
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoRelease version 1.13.4 55/281355/1 accepted/tizen/unified/20220919.090127
Hwankyu Jhun [Fri, 16 Sep 2022 01:52:10 +0000 (01:52 +0000)]
Release version 1.13.4

Changes:
 - Remove build warning messages
 - Fix DebugPort implementation

Change-Id: I4c5e8edcee9604326d7344dea0a52384a7f232aa
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoFix DebugPort implementation 36/281336/2
Hwankyu Jhun [Thu, 15 Sep 2022 10:42:36 +0000 (10:42 +0000)]
Fix DebugPort implementation

The DebugPort implementation is changed. The method are changed to 'static'.
The implementation of the DebugPort is moved to the DebugPortImpl.
To avoid unnecessary locking mutex, the flag that is connected_ is changed to
std::atomic<bool>.

Change-Id: I4aca67730639664c7a2646f9486be49124dad0ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoRemove build warning messages 37/281337/2
Hwankyu Jhun [Thu, 15 Sep 2022 10:47:54 +0000 (10:47 +0000)]
Remove build warning messages

To remove -Wwrite-strings warning messages, char array is added to set
the SERVER_BIN.

Change-Id: I66cb1c3d325f794f6d89b66b378b2f0f15836297
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoRelease version 1.13.3 66/280966/1 accepted/tizen/unified/20220913.175629
Changgyu Choi [Wed, 7 Sep 2022 07:42:42 +0000 (16:42 +0900)]
Release version 1.13.3

Changes:
 - Fix static analysis issues

Change-Id: I0e0669a5f02715647d3e93a25d1e3ae24f302629
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
19 months agoFix static analysis issues 33/280933/2
Changgyu Choi [Wed, 7 Sep 2022 02:17:50 +0000 (11:17 +0900)]
Fix static analysis issues

Changes:
 - Adds exception handling logic.
 - Fix to using const_cast instead of strdup.

Change-Id: Ic6b54c8257f1099f37b1fea33ba5a6894dc751ad
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
20 months agoRelease version 1.13.2 35/279935/1 accepted/tizen/unified/20220821.211120 submit/tizen/20220819.071936
Hwankyu Jhun [Fri, 19 Aug 2022 07:18:07 +0000 (07:18 +0000)]
Release version 1.13.2

Changes:
 - Remove circular dependency

Change-Id: I9708de830a33ec1690ca93a99575cbe60a372ba0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 months agoRemove circular dependency 34/279934/1
Hwankyu Jhun [Fri, 19 Aug 2022 07:16:34 +0000 (07:16 +0000)]
Remove circular dependency

tidl package has a dependency of rpc-port. Currently, there is a
circular dedenecy problem. This patch solves it.

Change-Id: If60079ad21220fece3624d34f3cb9487fd17c006
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 months agoRelease version 1.13.1 83/279883/1 submit/tizen/20220819.013532
Hwankyu Jhun [Fri, 19 Aug 2022 01:23:05 +0000 (01:23 +0000)]
Release version 1.13.1

Changes:
 - Add a missing exception handling

Change-Id: Id4c9e64b626f31cc034a0537e106f55734ab9760
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 months agoAdd a missing exception handling 80/279880/2
Hwankyu Jhun [Fri, 19 Aug 2022 00:17:13 +0000 (00:17 +0000)]
Add a missing exception handling

The SetReceiveTimeout() method throws an exception when the error occurs.

Change-Id: I8ea11f4d7e04a127efebe4c516a1fbe32bf6a435
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 months agoRelease version 1.13.0 79/279879/1 submit/tizen/20220819.000528
Hwankyu Jhun [Thu, 18 Aug 2022 23:47:36 +0000 (23:47 +0000)]
Release version 1.13.0

Changes:
 - Add benchmark tool
 - Execute benchmark server as child process
 - Add options

Change-Id: Ib9115dcceb1a62cb17d668609970f5e96f06a901
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 months agoAdd options 73/279573/1
jh9216.park [Fri, 12 Aug 2022 00:47:33 +0000 (20:47 -0400)]
Add options

- Added options
  -f, --funcation  Use function call instead of RPC
  -a, --all        Test pre-defined test-cases

Change-Id: I993432e219bb16a0bd3d9a80a24daae60e781f41
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
20 months agoExecute benchmark server as child process 41/279541/2
Hwankyu Jhun [Thu, 11 Aug 2022 07:42:00 +0000 (16:42 +0900)]
Execute benchmark server as child process

To test the performance easily, the benchmark-server will be executed
using fork() & execv() by the tool.

Change-Id: I394131d6294a78c869adfcb6f6565397feb9b77b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
20 months agoAdd benchmark tool 29/279529/5
jh9216.park [Thu, 11 Aug 2022 03:46:55 +0000 (23:46 -0400)]
Add benchmark tool

Change-Id: I8360367d6a62e00f4c2a3525a409aa9e8079ab87
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
21 months agoRelease version 1.12.13 58/277858/1 accepted/tizen/unified/20220728.131939 submit/tizen/20220714.070033 submit/tizen/20220724.222434 submit/tizen/20220725.232057
Hwankyu Jhun [Thu, 14 Jul 2022 06:40:32 +0000 (15:40 +0900)]
Release version 1.12.13

Changes:
 - Fix run-unittest.sh script

Change-Id: I5009ec01aad2c5efeb05238b517a05b61f683504
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoFix run-unittest.sh script 49/277849/1
Hwankyu Jhun [Thu, 14 Jul 2022 05:51:24 +0000 (14:51 +0900)]
Fix run-unittest.sh script

For code coverage measurement, the permission of directories and files should be
changed for applications.
The script sets the smack label as "System::Run" to files.

Change-Id: I7c405e0fc8e6548298e3addffcdaeaa2b6a460a0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoRelease version 1.12.12 20/276020/1 accepted/tizen/unified/20220610.134735 submit/tizen/20220608.235643 submit/tizen/20220609.221238
Hwankyu Jhun [Wed, 8 Jun 2022 22:47:33 +0000 (07:47 +0900)]
Release version 1.12.12

Changes:
 - Fix memory leak

Change-Id: Icecb3fb8c38746afa1ae833c3c6354cba732da2a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoFix memory leak 94/275994/2
Hwankyu Jhun [Wed, 8 Jun 2022 07:33:22 +0000 (16:33 +0900)]
Fix memory leak

When the handle is destroying, the session information of the DebugPort
has to be removed.

Change-Id: I6c931b889261d4d5374ac89775c2b50a1c6ad483
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
23 months agoRelease version 1.12.11 04/275804/1 accepted/tizen/unified/20220603.141257 submit/tizen/20220602.042544
Hwankyu Jhun [Thu, 2 Jun 2022 04:02:48 +0000 (13:02 +0900)]
Release version 1.12.11

Changes:
 - Use source ID instead of GSource

Change-Id: I01c1634f39f83a5e6986491a9290e847d03f34c7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
23 months agoUse source ID instead of GSource 01/275801/3
Hwankyu Jhun [Thu, 2 Jun 2022 03:15:10 +0000 (12:15 +0900)]
Use source ID instead of GSource

To find the GSource properly from the GMainContext, the port object uses
the source_id instead of the GSource. And, if creating shared_ptr is failed,
the OnEventReceived callback function should return G_SOURCE_REMOVE to
prevent recalling the function.

Change-Id: I26604a7671f73f1d48476434e180ec4d542c05f2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
23 months agoRelease version 1.12.10 10/275510/1 accepted/tizen/unified/20220530.140751 submit/tizen/20220526.014753
Hwankyu Jhun [Thu, 26 May 2022 01:45:04 +0000 (10:45 +0900)]
Release version 1.12.10

Changes:
 - Fix spec file for coverage measurement

Change-Id: I3f2ad32077205536e3ac4d403471b6c0a9771494
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
23 months agoFix spec file for coverage measurement 98/275498/1
Hwankyu Jhun [Thu, 26 May 2022 01:34:32 +0000 (10:34 +0900)]
Fix spec file for coverage measurement

To measure code coverages automatically, a run-unittest.sh is needed.

Change-Id: I298bc4d70010af80024374f49e8d5a8682b480e5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 1.12.9 47/271647/1 accepted/tizen/6.5/unified/20220225.151927 accepted/tizen/unified/20220228.132711 submit/tizen/20220224.231138 submit/tizen_6.5/20220224.231154
Hwankyu Jhun [Thu, 24 Feb 2022 06:05:35 +0000 (15:05 +0900)]
Release version 1.12.9

Changes:
 - Fix a bug about callback invocation

Change-Id: I5a13ebfd08fbe181384c8ae461aa795caf82797c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix a bug about callback invocation 38/271638/1
Hwankyu Jhun [Thu, 24 Feb 2022 02:56:32 +0000 (11:56 +0900)]
Fix a bug about callback invocation

The connection request will not be successful until the stub is the idle state.
After sending the connection request to the stub, the proxy cannot get
the rejected event or the disconnected event until the stub is the idle
state. Because, when the port is appeared, the proxy removes the connection timer.
This patch adjusts a position of the UnsetConnTimer() call to remove
the connection timer properly.

Change-Id: I4d0fb651fd30c77df9088580b38b171f1a98ca5d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 1.12.8 73/269773/1 accepted/tizen/6.5/unified/20220125.122541 accepted/tizen/unified/20220124.020354 submit/tizen/20220120.064930 submit/tizen/20220120.083417 submit/tizen/20220120.231448 submit/tizen_6.5/20220120.064818 submit/tizen_6.5/20220121.000129 submit/tizen_6.5/20220123.222508
Hwankyu Jhun [Thu, 20 Jan 2022 06:22:13 +0000 (15:22 +0900)]
Release version 1.12.8

Changes:
 - Fix installation path of gcov result

Change-Id: Ied2f20a9c2f7e8b5ba493b430c17e7b59773a600
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix installation path of gcov result 26/269726/1
Hwankyu Jhun [Thu, 20 Jan 2022 05:44:38 +0000 (14:44 +0900)]
Fix installation path of gcov result

Change-Id: Ic6638bd0c1fd8c86e28f27f9e8dcf341c679237d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 1.12.7 53/265753/1 accepted/tizen/6.5/unified/20211109.041712 accepted/tizen/unified/20211101.140318 submit/tizen/20211028.054746 submit/tizen/20211028.063318 submit/tizen/20211101.102058 submit/tizen_6.5/20211105.053806
Hwankyu Jhun [Thu, 28 Oct 2021 05:38:19 +0000 (14:38 +0900)]
Release version 1.12.7

Changes:
 - Revert "Fix Write() method of Port"
 - Separate locking mutex

Change-Id: I4bb6117a01b18445e7feb8233f99e09cecd4b2ff
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoSeparate locking mutex 49/265749/1
Hwankyu Jhun [Thu, 28 Oct 2021 05:14:49 +0000 (14:14 +0900)]
Separate locking mutex

Currently, the rpc_port_parcel_create_from_port() function and the
rpc_port_parcel_send() function use the mutex of the Port to locking the mutex.
After this patch is applied, a new mutex is added to the Port to avoid problems
that cannot be written.
And, the maximum queue size of the delayed messages is increased to 10MB.

Change-Id: I048adec69643b6cd975f7b2c3345e4babfb4a222
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>