platform/core/appfw/tidl.git
17 months agoSupport method privilege feature 10/288210/5
Hwankyu Jhun [Tue, 14 Feb 2023 00:52:07 +0000 (00:52 +0000)]
Support method privilege feature

After this patch is applied, the developer can set the method privilege
for each methods as below:
+------------------------------------------------------------------------------+
| interface alarmmgr {                                                         |
|   [privilege = "http://tizen.org/privilege/alarm.set"]                       |
|   int alarm_set(int alarm_id, alarmtime time);                               |
|   ...                                                                        |
| }                                                                            |
+------------------------------------------------------------------------------+

Change-Id: I6d407b991cb2c32025a20fab6c343d7ca7287d35
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
17 months agoSupport sending exception feature 74/288274/9
Hwankyu Jhun [Tue, 14 Feb 2023 09:26:45 +0000 (09:26 +0000)]
Support sending exception feature

This patch supports sending a remote exception. The server can throw
the remote exception to the client.

Change-Id: I6752837e89b33ad3ed4b09a5f78d8d6c13c6a979
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
17 months agoSupport enum type 49/286749/12
jusung [Thu, 12 Jan 2023 08:36:56 +0000 (17:36 +0900)]
Support enum type

Change-Id: I9878ca3f6afd3dd9ed36632a7064459641e73aca
Signed-off-by: jusung <jusung07.son@samsung.com>
17 months agoFix bugs about map & set container 28/288328/4
Hwankyu Jhun [Wed, 15 Feb 2023 07:00:29 +0000 (07:00 +0000)]
Fix bugs about map & set container

- Fixes typo
- Fixes wrong conditions of iteration

Change-Id: I2b7a5eba2e2f8668b727c221a49c77aaced4035b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
17 months agoSupport map & set container type 34/286234/24
Hwankyu Jhun [Mon, 2 Jan 2023 07:45:50 +0000 (07:45 +0000)]
Support map & set container type

From protocol version 2, the map & set container types are supported.
The developer can define the map<K, V> and the set<K> in the tidl files.

Change-Id: I4195762b2fadaec5cdb7935390344c81f696e9f5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
18 months agoRemove exception handling from _consumeCommnad() 55/287255/1
Changgyu Choi [Thu, 26 Jan 2023 00:57:00 +0000 (09:57 +0900)]
Remove exception handling from _consumeCommnad()

This patch removes the catch clause so that the parcel parsing error
can be propagated to the user code (as an unhandled exception) properly.

Change-Id: Id7e7bc1d11061a5140c51fde156873618fde712c
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
18 months agoFix invalid access 46/286946/1
Changgyu Choi [Tue, 17 Jan 2023 07:16:54 +0000 (16:16 +0900)]
Fix invalid access

If std::string.length() is zero, then back() method's behavior is
undefined.

Change-Id: I5ccededf83b76058e91ebefec6b11ad8ff8f1db6
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
18 months agoFix dart generator implementation 11/286511/9
Changgyu Choi [Mon, 9 Jan 2023 08:13:37 +0000 (17:13 +0900)]
Fix dart generator implementation

Changes:
 - Modify method type of sync method.
 - Changes some stub variable names.
 - Removes unnecessary new lines.
 - Removes OnDisconnected typedef from the proxy.

Change-Id: Id51bcc20515dbabb7c4674cca2de83a8d7ac965d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
18 months ago Implement C stub generator 40/286440/4
jusung [Fri, 6 Jan 2023 05:15:32 +0000 (14:15 +0900)]
 Implement C stub generator

Change-Id: Ieb8d5243041323f782a114ea84a927cf5d24e5f1
Signed-off-by: jusung <jusung07.son@samsung.com>
18 months agoImplement C group generator 22/286322/2
jusung [Wed, 4 Jan 2023 01:47:58 +0000 (10:47 +0900)]
Implement C group generator

Change-Id: I53ce8134cb61a54ca714e6cbc3ecc53fb50a05cf
Signed-off-by: jusung <jusung07.son@samsung.com>
18 months agoFix build error 20/286320/1
jusung [Wed, 4 Jan 2023 01:18:21 +0000 (10:18 +0900)]
Fix build error

Change-Id: Id997bed3d394d9b6b158c5ae8607d2f3841e741e
Signed-off-by: jusung <jusung07.son@samsung.com>
18 months agoReplace AITT with MQTT 20/284620/4
Sangyoon Jang [Tue, 22 Nov 2022 02:34:23 +0000 (11:34 +0900)]
Replace AITT with MQTT

