summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Junghoon Park [Fri, 9 Mar 2018 06:59:12 +0000 (15:59 +0900)]
Add compiler version
-v, --version Show version information
Change-Id: I95fb5147c68b92aa16f666a136693bc2622d2970
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Thu, 8 Mar 2018 06:21:27 +0000 (15:21 +0900)]
Add header files for code block
Change-Id: Ie9047adc7314fa0bcacfce41a0900b3a4d7dc2d6
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Thu, 8 Mar 2018 06:50:32 +0000 (15:50 +0900)]
Fix C Generator
- Fixes implementation of array type
Change-Id: Ibde6fdaea6fd185a483336fab2fabcc863b0ef37
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 7 Mar 2018 23:35:44 +0000 (08:35 +0900)]
Fix bugs of C generator
- Removes hardcoded strings
- Fixes wrong variable types
- Fixes wrong arguments
- Fixes wrong write strings
Change-Id: Ie4c8459a0b8a211420d5508faedaff87fff9022a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 6 Mar 2018 10:25:55 +0000 (19:25 +0900)]
Fix C Generator
- Fixes wrong exceptions
- Adjusts coding style(Fix naming rules)
"rpc_port_create_<name>()" => "rpc_port_<name>_create()"
Change-Id: Iff0d6ca50a4eb1f3a58e2a143050de6ca00f8495
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 5 Mar 2018 05:57:34 +0000 (14:57 +0900)]
Fix C# generator
- Fixes calling serialize/deserialize methods
Change-Id: I090cbeb7a530f2b8e8a7323babd57bc11fd7cc40
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 5 Mar 2018 04:28:39 +0000 (13:28 +0900)]
Fix bugs of c generator
- Fixes a wrong indentation
- Fixes wrong parameters
- Fixes header generator base
Change-Id: I63d7c4572e99aa78582218e3ff8bb5b713bb0251
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 2 Mar 2018 02:12:34 +0000 (11:12 +0900)]
Release verion 0.1.1
Changes:
- Add IDL Compiler
- Add grammar for list type
- Add structure for custom type
- Adjust directory structure
- Fix typo
- Add unit tests
- Add Parser unit test
- Handle tidl error
- Support annotations
- Add language option
- Change parameter types for r-value reference
- Change attribute token name
- Generate c# code
- Separate C# generator
- Support attributes for access control
- Support delegate syntax
- Provide utility API to generate code easily
- Add basic structure for generators
- Change the method to template method to support closure expression
- Change file name
- Implement c# stub generator (interface part)
- Implement c# proxy generator (interface part)
- Generate access-control code for c# stub generator
- Support 'delegate' syntax
- Handle returned data
- Make stub disposable
- Modify grammar to support empty parameter
- Fix bug to use another constructor in stub
- Fix checking handles
- move test to %check section in spec file
- Use CMAKE_SOURCE_DIR macro for local build
- Make generated APIs thread-safe
- for checking line coverage
- Remove code block API
- Fix interop method
- Add type 'array<>'
- Implement C Generator (Structure Part)
- Implement C++ Generator (Structure Part)
- Refactor c++ generator (struct part)
- Add weak reference to delegate object
- Find services using instance id
- Implement C Stub Generator (Interface part)
- Implement c++ proxy generator (interface part)
- Implement C Proxy Generator (Interface part)
- Fix a bug about stub method handler
- Implement c++ stub generator (interface part)
- Add the file name extension '.cs' for C# stub generator
- Change parameter type for callback
- Fix C Stub Generator
- Fix C Body Generator (Structure part)
- Call access-control API
- Fix C Generator
- Fix a bug about C Stub Generator
Change-Id: I54be4ffd278c6acfaf8beb946556eee463dffdbf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 2 Mar 2018 02:01:48 +0000 (11:01 +0900)]
Fix a bug about C Stub Generator
- Removes hardcoded interface name
Change-Id: I23364f37d6e230a4196f348e15eac9b8f8ce3095
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 28 Feb 2018 07:34:54 +0000 (16:34 +0900)]
Fix C Generator
- Adjusts coding style
e.g. "void* value;" => "void *value;"
Change-Id: I53288bdb591d5ea9296f276cb60eb5b104dad440
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Fri, 2 Mar 2018 00:27:14 +0000 (09:27 +0900)]
Call access-control API
Change-Id: I47fde8d5d3093d5839497820784a69d55d4f653c
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Wed, 28 Feb 2018 03:51:38 +0000 (12:51 +0900)]
Fix C Body Generator (Structure part)
- Uses ReplaceAll method to reduce duplicated codes
Change-Id: I8006a6244d28a92586dc1a6b14d8da2e621e87b7
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 28 Feb 2018 02:44:16 +0000 (11:44 +0900)]
Fix C Stub Generator
- Seperates adding privileges function from registering function
Change-Id: I5ca9710f0c5de4fd353fb9b26807ad292edb6751
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Tue, 27 Feb 2018 11:21:34 +0000 (20:21 +0900)]
Change parameter type for callback
- The callback type should be a pointer which has ownership
Change-Id: Ib0b580bc8d96edb4b935933d6ea5040d28f094c3
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Tue, 27 Feb 2018 07:28:08 +0000 (16:28 +0900)]
Add the file name extension '.cs' for C# stub generator
Change-Id: I5b7f33843970e687834a097c6603c02d457a4986
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Tue, 27 Feb 2018 07:08:29 +0000 (07:08 +0000)]
Merge "Implement c++ stub generator (interface part)" into tizen
Junghoon Park [Fri, 23 Feb 2018 08:27:39 +0000 (17:27 +0900)]
Implement c++ stub generator (interface part)
Change-Id: I1af1ef89b82a9e91581f29eabcb9fc91fc3d7c17
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Tue, 27 Feb 2018 06:18:05 +0000 (15:18 +0900)]
Fix a bug about stub method handler
Change-Id: Ib003e816cd4c9756661f41713365fc93907fde97
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Fri, 23 Feb 2018 09:41:03 +0000 (18:41 +0900)]
Implement C Proxy Generator (Interface part)
Change-Id: I0d3419ee6da56834e73a858bf114c64bb1db2c0b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Fri, 23 Feb 2018 06:00:40 +0000 (15:00 +0900)]
Implement c++ proxy generator (interface part)
Change-Id: Ie47e0196d2e2e87f37b9352b88600c877517faca
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Thu, 22 Feb 2018 05:39:10 +0000 (14:39 +0900)]
Implement C Stub Generator (Interface part)
Change-Id: I1af21520740434ce28ae68d8827aa68066e23480
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Thu, 22 Feb 2018 00:36:07 +0000 (09:36 +0900)]
Find services using instance id
- Require:
https://review.tizen.org/gerrit/#/c/170718/
Change-Id: I5521a93a157b1417748ee40197254b81f55d24ca
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Wed, 21 Feb 2018 01:33:48 +0000 (10:33 +0900)]
Add weak reference to delegate object
- The weak reference of service object was added to check if it is valid or
not
Change-Id: I39fb246d1d220c9af0bdd8d1cb4aa3af69091a35
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Wed, 14 Feb 2018 04:46:36 +0000 (13:46 +0900)]
Refactor c++ generator (struct part)
Change-Id: Ic959a3034da42abf86ae27adde5a86afeede1a30
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Inkyun Kil [Thu, 1 Feb 2018 10:44:53 +0000 (19:44 +0900)]
Implement C++ Generator (Structure Part)
Change-Id: Iad229d72ffe5f672e35e0e12c626f3f48ea851cd
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Hwankyu Jhun [Thu, 1 Feb 2018 07:26:35 +0000 (16:26 +0900)]
Implement C Generator (Structure Part)
Change-Id: I594485400ecee5791eba13c14a0fba2526b81abe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Mon, 12 Feb 2018 06:03:57 +0000 (15:03 +0900)]
Add type 'array<>'
Change-Id: Id0d6a6ce4b39fb6d89022e3a1c8d3230c4b94236
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Fri, 9 Feb 2018 04:04:22 +0000 (13:04 +0900)]
Fix interop method
Change-Id: Ic1690b2a86dda80f1d6c146c39b9720758a6b9b7
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Thu, 8 Feb 2018 08:55:27 +0000 (17:55 +0900)]
Remove code block API
Change-Id: I61effeddd6a792c707ab587dc7154c3471a4de14
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Youngjae Shin [Tue, 30 Jan 2018 07:47:12 +0000 (16:47 +0900)]
for checking line coverage
usage: gbs build -A armv7l --define "gcov ON"
Change-Id: Id12cf253bb5422bfe194be571d7c05bf2114f6c3
Junghoon Park [Tue, 30 Jan 2018 09:44:39 +0000 (18:44 +0900)]
Make generated APIs thread-safe
Change-Id: I63c7998e99ec90ffc24cd52a77c946590b0a7391
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Tue, 30 Jan 2018 00:17:10 +0000 (09:17 +0900)]
Use CMAKE_SOURCE_DIR macro for local build
Change-Id: Ic4d2e3d5d2fd3071e9b27212e69ac9724e85e1d9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Youngjae Shin [Tue, 23 Jan 2018 07:24:11 +0000 (16:24 +0900)]
move test to %check section in spec file
Change-Id: I659a8572d4efeac6470b7fbdb0b4f9e0239f9fb3
Junghoon Park [Thu, 25 Jan 2018 01:52:40 +0000 (10:52 +0900)]
Fix checking handles
- IntPtr should be checked by IntPtr.Zero because it is value type
- Add an exception handler to avoid invalid type at 'Listen' method
Change-Id: I6f5613e6d27050e3b0c314ff5c24e0c6f9ff5303
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Wed, 24 Jan 2018 07:15:30 +0000 (16:15 +0900)]
Fix bug to use another constructor in stub
- Stub should use the constructor which has a parameter port in case of
'delegate' type
Change-Id: I9f5ad93f886534126a5011f560bb924395f9e675
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Wed, 24 Jan 2018 01:49:27 +0000 (10:49 +0900)]
Modify grammar to support empty parameter
Change-Id: Ic2eb0b0f508ae496a5c71002df3d524d43a18797
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Mon, 22 Jan 2018 08:18:39 +0000 (17:18 +0900)]
Make stub disposable
Change-Id: Idfbfca6414dc5b245c1b3ee445e6aaf4f263949e
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Wed, 17 Jan 2018 08:41:00 +0000 (17:41 +0900)]
Handle returned data
When the proxy app is sending some request to the stub app, the stub app may try
to send callback data at the same time.
This path will make it possible to handle callback events to get the result
data.
Change-Id: Idb11a6efe630e055efbfef5aeaecd178a70e6da1
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Tue, 16 Jan 2018 11:02:40 +0000 (20:02 +0900)]
Support 'delegate' syntax
Change-Id: Ia1daf2d2ee9a4b5a36442b4f2c326bd8e1b435af
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Wed, 10 Jan 2018 08:18:00 +0000 (17:18 +0900)]
Generate access-control code for c# stub generator
Change-Id: Id983e207e3fbfd0215a36d1dc3075f8ef8ce8f69
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Thu, 4 Jan 2018 07:38:38 +0000 (16:38 +0900)]
Implement c# proxy generator (interface part)
Change-Id: I08453fe5c2a4cb0be23af3428e9bc8304e5aa84e
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Tue, 2 Jan 2018 08:32:08 +0000 (17:32 +0900)]
Implement c# stub generator (interface part)
Change-Id: I0a472a05ebd8675dd355a06263937775b96db537
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Fri, 22 Dec 2017 01:14:18 +0000 (10:14 +0900)]
Change file name
- Removes unnecessary space
Change-Id: I6e5c5ab980243ee413d0d7b9056257a055e04964
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Thu, 21 Dec 2017 04:27:36 +0000 (13:27 +0900)]
Change the method to template method to support closure expression
Change-Id: Iefda736028dcee42065e0955ff17e8724afbfef0
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Wed, 20 Dec 2017 08:56:14 +0000 (17:56 +0900)]
Add basic structure for generators
Change-Id: If2b4639096a52c53aaebc61aa34ffeaffcdb534f
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Junghoon Park [Wed, 20 Dec 2017 01:36:02 +0000 (10:36 +0900)]
Provide utility API to generate code easily
Change-Id: I830acd782dce83eb1375cdb78c8f73b60b570de9
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Wed, 20 Dec 2017 02:01:15 +0000 (11:01 +0900)]
Support delegate syntax
Change-Id: Idc51e11494f164f7ca9abed8d650aad10ff629c5
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 18 Dec 2017 10:58:11 +0000 (19:58 +0900)]
Support attributes for access control
Change-Id: I79552ae01fd7fe40df5421cdea92e6fe70c1e3fe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 19 Dec 2017 10:59:46 +0000 (19:59 +0900)]
Separate C# generator
Change-Id: I3ad683553caad8adc8163b34f39ed73151332323
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Mon, 18 Dec 2017 07:25:37 +0000 (16:25 +0900)]
Generate c# code
- generate syntax 'struct'
Change-Id: I1aca97a8f9718bbb784617543269e9fd14de043c
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Sun, 17 Dec 2017 23:33:23 +0000 (08:33 +0900)]
Change attribute token name
- "Attribute" is changed to "Element".
- After this patch is applied, "Attribute" will be used
for access control(privilege).
Change-Id: I15b5401cea4672ae9854e84f5605917568f19463
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Fri, 15 Dec 2017 08:37:16 +0000 (17:37 +0900)]
Change parameter types for r-value reference
Change-Id: Id0010cd7cd20a6ae7d68afe5f76f269329c4c38b
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Tue, 12 Dec 2017 07:12:05 +0000 (16:12 +0900)]
Add language option
+-----------------------------------------------------------+
| Usage: |
| tidlc [OPTION...] |
| |
| Options: |
| -p, --proxy Generate proxy code |
| -s, --stub Generate stub code |
| |
| Additional Options: |
| -l, --language=LANGUAGE Select generating language |
| -i, --input=INPUT a tidl interface file. |
| -o, --output=OUTPUT The generated interface file. |
+-----------------------------------------------------------+
Change-Id: I245d41636ada7409270054d971c9b97050391b94
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 7 Dec 2017 00:34:27 +0000 (09:34 +0900)]
Support annotations
Change-Id: Iab176142fa6cb5bded66f01ea8092732a84b01a6
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 30 Nov 2017 08:05:22 +0000 (17:05 +0900)]
Handle tidl error
Change-Id: I99cad4085bc1ab6d4ea8a70abeb88955eb2e8d78
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Tue, 28 Nov 2017 01:06:03 +0000 (10:06 +0900)]
Add Parser unit test
Change-Id: Ife5d85b74354d90f9213c151678095b26391e7d1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 22 Nov 2017 01:18:21 +0000 (10:18 +0900)]
Add unit tests
- Adds a script for unit tests
+-----------------------------------------------------------+
| Usage: unit_tests.sh <command> |
| Commands: |
| - build Build the unit tests |
| - clean Clean all artifacts |
| - run Run the unit tests |
| - full Build & Run the unit tests |
+-----------------------------------------------------------+
Change-Id: I2270356d7dd99aea07947b5a42fc8979c8ec823c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Thu, 23 Nov 2017 00:11:33 +0000 (09:11 +0900)]
Fix typo
Change-Id: I2dc2de4a6ac17d7e9e63967e28689e5553ec321a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Wed, 22 Nov 2017 00:58:39 +0000 (09:58 +0900)]
Adjust directory structure
Change-Id: I09589c915dae34f0a455c27117c8b6eb2d71a516
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hwankyu Jhun [Mon, 20 Nov 2017 10:48:06 +0000 (19:48 +0900)]
Add structure for custom type
Change-Id: I2848a9e44d9a5a1151b44b5d8c30c73f0aa3d4c1
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Junghoon Park [Thu, 16 Nov 2017 10:44:27 +0000 (19:44 +0900)]
Add grammar for list type
Change-Id: Ib331e760382af98d63ba5c5352a567c1514249d6
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Hwankyu Jhun [Wed, 8 Nov 2017 01:09:50 +0000 (10:09 +0900)]
Add IDL Compiler
Change-Id: I6bb1d2e46982140bb6790937ee2dfedd8261572d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Signed-off-by: Junghoon Park <jh9216.park@samsung.com>
Tizen Infrastructure [Fri, 3 Nov 2017 09:44:40 +0000 (09:44 +0000)]
Initial empty repository