Change-Id: I1951de37c78e23b9b8d08f3770f82cc6d7017c89
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
18 months agoImplement C header generator 17/286217/4
Hwankyu Jhun [Mon, 2 Jan 2023 01:34:23 +0000 (01:34 +0000)]
Implement C header generator

This patch is for protocol version 2.

Change-Id: Id4216a97ada075b80fc1c580c6f1809948c43d17
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
18 months agoFix to fail build test 61/286161/8
Changgyu Choi [Fri, 30 Dec 2022 07:16:34 +0000 (16:16 +0900)]
Fix to fail build test

This patch is to solve the build failure issue that occurs depending on thread flag or not.

Change-Id: Id76506fc09c44c016fae49c42458405d1777ec8d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
18 months agoImplement C proxy body generator 70/285670/20
Hwankyu Jhun [Fri, 16 Dec 2022 07:34:53 +0000 (07:34 +0000)]
Implement C proxy body generator

This patch is for protocol version 2. The rpc_port_unit_map_h is added
to store the name, the type and the value.

Change-Id: Id7741c84c263562738f79dee5c770741741b60c4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
19 months agoFix C++ generator 13/285513/2
Changgyu Choi [Wed, 14 Dec 2022 03:06:26 +0000 (12:06 +0900)]
Fix C++ generator

Change-Id: I8ad8d495891b5c626e29b9ef474461cb1e6c0a8f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
20 months agoImplement protocol version 2 10/283710/3
jusung [Wed, 2 Nov 2022 04:59:52 +0000 (13:59 +0900)]
Implement protocol version 2

 - Add protocol keyword
 - Enable file keyword without beta option.

Change-Id: Iba3bd2a7d58bd68c77c02a99849e3d37646c5515
Signed-off-by: jusung <jusung07.son@samsung.com>
21 months agoModify Makefile for DIBS 45/283245/4
Hwankyu Jhun [Fri, 21 Oct 2022 00:19:18 +0000 (00:19 +0000)]
Modify Makefile for DIBS

This patch modifies Makefile for including source files automatically
in the build time without explicit adding source files.

Change-Id: I3a1a93eff9c6e4152d3d904c4f0cf6ae3b4aba24
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoRelease version 1.10.6 44/283244/1
Hwankyu Jhun [Fri, 21 Oct 2022 00:02:49 +0000 (09:02 +0900)]
Release version 1.10.6

Changes:
 - Add missing files to Makefile for MacOS

Change-Id: I598155f51533de013c403f370fdec0efbaa5eaa9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoAdd missing files to Makefile for MacOS 43/283243/2
Hwankyu Jhun [Thu, 20 Oct 2022 23:55:20 +0000 (23:55 +0000)]
Add missing files to Makefile for MacOS

Adds:
 - idlc/gen_cion/cion_plugin_base.cc
 - idlc/gen_cion/default_c_transportable.cc
 - idlc/gen_cion/default_cpp_transportable.cc
 - idlc/gen_cion/default_cs_transportable.cc
 - idlc/gen_cion/default_java_transportable.cc
 - idlc/gen_cion/java_cion_group_gen.cc
 - idlc/gen_cion/java_cion_group_repo_gen.cc
 - idlc/gen_cion/plugin_loader.cc

Change-Id: Ib6c22ef3a3b27e61893569f15bb7be59f6845f14
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoRelease version 1.10.5 41/283141/3
Changgyu Choi [Wed, 19 Oct 2022 02:00:53 +0000 (11:00 +0900)]
Release version 1.10.5

Changes:
 - [Dart] Improve dart generator

Change-Id: I7e56b4d9279e7f01416f1a000374360e90f7c656
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
21 months ago[Dart] Improve dart generator 96/283096/6
Changgyu Choi [Tue, 18 Oct 2022 05:23:27 +0000 (14:23 +0900)]
[Dart] Improve dart generator

Changes:
 - Changes some keyword names.
 - Removes unused methods.
 - Modifies README.md.

Change-Id: Ibcd6fa93ac7883a3d02b707f40c9fc202192a001
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
21 months agoRelease version 1.10.4 46/282746/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062448 accepted/tizen/7.0/unified/hotfix/20221116.105056 accepted/tizen/unified/20221012.014921 tizen_7.0_m2_release
Hwankyu Jhun [Tue, 11 Oct 2022 06:08:47 +0000 (15:08 +0900)]
Release version 1.10.4

Changes:
 - Move invocation parameters
 - Add checking nullptr
 - [Dart] Improve dart generator

Change-Id: I6c2a6de4ad0955eef22a85a60ef5bb5b190ba71a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months ago[Dart] Improve dart generator 30/282730/5
Hwankyu Jhun [Tue, 11 Oct 2022 02:29:42 +0000 (02:29 +0000)]
[Dart] Improve dart generator

The implementation of the proxy(client) is improved.
The delegate class is not exposed to the outside for developers.
The delegate function is exposed for developers.
Developers are able to register and deregister the delegate using the function.

Change-Id: I30d1ce57b1ec0f30d3844977148ea2314a345158
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 months agoAdd checking nullptr 59/282459/2
Changgyu Choi [Tue, 4 Oct 2022 04:52:06 +0000 (13:52 +0900)]
Add checking nullptr

GetMetaType() can return nullptr.
This patch adds to checking whether GetMetaType() return value is nullptr or not.

Change-Id: I8768bed1c7ed9ecd9b3ee024d2202543d4712327
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
21 months agoMove invocation parameters 50/282450/1
jh9216.park [Tue, 4 Oct 2022 03:04:04 +0000 (23:04 -0400)]
Move invocation parameters

- Some parameters can be moved to improve performance

Change-Id: Id80a74fded6b4188b23a2a4fa5fd274789ef743b
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
21 months agoRelease version 1.10.3 58/282358/1 accepted/tizen/unified/20221004.150434
Changgyu Choi [Fri, 30 Sep 2022 07:09:19 +0000 (16:09 +0900)]
Release version 1.10.3

Changes:
 - Modify dart generator implementation

Change-Id: I09715fe26352a18b35fd1e39957ba08ece21d5e2
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
21 months agoModify dart generator implementation 32/282132/10
Changgyu Choi [Tue, 27 Sep 2022 07:41:14 +0000 (16:41 +0900)]
Modify dart generator implementation

Changes:
 - Changes some method names.
 - Adds final keyword.
 - Adds type to return variable.
 - Adds disconnect() method in proxy.
 - Removes await keyword from some changed api.
 - Fix some descriptions.

Change-Id: I3b3cfb1c3b9681b4bb7b1b11c1503d56c52c4b55
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
22 months agoRelease version 1.10.2 31/281931/1 accepted/tizen/unified/20220927.132322
Hwankyu Jhun [Fri, 23 Sep 2022 08:05:20 +0000 (17:05 +0900)]
Release version 1.10.2

Changes:
 - Fix static analysis issues
 - Modify dart generator implementation
 - Fix build break issue

Change-Id: I70aacac9d3ac8597d6c13108a27710f0193454ec
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoFix build break issue 26/281926/3
jusung [Fri, 23 Sep 2022 07:28:43 +0000 (16:28 +0900)]
Fix build break issue

 - One Definition Rule [-Werror=odr]

Change-Id: I6094e0f334b80be596503b23f9e5a097fefbae39
Signed-off-by: jusung <jusung07.son@samsung.com>
22 months agoModify dart generator implementation 27/281927/1
Hwankyu Jhun [Fri, 23 Sep 2022 07:29:18 +0000 (07:29 +0000)]
Modify dart generator implementation

The onReceiveEvent() method is modified. The parameter of the method is
changed to the String from the integer.
The connectSync() method is removed from the flutter/plugins.

Change-Id: I0c232418b3941d8f6b97b2bb4d990b81a39169f6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoFix static analysis issues 17/281917/1
Hwankyu Jhun [Fri, 23 Sep 2022 06:49:15 +0000 (06:49 +0000)]
Fix static analysis issues

Issues:
 - USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE
 - INEFFECTIVE_MOVE

Change-Id: I4edeaaf8888d0a89bd7c16e5d36d6e4a18225cd9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoRelease version 1.10.1 54/281854/1 accepted/tizen/unified/20220923.052712
Hwankyu Jhun [Thu, 22 Sep 2022 10:24:17 +0000 (19:24 +0900)]
Release version 1.10.1

Changes:
 - Fix build break issues

Change-Id: Ie951966af760be5864b20e02dccac5e9a3623738
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoFix build break issues 53/281853/1
Hwankyu Jhun [Thu, 22 Sep 2022 10:11:49 +0000 (10:11 +0000)]
Fix build break issues

- Adds a missing guard of if statement
- Removes unused variables

Change-Id: Ic5b7e988261a638e842794f6c462af1cf30db30e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoRelease version 1.10.0 22/281822/1
Hwankyu Jhun [Thu, 22 Sep 2022 07:03:48 +0000 (16:03 +0900)]
Release version 1.10.0

Changes:
 - [aitt] Implement C generator
 - [aitt] Implement Java generator
 - Add missing code for cion cs generator
 - [aitt] Implement CS generator
 - Fix CallbackBase for stub
 - [aitt] Remove ondemand related API
 - Apply plugin structure to cion java group event callback
 - Apply plugin structure to cion java constructor
 - Fix aitt_plugin library path
 - [aitt] Implement Cpp generator
 - Fix the implementation related to rpc-port
 - Support Dart Language
 - Add Dart proxy generator

Change-Id: Iceb85a58c9da575e6e02b1ecc47465549a376d99
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoAdd Dart proxy generator 04/281004/22
Changgyu Choi [Wed, 7 Sep 2022 11:30:09 +0000 (20:30 +0900)]
Add Dart proxy generator

Change-Id: I439125cdf9cd8d401cbd63edef1fc1771b56ba5d
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
22 months agoSupport Dart Language 14/280614/30
Hwankyu Jhun [Thu, 1 Sep 2022 07:14:15 +0000 (07:14 +0000)]
Support Dart Language

TIDL supports Dart langauge for using RPC-Port.
After this patch is applied, tidlc generates the stub code for Dart language.

Change-Id: I5d94be9336c2092206ccab85ded8cb4776a91cb2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months agoFix the implementation related to rpc-port 46/281746/1
Hwankyu Jhun [Wed, 21 Sep 2022 09:00:09 +0000 (09:00 +0000)]
Fix the implementation related to rpc-port

- Removes unnecessary log prints
- Fixes the wrong implementation about rpc_port_parcel_header_h.

Change-Id: I0a9676c1823a372d61fb30edaab8935490780de4
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
22 months ago[aitt] Implement Cpp generator 04/279404/32
SukhyungKang [Tue, 9 Aug 2022 01:32:08 +0000 (10:32 +0900)]
[aitt] Implement Cpp generator

Change-Id: I375c50c3d17565633ffce91dc3753b2cd6de7798
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
Signed-off-by: jusung <jusung07.son@samsung.com>
22 months agoFix aitt_plugin library path 31/281031/1
Ilho Kim [Thu, 8 Sep 2022 05:13:54 +0000 (14:13 +0900)]
Fix aitt_plugin library path

Change-Id: I3ed6eece8116e63d0198a1c6c6769f7c8abeeb19
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
22 months agoApply plugin structure to cion java constructor 11/280511/5
Ilho Kim [Wed, 31 Aug 2022 06:04:44 +0000 (15:04 +0900)]
Apply plugin structure to cion java constructor

Change to add a parameter to the constructor

Change-Id: Iae27f0978f0432e0f8f5a91717e9d939345ccef5
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
22 months agoApply plugin structure to cion java group event callback 10/280510/5
Ilho Kim [Wed, 31 Aug 2022 02:26:17 +0000 (11:26 +0900)]
Apply plugin structure to cion java group event callback

Change-Id: I3348afbc16a20504f66f94160d226c81b77f756a
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
22 months ago[aitt] Remove ondemand related API 71/280571/3
Sangyoon Jang [Thu, 1 Sep 2022 01:52:19 +0000 (10:52 +0900)]
[aitt] Remove ondemand related API

Change-Id: If81bc83714d7a95e8cf693a5bb8b9803ae106888
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
22 months agoFix CallbackBase for stub 31/280531/2
Sangyoon Jang [Wed, 31 Aug 2022 08:14:34 +0000 (17:14 +0900)]
Fix CallbackBase for stub

Change-Id: Ic0b64cdf31f7855b1ccf0bcca162228c821873ce
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
22 months ago[aitt] Implement CS generator 30/279230/12
Sangyoon Jang [Wed, 20 Jul 2022 06:46:45 +0000 (15:46 +0900)]
[aitt] Implement CS generator

Change-Id: I1133a468213f3fa864b644b7fca4a6dbd9a85be3
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
23 months agoAdd missing code for cion cs generator 91/279891/2
Sangyoon Jang [Fri, 19 Aug 2022 01:00:03 +0000 (10:00 +0900)]
Add missing code for cion cs generator

Change-Id: Ib49372d83d62f0d002f2760169216d9b25741aab
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
23 months ago[aitt] Implement Java generator 02/279002/7
Ilho Kim [Fri, 29 Jul 2022 06:38:33 +0000 (15:38 +0900)]
[aitt] Implement Java generator

Change-Id: I410f3f5074b2ad5e13a4ac752cd23a00e73783bf
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
23 months ago[aitt] Implement C generator 47/278847/18
jusung [Wed, 27 Jul 2022 01:58:44 +0000 (10:58 +0900)]
[aitt] Implement C generator

Change-Id: I168ec93328da2f05e59251533fbc4a1d12eaee06
Signed-off-by: jusung <jusung07.son@samsung.com>
23 months agoRelease version 1.9.1 37/279037/1 accepted/tizen/unified/20220801.131415 submit/tizen/20220801.010618
Changgyu Choi [Mon, 1 Aug 2022 00:59:52 +0000 (09:59 +0900)]
Release version 1.9.1

Changes:
 - Fix parameter type

Change-Id: I45980e9468aec0d596d7c51e566b50c2bc36cae8
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
23 months agoFix parameter type 36/279036/1
Changgyu Choi [Mon, 1 Aug 2022 00:35:12 +0000 (09:35 +0900)]
Fix parameter type

The size prameter of bundle_get_byte() is size_t type.
So this patch changes type of size parameter to size_t.

Change-Id: I42d36d7bec06e5a6eb363e8dcdf1b12039444f62
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
23 months agoRelease version 1.9.0 81/278981/2 submit/tizen/20220729.020211
Changgyu Choi [Fri, 29 Jul 2022 01:55:01 +0000 (10:55 +0900)]
Release version 1.9.0

Changes:
 - Implement basic plugin structure
 - Adjust plugin structure for type c
 - Adjust plugin structure for type cpp
 - Adjust plugin structure for type java
 - Adjust plugin structure for type c#
 - Add options for aitt
 - Implement cpp group generator
 - Remove useless code
 - Implement C group generator
 - Fix build error for generated C# code
 - Implement C# group generator
 - Fix typo
 - Remove the constructor

Change-Id: Iabf6f3afc3e27960a2eabcf5fa9574de6a586f41
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
2 years agoMerge "Remove the constructor" into tizen
Junghoon Park [Wed, 20 Jul 2022 07:49:04 +0000 (07:49 +0000)]
Merge "Remove the constructor" into tizen

2 years agoRemove the constructor 49/278349/6
jh9216.park [Tue, 19 Jul 2022 10:44:25 +0000 (06:44 -0400)]
Remove the constructor

- Remove the constructor to force it to use the sender apppid

Change-Id: I19bd50e00ff98b37b6b8fb955a6d7dab93e09443
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoFix typo 64/278364/1
SukhyungKang [Tue, 19 Jul 2022 23:00:42 +0000 (08:00 +0900)]
Fix typo

Change-Id: I52b14f36000eb31faef965cabbf5c57f7ea82cd6
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
2 years agoImplement C# group generator 45/277945/10
jh9216.park [Fri, 15 Jul 2022 07:10:36 +0000 (03:10 -0400)]
Implement C# group generator

Change-Id: Icefd3413c98c7d0bfe266803f42481f81d6931c7
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoFix build error for generated C# code 07/278007/1
jh9216.park [Mon, 18 Jul 2022 05:04:26 +0000 (01:04 -0400)]
Fix build error for generated C# code

Change-Id: Ic8a97abcae591c1270ea2bf060e8f6ca4b0f5c1f
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoImplement C group generator 46/277846/8
jh9216.park [Thu, 14 Jul 2022 05:34:58 +0000 (01:34 -0400)]
Implement C group generator

Change-Id: Ic6aff811dd557b37aa01ccd35006456ec99d2410
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoRemove useless code 23/277823/2
jh9216.park [Wed, 13 Jul 2022 23:21:51 +0000 (19:21 -0400)]
Remove useless code

- There is no sync method or delegate type in group mode, we don't need
to consider them

Change-Id: I6c2b39851acc4dd6b2c84300e3d1c98e820bc519
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoImplement cpp group generator 83/277483/11
jh9216.park [Thu, 7 Jul 2022 10:25:54 +0000 (06:25 -0400)]
Implement cpp group generator

Change-Id: I4348aa75ed30d666bf1ae794ad6690a13fe8bb17
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoAdd options for aitt 36/277536/3
Sangyoon Jang [Fri, 8 Jul 2022 04:53:09 +0000 (13:53 +0900)]
Add options for aitt

Change-Id: Icaed487ff809222553cfb521837039f3ed104706
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoAdjust plugin structure for type c# 50/273750/3
Sangyoon Jang [Wed, 13 Apr 2022 08:01:37 +0000 (17:01 +0900)]
Adjust plugin structure for type c#

Change-Id: Id5db0f951b8dde25112400c5ac57aa7718a3d622
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoAdjust plugin structure for type java 52/273552/1
Ilho Kim [Mon, 4 Apr 2022 04:02:16 +0000 (13:02 +0900)]
Adjust plugin structure for type java

Change-Id: I734986e3452c82ac55fc624915e4efb7d554df8d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdjust plugin structure for type cpp 53/271653/10
Ilho Kim [Thu, 24 Feb 2022 04:51:23 +0000 (13:51 +0900)]
Adjust plugin structure for type cpp

Change-Id: Icc369ebdc7bbf0a57ea22190ef27724adf54625b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoAdjust plugin structure for type c 52/271652/8
Ilho Kim [Thu, 24 Feb 2022 04:43:38 +0000 (13:43 +0900)]
Adjust plugin structure for type c

Change-Id: I1d11cd59b6bd63d9986719e786146fc0f1612470
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoImplement basic plugin structure 51/271651/3
Ilho Kim [Thu, 24 Feb 2022 04:59:10 +0000 (13:59 +0900)]
Implement basic plugin structure

Change-Id: I9f112e443815644af4d95381956a69f0fadaac7d
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
2 years agoRelease version 1.8.1 19/271419/1 accepted/tizen/unified/20220221.235540 submit/tizen/20220221.041512
Hwankyu Jhun [Mon, 21 Feb 2022 04:02:12 +0000 (13:02 +0900)]
Release version 1.8.1

Changes:
 - [cion] Implement java group generator
 - Fix a bug about delegate invoke method

Change-Id: I49a44104d26dbc81b4d12d43bb13286f18b17d13
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix a bug about delegate invoke method 12/271412/1
Hwankyu Jhun [Mon, 21 Feb 2022 03:30:00 +0000 (12:30 +0900)]
Fix a bug about delegate invoke method

The first parcel data has to be <UPPERCASE_PREFIX>_<UPPERCASE_NAME>_METHOD_CALLBACK_.

Change-Id: If4bc8bc64eec007117fa7e3236655cf6608a1212
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years ago[cion] Implement java group generator 03/270303/5
jusung [Fri, 28 Jan 2022 01:00:04 +0000 (10:00 +0900)]
[cion] Implement java group generator

Change-Id: I24968e0107e5228ad242950a168e4f3589e0c747
Signed-off-by: jusung <jusung07.son@samsung.com>
2 years agoRelease version 1.8.0 84/270984/2 accepted/tizen/unified/20220216.010312 submit/tizen/20220214.004104 submit/tizen/20220214.231832
Hwankyu Jhun [Mon, 14 Feb 2022 00:24:15 +0000 (09:24 +0900)]
Release version 1.8.0

Changes:
 - Add ReplaceAll() using std::initialize_list<>
 - Add compiler option '-b'
 - Fix type
 - Refactor AST
 - [cion] Release handles
 - [cion] Implement C group generator
 - Change constructor to make sure the ownership
 - [cion] Implement C++ group generator
 - Introduce class 'Inject'
 - Refactor ReplaceAll
 - Fix exeption handling of stub code of C generator
 - [cion] Implement C# group generator
 - Fix cion C++ generator
 - Refactor c++ generator
 - Fix crash issue
 - Generate security setup for cion cpp code
 - Refactor GenInvocation() for c++ generator
 - Fix Makefile for DIBS

Change-Id: If69918c623b0e00b3f0db8d34fe38982ed050048
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix Makefile for DIBS 83/270983/1
Hwankyu Jhun [Mon, 14 Feb 2022 00:21:56 +0000 (09:21 +0900)]
Fix Makefile for DIBS

- Add missing files

Change-Id: I6d4569e3defb5a809b23e24b18e4376098f68eb8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRefactor GenInvocation() for c++ generator 04/270104/3
jh9216.park [Wed, 26 Jan 2022 01:13:01 +0000 (20:13 -0500)]
Refactor GenInvocation() for c++ generator

- Make it as one block for readability and maintenance

Change-Id: Iaccfd46bd287436200bb1e88fb448c88cc9c504c
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoGenerate security setup for cion cpp code 03/270003/3
Sangyoon Jang [Mon, 24 Jan 2022 05:59:31 +0000 (14:59 +0900)]
Generate security setup for cion cpp code

Change-Id: I2ba76e0219418df0440fb2273e0de27e3ad11eab
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix crash issue 09/270009/2
Hwankyu Jhun [Mon, 24 Jan 2022 06:34:41 +0000 (15:34 +0900)]
Fix crash issue

Before calling Add() method, the ptr should be checked.

Change-Id: I1cf5e1c95f2eb104778e9352f758819b51a9780c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoMerge "Refactor c++ generator" into tizen
Junghoon Park [Mon, 24 Jan 2022 06:02:04 +0000 (06:02 +0000)]
Merge "Refactor c++ generator" into tizen

2 years agoRefactor c++ generator 91/269991/2
jh9216.park [Mon, 24 Jan 2022 04:44:55 +0000 (23:44 -0500)]
Refactor c++ generator

- Replace 'GenTemplate' to 'ReplaceAll'

Change-Id: I81e1b0e6925377032849b04529e46e55ec4f1e19
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoFix cion C++ generator 40/269540/3
Sangyoon Jang [Tue, 18 Jan 2022 05:52:02 +0000 (14:52 +0900)]
Fix cion C++ generator

Add a parameter(peerinfo) for method handler.

Change-Id: I36a3fb7f2a8ec16e72e1a527a7ba79f3a6f4f624
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years ago[cion] Implement C# group generator 33/269433/12
Sangyoon Jang [Thu, 13 Jan 2022 03:33:37 +0000 (12:33 +0900)]
[cion] Implement C# group generator

Change-Id: I2059365150a1b27316caf17173d13014e5e9b0fb
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix exeption handling of stub code of C generator 72/269872/1
Hwankyu Jhun [Fri, 21 Jan 2022 05:33:54 +0000 (14:33 +0900)]
Fix exeption handling of stub code of C generator

- Add stub ptr check to the deregistration function
- Change function call to g_rec_mutex_clear() in the registeration function

Change-Id: I360083e4404e7935dd63eabbba540b3901ee9cd8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRefactor ReplaceAll 47/269447/7
jh9216.park [Fri, 14 Jan 2022 08:37:26 +0000 (03:37 -0500)]
Refactor ReplaceAll

Change-Id: I9591411f238d09315f8aeb201d31869ebbf2de23
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoIntroduce class 'Inject' 12/269412/3
jh9216.park [Fri, 14 Jan 2022 02:59:50 +0000 (21:59 -0500)]
Introduce class 'Inject'

- It changes lamda function to string
- example
  stream << ReplaceAll(ctor, {
      { "<CLS_NAME>", st.GetID() },
      { "<PARAMS>", Inject([&]() {
            std::string str;
            for (auto& i : v) {
              str += i.first + " " + i.second;
              if (i != v.back())
                str += ", ";
            }
            return str;
          })
      },
      { "<INIT>", Inject([&]() {
            std::string str;
            for (auto& i : v) {
              str += i.second + "_(std::move(" + i.second + "))";
              if (i != v.back())
                str += ", ";
            }
            return str;
          })
      }
  });

Change-Id: I97f065d14a77255ad233b4d7dc7c30298e85e20e
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoMerge "[cion] Implement C++ group generator" into tizen
Sangyoon Jang [Wed, 12 Jan 2022 10:00:40 +0000 (10:00 +0000)]
Merge "[cion] Implement C++ group generator" into tizen

2 years ago[cion] Implement C++ group generator 68/268968/18
Sangyoon Jang [Wed, 5 Jan 2022 10:22:58 +0000 (19:22 +0900)]
[cion] Implement C++ group generator

Change-Id: Ice1de40ddb75fb9619811924ff88412359e2cdae
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoChange constructor to make sure the ownership 51/269251/1
jh9216.park [Wed, 12 Jan 2022 04:57:00 +0000 (23:57 -0500)]
Change constructor to make sure the ownership

- If the input parameter is pointer type, it is difficult to know which
side to release from
- As std::unique_ptr<> is movable but not copiable, the ownership can be
moved clearly

Change-Id: I9cceb1274943f961e27a2d3798b7355c51448211
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoMerge "[cion] Implement C group generator" into tizen
jusung son [Fri, 7 Jan 2022 06:56:18 +0000 (06:56 +0000)]
Merge "[cion] Implement C group generator" into tizen

2 years ago[cion] Implement C group generator 80/268580/6
jusung [Mon, 27 Dec 2021 07:30:59 +0000 (16:30 +0900)]
[cion] Implement C group generator

Change-Id: Ice250308333c7a6769778eb1b3ecb779ca43a329
Signed-off-by: jusung <jusung07.son@samsung.com>
2 years ago[cion] Release handles 38/268938/3
SukhyungKang [Wed, 5 Jan 2022 04:08:51 +0000 (13:08 +0900)]
[cion] Release handles

Change-Id: I6cff4fd28446dfa49aeaccac0d179d9ecedb72cf
Signed-off-by: SukhyungKang <shine.kang@samsung.com>
2 years agoRefactor AST 93/268693/2
jh9216.park [Thu, 30 Dec 2021 02:41:30 +0000 (21:41 -0500)]
Refactor AST

- Make some containers iterable
- Signature change for some methods

Change-Id: I6213264eeb18c7ebcc99b86304bc7bb344cb05e3
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoFix type 40/267640/1
jh9216.park [Wed, 8 Dec 2021 06:35:07 +0000 (01:35 -0500)]
Fix type

Change-Id: Iaaf2188ad0d59983bdfddabf7f7c6fdef46fc971
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoAdd compiler option '-b' 61/267461/1
jh9216.park [Mon, 6 Dec 2021 00:19:28 +0000 (19:19 -0500)]
Add compiler option '-b'

The build test for cion needs option '-b' to handle type 'file'

Change-Id: I30adb0a8a6b780eb61af437578c2f34a60cfa3df
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoAdd ReplaceAll() using std::initialize_list<> 46/267346/2
jh9216.park [Thu, 2 Dec 2021 04:58:53 +0000 (23:58 -0500)]
Add ReplaceAll() using std::initialize_list<>

Change-Id: I1d3060de7800ea19f593625485232e77992cede9
Signed-off-by: jh9216.park <jh9216.park@samsung.com>
2 years agoRelease version 1.7.7 99/266999/1 accepted/tizen/unified/20211126.111847 submit/tizen/20211123.234834 submit/tizen/20211124.042716 submit/tizen/20211125.000439
Hwankyu Jhun [Tue, 23 Nov 2021 23:48:47 +0000 (08:48 +0900)]
Release version 1.7.7

Changes:
 - Fix static anlaysis issues

Change-Id: I4fdb54911c2e0fbf58bc5ec9ce3b9aab14ba9e55
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix static anlaysis issues 97/266997/1
Hwankyu Jhun [Tue, 23 Nov 2021 23:44:13 +0000 (08:44 +0900)]
Fix static anlaysis issues

- Use after free

Change-Id: I4d227d2b823bc3740df4a8e390d5201546330539
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 1.7.6 71/266871/1
Hwankyu Jhun [Mon, 22 Nov 2021 03:19:03 +0000 (12:19 +0900)]
Release version 1.7.6

Changes:
 - Fix static anlaysis issues
 - Fix resource leak

Change-Id: I2f6cf2144673289055264a4b29894e68992beb07
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix resource leak 68/266868/1
Hwankyu Jhun [Mon, 22 Nov 2021 02:23:25 +0000 (11:23 +0900)]
Fix resource leak

Change-Id: I002aaf32928c912cbd41715b6a6415eee5e0fcd9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix static anlaysis issues 66/266866/1
Hwankyu Jhun [Mon, 22 Nov 2021 01:36:37 +0000 (10:36 +0900)]
Fix static anlaysis issues

- DEREF_OF_NULL
- UNINIT

Change-Id: Id12b76a7d40a9a7df299b03c9aed2f10209d99df
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 1.7.5 27/266827/1 submit/tizen/20211119.063348
Hwankyu Jhun [Fri, 19 Nov 2021 06:22:54 +0000 (15:22 +0900)]
Release version 1.7.5

Changes:
 - Fix static analysis issues
 - Remove a trailing space
 - Fix static analysis issues

Change-Id: If8209c746fb4519f9126c6ad5fd24386741bec4a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoFix static analysis issues 24/266824/2
Sangyoon Jang [Fri, 19 Nov 2021 05:21:22 +0000 (14:21 +0900)]
Fix static analysis issues

Change-Id: I65a4b531d37378b6e4e113f24718442c781d2a07
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoRemove a trailing space 23/266823/1
Sangyoon Jang [Fri, 19 Nov 2021 05:21:00 +0000 (14:21 +0900)]
Remove a trailing space

Change-Id: I4a0735324a7ce009846f50ccf4aa89a30939b171
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
2 years agoFix static analysis issues 02/266802/1
Hwankyu Jhun [Fri, 19 Nov 2021 00:11:23 +0000 (09:11 +0900)]
Fix static analysis issues

- Use after free
- Resource leak

Change-Id: I5483ac575b66fe12eec08a82382127d829c78da1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
2 years agoRelease version 1.7.4 93/266493/1
Hwankyu Jhun [Fri, 12 Nov 2021 12:42:52 +0000 (21:42 +0900)]
Release version 1.7.4

Changes:
 - Update version to 7.0
 - Fix C# generator for cion

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