platform/core/api/vine.git
2 years agoUse snprintf() instead of sprintf() 28/270128/1
Seonah Moon [Wed, 26 Jan 2022 04:53:36 +0000 (13:53 +0900)]
Use snprintf() instead of sprintf()

Change-Id: Iaad7f92e36941bbe2eac55f941e9ad24e79be703

2 years agoAllocates the memory of epoll events dynamically 13/269413/1 accepted/tizen/unified/20220117.134949 submit/tizen/20220114.040901
Seonah Moon [Fri, 14 Jan 2022 02:41:32 +0000 (11:41 +0900)]
Allocates the memory of epoll events dynamically

Change-Id: Ic657c08e495eeeac2091d5a24854dfc95f1b6a8d

2 years agoUse rand_r() instead of rand() 42/269042/1 accepted/tizen/unified/20220110.135924 submit/tizen/20220107.035040
Seonah Moon [Fri, 7 Jan 2022 03:46:21 +0000 (12:46 +0900)]
Use rand_r() instead of rand()

Change-Id: Ia8f78ddbb84aba767d5aef810b7602be2e6748be

2 years agoUpdate libwebsockets headers for v4.3-stable 90/268990/1
Seonah Moon [Thu, 6 Jan 2022 05:03:48 +0000 (14:03 +0900)]
Update libwebsockets headers for v4.3-stable

Change-Id: I78adee9a9882c24160c2b1b0728855f747444430

2 years agoUpgrade libwebsockets to v4.3-stable 94/268694/2 accepted/tizen/unified/20211231.161332 submit/tizen/20211230.054603
Seonah Moon [Thu, 30 Dec 2021 03:05:34 +0000 (12:05 +0900)]
Upgrade libwebsockets to v4.3-stable

Upgrade libwebsockets to a stabilized version.
This version also includes a solution to the problem
that LWS_CALLBACK_DEL_POLL_FD is called twice for the same fd.

- https://libwebsockets.org/git/libwebsockets/tree/?h=v4.3-stable
- https://github.com/warmcat/libwebsockets/issues/2500
- related issue: https://review.tizen.org/gerrit/#/c/platform/core/api/vine/+/268676/

Change-Id: I8649ee843f102232206693dfbbdba08cee4a2eae

2 years agoAdd prebuilt lws library for armv7hl 99/267299/1 accepted/tizen/unified/20211202.120708 submit/tizen/20211201.112105
cheoleun moon [Wed, 1 Dec 2021 06:16:08 +0000 (15:16 +0900)]
Add prebuilt lws library for armv7hl

Change-Id: Icb46e9298b4ee5ff56f740a8f352e4dd33d2f0bb
Signed-off-by: cheoleun moon <chleun.moon@samsung.com>
2 years agoDo not pack pkgconfig for libwebsockets 89/267289/1 submit/tizen/20211201.045926
cheoleun moon [Wed, 1 Dec 2021 04:48:48 +0000 (13:48 +0900)]
Do not pack pkgconfig for libwebsockets

Change-Id: I9d596614b6c1a9531211b885522efe63f4ed7a04
Signed-off-by: cheoleun moon <chleun.moon@samsung.com>
2 years agoDo not open default server socket 82/267282/2
Seonah Moon [Wed, 1 Dec 2021 03:46:10 +0000 (12:46 +0900)]
Do not open default server socket

Vine uses own vhosts afterwards using lws_create_vhost().

Change-Id: Idd5ac85b5871166a4d36277d2ef4d2eee6363bcd

2 years agoDo not use vsnprintf twice 22/267122/1 submit/tizen/20211126.024755 submit/tizen/20211129.010432 submit/tizen/20211130.020503
cheoleun moon [Fri, 26 Nov 2021 02:45:36 +0000 (11:45 +0900)]
Do not use vsnprintf twice

Change-Id: Icb20f77ee2c2992b0fe91b814705f2eba7e4ad8d
Signed-off-by: cheoleun moon <chleun.moon@samsung.com>
2 years agoDo not use prebuilt lws library 66/267066/1 submit/tizen/20211125.083424
cheoleun moon [Thu, 25 Nov 2021 03:03:04 +0000 (12:03 +0900)]
Do not use prebuilt lws library

Change-Id: If6b3d38c5902714344e4f4a52f3a4d7ed26e752c
Signed-off-by: cheoleun moon <chleun.moon@samsung.com>
2 years agoChange the type of validator to long long 52/265752/1 accepted/tizen/unified/20211028.122143 submit/tizen/20211028.062653
cheoleun moon [Thu, 28 Oct 2021 05:31:02 +0000 (14:31 +0900)]
Change the type of validator to long long

Change-Id: I4125ddc2cc4e877e2e9f6b546a92543473af2b56

2 years agoFix unitest for dp 46/265746/1
cheoleun moon [Thu, 28 Oct 2021 03:44:40 +0000 (12:44 +0900)]
Fix unitest for dp

Change-Id: I1433bb218e80db78a9b79617696edbdac75373dc

2 years agoFix memory leak 99/265599/1 submit/tizen/20211028.034129
cheoleun moon [Mon, 25 Oct 2021 02:13:17 +0000 (11:13 +0900)]
Fix memory leak

Change-Id: Ie4b2316aa3fff87b23cd45a839f0c53298fee7a8

2 years agoUpgrade version to 1.1.10 67/265567/2
cheoleun moon [Fri, 22 Oct 2021 06:35:54 +0000 (15:35 +0900)]
Upgrade version to 1.1.10

Change-Id: Ic11b0679b4e537a36d4d0d2be2ea33712c132f7d

2 years agoIncrease max fd counts to 1024 56/265556/2
cheoleun moon [Fri, 22 Oct 2021 02:44:56 +0000 (11:44 +0900)]
Increase max fd counts to 1024

Change-Id: I3f208b482d2e053cef88d31f999ab22f2217ca06

2 years agoAdd lock_guard VineMap::for_each 54/265554/2
cheoleun moon [Fri, 22 Oct 2021 02:22:48 +0000 (11:22 +0900)]
Add lock_guard VineMap::for_each

Change-Id: I72ba4c67ae61c1644668bdb4eaa7da1d146a81d5

2 years agodnssd-plugin: overwrite sdref_map for duplicate fd 44/265544/2
Seonah Moon [Thu, 21 Oct 2021 14:14:40 +0000 (23:14 +0900)]
dnssd-plugin: overwrite sdref_map for duplicate fd

Change-Id: Iba2b8e5ea6bb541289b4c627a714315c0da3b624

2 years agolws-plugin: move client close request to eventloop thread 43/265543/2
Seonah Moon [Thu, 21 Oct 2021 11:22:32 +0000 (20:22 +0900)]
lws-plugin: move client close request to eventloop thread

Change-Id: I36f2d091a754ed04e55947ff6c2cbf378ae146fa

2 years agoIterate op_queue to process the matching fd 27/265527/1
cheoleun moon [Thu, 21 Oct 2021 10:25:53 +0000 (19:25 +0900)]
Iterate op_queue to process the matching fd

Change-Id: I502031323dd98cc86e5a22750571f2d246903658

2 years agoCheck datapath handle before invoking user callback 47/265447/5
Seonah Moon [Tue, 19 Oct 2021 10:52:41 +0000 (19:52 +0900)]
Check datapath handle before invoking user callback

Change-Id: Icf8f93326397a7372b0ed1c8b5ad8eb9a15efcf9

2 years agoIntroduce VineMap for synchronized map 22/265422/4
cheoleun moon [Tue, 19 Oct 2021 05:55:31 +0000 (14:55 +0900)]
Introduce VineMap for synchronized map

Change-Id: I9f8940cef3fe8a8079bf30760e938099aaa464fb

2 years agoChange DP termination logic #2 12/265412/3
Seonah Moon [Tue, 19 Oct 2021 01:42:36 +0000 (10:42 +0900)]
Change DP termination logic #2

- Move destory operation to event loop thread
- Move deinit operation to event loop thread
- Destroy a vhost using lws_vhost_destroy()
- Check a fd of websocket_op_s before processing op queue

Change-Id: I572b2c7449362e47c6506fc121f4fcfdd2de0d65

2 years agoChange DP termination logic 20/265320/9
Seonah Moon [Fri, 15 Oct 2021 01:46:18 +0000 (10:46 +0900)]
Change DP termination logic

Change-Id: I123c9fd3babf9f37e68b1ad2d444f6b0b5f30cdb

2 years agoFix a crash issue 57/265257/1 accepted/tizen/6.5/unified/20211028.095702 accepted/tizen/unified/20211013.114638 submit/tizen/20211013.083056 submit/tizen_6.5/20211028.161801 tizen_6.5.m2_release
Seonah Moon [Wed, 13 Oct 2021 08:25:15 +0000 (17:25 +0900)]
Fix a crash issue

Change-Id: Id36d4f16af7db555168b4f3cdc7ebad7c1584119

2 years agoReturn non-zero in lws callback when close request 10/264710/1 submit/tizen/20211012.073313
Seonah Moon [Tue, 28 Sep 2021 11:43:06 +0000 (20:43 +0900)]
Return non-zero in lws callback when close request

Change-Id: I230b34d087137fa65f762c9148339d2fe43aece2

2 years agoFix timing issue 61/264561/3
Seonah Moon [Fri, 24 Sep 2021 09:04:56 +0000 (18:04 +0900)]
Fix timing issue

Following scenario can occur. (Th: thread)
1. Th1: Call vine_dp_open()
2. Th2: opened_cb isn't invoked yet.
3. Th1: Call vine_dp_close() or vine_dp_destroy()
4. Th2: Access to freed memory

LWS with external poll doesn't provide API for cancel websocket creation.
So, This patch handles close() and destroy() request in internal thread(Th2).

Change-Id: I394786fdfb5b7cf161ef4d2a904b9ba5d9960b2d

2 years agoDisable NAN feature on emulator 43/264243/1 accepted/tizen/unified/20210923.133046 submit/tizen/20210916.023811
Seonah Moon [Wed, 15 Sep 2021 03:30:49 +0000 (12:30 +0900)]
Disable NAN feature on emulator

Change-Id: I607b9454f99bb1e84e936ccd152d31374a91dfc1

2 years agoEnsure null-terminated string 14/263614/1 submit/tizen/20210907.051033
Cheoleun Moon [Tue, 7 Sep 2021 04:46:01 +0000 (13:46 +0900)]
Ensure null-terminated string

Change-Id: I9dc10563bf3b321bfdca92d581fe491ca15a84e6
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoFix svace issues 78/263278/1 accepted/tizen/unified/20210901.050242 submit/tizen/20210831.025107
Cheoleun Moon [Mon, 30 Aug 2021 12:16:38 +0000 (21:16 +0900)]
Fix svace issues

Change-Id: Ib296f3b17f92925e25da51acd605bbc225cd7a7c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoble-gatt: Use different UUID for each DP connection 72/262172/5
Seonah Moon [Tue, 3 Aug 2021 09:24:01 +0000 (18:24 +0900)]
ble-gatt: Use different UUID for each DP connection

Change-Id: I1191781f0809cf7f1a08ec65f611d48e708d3003

2 years agoAdd vine_dp_set_service() 75/262075/3
Seonah Moon [Mon, 2 Aug 2021 09:31:46 +0000 (18:31 +0900)]
Add vine_dp_set_service()

Change-Id: I899bb36b330c10db9f0a40a174e1c14865cc7a86

2 years agoMerge "Modify the initiation logic for GATT connection" into tizen
seonah moon [Mon, 30 Aug 2021 07:54:45 +0000 (07:54 +0000)]
Merge "Modify the initiation logic for GATT connection" into tizen

2 years agonan-plugin: add NAN init/deinit 84/261884/3
Cheoleun Moon [Wed, 28 Jul 2021 07:18:44 +0000 (16:18 +0900)]
nan-plugin: add NAN init/deinit

Change-Id: I8c342786e9908a5a25ef80526036afd203ff4cd3
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agonan-plugin: add resolve_ip 70/261870/4
Cheoleun Moon [Wed, 28 Jul 2021 04:55:39 +0000 (13:55 +0900)]
nan-plugin: add resolve_ip

Change-Id: Ib0d10a908b4ba73baedf07629004bfc56bf1768e

2 years agoIntegrate ble_discovered_cb with discovered_cb 99/261799/4
Cheoleun Moon [Mon, 26 Jul 2021 12:09:13 +0000 (21:09 +0900)]
Integrate ble_discovered_cb with discovered_cb

To identify peer device, host name or MAC address may be used.
DNS-SD uses host name while BLE and NAN use MAC address.

Change-Id: I4ac6deaea26ed4551c3b7dd1de65a3d5719d0a8f
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoSupport NAN discovery 07/261707/6
Cheoleun Moon [Fri, 23 Jul 2021 04:08:35 +0000 (13:08 +0900)]
Support NAN discovery

Change-Id: Id4d0fed38d50ec94206d59a47322af7d1c8e09e5

2 years agoMerge "nan plugin: add publish and subscribe" into tizen
cheoleun moon [Mon, 30 Aug 2021 07:37:14 +0000 (07:37 +0000)]
Merge "nan plugin: add publish and subscribe" into tizen

2 years agonan plugin: add publish and subscribe 03/261703/2
Cheoleun Moon [Fri, 23 Jul 2021 03:11:37 +0000 (12:11 +0900)]
nan plugin: add publish and subscribe

Change-Id: I891c5e17cd87909b6fabbffec45509610a20f69f
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoUse gmock instead of gtest 59/262959/2 accepted/tizen/unified/20210824.123710 submit/tizen/20210824.054637
Cheoleun Moon [Tue, 24 Aug 2021 04:29:27 +0000 (13:29 +0900)]
Use gmock instead of gtest

Change-Id: I7814d172cc944f32abed117c179be76ef58763af
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoMerge "Use long type for timeout_ms" into tizen accepted/tizen/unified/20210813.005935 submit/tizen/20210812.064303
cheoleun moon [Thu, 12 Aug 2021 06:42:34 +0000 (06:42 +0000)]
Merge "Use long type for timeout_ms" into tizen

2 years agoUse long type for timeout_ms 03/262403/1
Cheoleun Moon [Tue, 10 Aug 2021 05:00:30 +0000 (14:00 +0900)]
Use long type for timeout_ms

Change-Id: I019f58896cd02ba27dc317e79535f4f5f068ee5b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoModify the initiation logic for GATT connection 47/261947/4
Seonah Moon [Thu, 29 Jul 2021 09:49:48 +0000 (18:49 +0900)]
Modify the initiation logic for GATT connection

- Manage connection state callbacks globally
- Add the new characteristic used in initiation phase
- Do not call bt_gatt_disconnect()

Change-Id: Id5fbacd2f8e19ab46c901795e3c82d30bf597f39

2 years agoFix build failure 59/262359/1
Seonah Moon [Mon, 9 Aug 2021 05:02:27 +0000 (14:02 +0900)]
Fix build failure

Change-Id: I27d0199562a30959074e7a66e5a9a405a7f6d234

2 years agoCheck if value is null 00/262300/1 submit/tizen/20210806.070749
Cheoleun Moon [Fri, 6 Aug 2021 06:49:29 +0000 (15:49 +0900)]
Check if value is null

Change-Id: If46b8f5fe09828089c0b2025d0600ea1fcb619a7

2 years agoble-gatt: handle pending write data and MTU 97/261597/8
Seonah Moon [Thu, 22 Jul 2021 02:23:14 +0000 (11:23 +0900)]
ble-gatt: handle pending write data and MTU

Change-Id: I92647460355a7f71900a010e8aa377204c301646

2 years agoble-gatt: Add eventfd to handle pending write data 63/261563/2
Seonah Moon [Wed, 21 Jul 2021 07:49:51 +0000 (16:49 +0900)]
ble-gatt: Add eventfd to handle pending write data

Change-Id: I1c799fe039a7c6545326e29ce921cd4edb10a58e

2 years agoFix a use-after-free 65/261665/1 accepted/tizen/unified/20210723.122810 submit/tizen/20210722.081417
Seonah Moon [Thu, 22 Jul 2021 08:11:58 +0000 (17:11 +0900)]
Fix a use-after-free

Change-Id: I1219de07f4039b3ca3c1e6e43232ed1cfa9823b0

2 years agoMerge "Remove dead code" into tizen submit/tizen/20210722.025245
cheoleun moon [Thu, 22 Jul 2021 02:14:07 +0000 (02:14 +0000)]
Merge "Remove dead code" into tizen

2 years agoRemove dead code 87/261587/1
Cheoleun Moon [Thu, 22 Jul 2021 00:29:42 +0000 (09:29 +0900)]
Remove dead code

Change-Id: Ib80b8e0f1fbc5b07fc58ec158c313b1a47fbbfeb
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoMerge "Increate the max length of topic to 1023" into tizen
cheoleun moon [Thu, 22 Jul 2021 00:01:12 +0000 (00:01 +0000)]
Merge "Increate the max length of topic to 1023" into tizen

2 years agoMerge "Add remarks for vine_set_event_loop" into tizen
cheoleun moon [Wed, 21 Jul 2021 08:23:00 +0000 (08:23 +0000)]
Merge "Add remarks for vine_set_event_loop" into tizen

2 years agoMerge "vine-ble-test: Add test for BLE" into tizen
cheoleun moon [Wed, 21 Jul 2021 08:22:54 +0000 (08:22 +0000)]
Merge "vine-ble-test: Add test for BLE" into tizen

2 years agoIncreate the max length of topic to 1023 65/261565/2
Cheoleun Moon [Wed, 21 Jul 2021 08:21:04 +0000 (17:21 +0900)]
Increate the max length of topic to 1023

Change-Id: I628d3110de89276344a38ecb3d1705f569175bab
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoAdd remarks for vine_set_event_loop 48/261448/1
Cheoleun Moon [Mon, 19 Jul 2021 07:57:53 +0000 (16:57 +0900)]
Add remarks for vine_set_event_loop

Change-Id: If61bda9ef21ec93abd61b44fad12f88c2865e5cf
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agovine-ble-test: Add test for BLE 45/261445/3
Cheoleun Moon [Mon, 19 Jul 2021 05:48:20 +0000 (14:48 +0900)]
vine-ble-test: Add test for BLE

Change-Id: Ia270a49e509d9e2b3b6b415e176d09894fb1f28a
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoevent-loop: handles idle event 56/261356/2
Seonah Moon [Fri, 16 Jul 2021 02:24:54 +0000 (11:24 +0900)]
event-loop: handles idle event

Change-Id: I6858826eeba960ddeb0928930462e4d4f848fd5f

2 years agoFix svace issues 60/261260/1 accepted/tizen/unified/20210715.053928 submit/tizen/20210714.100702
Seonah Moon [Wed, 14 Jul 2021 05:18:44 +0000 (14:18 +0900)]
Fix svace issues

Change-Id: I3ba728610e840d98d1b9ed50864589708c37c105

2 years agoImplement close function for GATT plugin 48/261148/2
Seonah Moon [Mon, 12 Jul 2021 10:38:11 +0000 (19:38 +0900)]
Implement close function for GATT plugin

Change-Id: I87a9ba031d8e02166b22eb4aebdd1c6b7f31f92f

2 years agovine-tool: terminate a tool when receiving interrupt signal 41/261141/2
Seonah Moon [Mon, 12 Jul 2021 09:34:51 +0000 (18:34 +0900)]
vine-tool: terminate a tool when receiving interrupt signal

- fix vine-tool bug
- increase the version number for BLE GATT

Change-Id: I42841ceb7ef72bfa8d17c19da16d30444e0740a0

2 years agoKeep client list in GATT server handle 53/261053/3
Seonah Moon [Fri, 9 Jul 2021 06:10:24 +0000 (15:10 +0900)]
Keep client list in GATT server handle

BT GATT server api doens't create a new handle each connection.
But DataPath is designed that new handle is created whenever connected with a peer.
In this patch, to compatibility, GATT server will manage a client list.

Change-Id: Ica3971031ae2e348ad1726057336de830b0ced0b

2 years agoImplement read/write for BLE GATT 09/261009/2
Seonah Moon [Thu, 8 Jul 2021 08:47:04 +0000 (17:47 +0900)]
Implement read/write for BLE GATT

Change-Id: Id018c74de7bac482d3d9bd59fca6ab61598a9cb2

2 years agoAdd new API to set/get remote address(GATT) 46/260946/1
Seonah Moon [Wed, 7 Jul 2021 09:45:58 +0000 (18:45 +0900)]
Add new API to set/get remote address(GATT)

Change-Id: I2e6523b01af33aa7d7bfd99a4f7720f484adb4ab

2 years agoAdd new API to set DP method 98/260898/3
Seonah Moon [Tue, 6 Jul 2021 10:11:22 +0000 (19:11 +0900)]
Add new API to set DP method

Change-Id: I92440476858e246d859bb31958e65e0bacff7330

2 years agoSeperate GATT from BLE plugin 06/260806/2
Seonah Moon [Mon, 5 Jul 2021 02:21:58 +0000 (11:21 +0900)]
Seperate GATT from BLE plugin

Change-Id: I341ad739a779a0d4659da478e6acf00d8c4a8d2c

2 years agoFirst draft for BLE GATT plugin 42/260742/8
Seonah Moon [Fri, 2 Jul 2021 05:24:45 +0000 (14:24 +0900)]
First draft for BLE GATT plugin

Change-Id: I70065ea272a3fe63ca156188656112fce04333cc

2 years agoble disc: Do not set service_data 20/260820/1
Cheoleun Moon [Mon, 5 Jul 2021 08:02:17 +0000 (17:02 +0900)]
ble disc: Do not set service_data

Change-Id: I53ee0fc993a628c12a2028079641b3a588ec0271
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoFix resource leak 52/260752/1 accepted/tizen/unified/20210705.125131 submit/tizen/20210705.020242
Cheoleun Moon [Fri, 2 Jul 2021 06:40:53 +0000 (15:40 +0900)]
Fix resource leak

Change-Id: I29ed976a281773c75f8f1a5eaed108edcb09b4a3
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agovine-tool: Handle SIGINT for glib event loop 43/260743/6
Cheoleun Moon [Fri, 2 Jul 2021 05:38:32 +0000 (14:38 +0900)]
vine-tool: Handle SIGINT for glib event loop

Change-Id: I2c4d09f46595ee29a913b4954a5833bdebd8bbfe
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoAdd null check in discovered_cb 35/260735/2
Cheoleun Moon [Fri, 2 Jul 2021 02:50:29 +0000 (11:50 +0900)]
Add null check in discovered_cb

Change-Id: I29a3e3044473ad3943131b91a4b2b896a0e15ace
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoHandle unsupported functions 29/260729/4
Cheoleun Moon [Fri, 2 Jul 2021 02:16:19 +0000 (11:16 +0900)]
Handle unsupported functions

Change-Id: I9ae35dd453129acd27dc5d6e0713724256fdad24
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agovine-tool: Add ble discovery 86/260686/6
Cheoleun Moon [Thu, 1 Jul 2021 06:02:14 +0000 (15:02 +0900)]
vine-tool: Add ble discovery

Change-Id: Iebc94f08af3e7525e53d08a2370d9f34dfa97118
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoChange discoverd_cb for ble support 74/260574/2
Cheoleun Moon [Tue, 29 Jun 2021 07:47:46 +0000 (16:47 +0900)]
Change discoverd_cb for ble support

Change-Id: Ie9750efb9662929d51f6660ac15bc25f5b9d08e8
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoble plugin: Implement basic operation 20/260520/2
Cheoleun Moon [Mon, 28 Jun 2021 07:21:11 +0000 (16:21 +0900)]
ble plugin: Implement basic operation

Change-Id: I8dd59934cdd897172b0ef36100b670e2ed4f02f1
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoadd ble_publish 19/260519/2
Cheoleun Moon [Fri, 25 Jun 2021 08:28:33 +0000 (17:28 +0900)]
add ble_publish

Change-Id: I0d60fe55ddc7271cb2e625fed9aebf50a5c90eb8
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agolibwebsockets: disable unnecessary options 46/260246/3 accepted/tizen/unified/20210629.130140 submit/tizen/20210628.025645
Seonah Moon [Tue, 22 Jun 2021 10:35:11 +0000 (19:35 +0900)]
libwebsockets: disable unnecessary options

Change-Id: Icad061dbcab8dc9556036693fb52138e82252f5c

2 years agoMerge "vine-tool: timefd() bug fix" into tizen
seonah moon [Wed, 23 Jun 2021 06:16:01 +0000 (06:16 +0000)]
Merge "vine-tool: timefd() bug fix" into tizen

2 years agoAllow to set event loop type with api 29/260229/2
Cheoleun Moon [Tue, 22 Jun 2021 07:57:56 +0000 (16:57 +0900)]
Allow to set event loop type with api

Change-Id: Ib33d2e130f0cc939272d496605a64a768188335c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agovine-tool: timefd() bug fix 67/260167/3
Seonah Moon [Mon, 21 Jun 2021 11:39:10 +0000 (20:39 +0900)]
vine-tool: timefd() bug fix

Change-Id: If1b7e6974c377b9401ff7bf21369fb655a8a6d17

2 years agoAdd the support of glib event loop 77/260177/5
Cheoleun Moon [Mon, 21 Jun 2021 11:59:23 +0000 (20:59 +0900)]
Add the support of glib event loop

Change-Id: I692b5a8edba1ebe751283044ea5461da53e38fa3
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoMerge "Modify to use various event loop" into tizen
cheoleun moon [Mon, 21 Jun 2021 09:34:41 +0000 (09:34 +0000)]
Merge "Modify to use various event loop" into tizen

2 years agoModify to use various event loop 50/260150/1
Cheoleun Moon [Mon, 21 Jun 2021 09:11:26 +0000 (18:11 +0900)]
Modify to use various event loop

Change-Id: If5c2510ad5a91444f2b973215d92122b2689d58b
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoProcess lws service after requesting to destroy a vhost 39/260139/1 accepted/tizen/unified/20210622.125832 submit/tizen/20210621.075049
Seonah Moon [Mon, 21 Jun 2021 05:58:08 +0000 (14:58 +0900)]
Process lws service after requesting to destroy a vhost

LWS closes a server socket next time around the event loop.

Change-Id: I9eeb1bad41dac93617ce13ef63474e1f0e8cc8cc

2 years agoUpgrade libwebsockets from v4.0-stable to v4.2-stable 81/260081/3
Seonah Moon [Fri, 18 Jun 2021 07:31:44 +0000 (16:31 +0900)]
Upgrade libwebsockets from v4.0-stable to v4.2-stable

Change-Id: If2997a5c60a0ae93117510bfbedfc75d960ffb5c

2 years agoDisconnect clients when server DP is closed 14/260014/4
Seonah Moon [Thu, 17 Jun 2021 10:33:09 +0000 (19:33 +0900)]
Disconnect clients when server DP is closed

Change-Id: Ibe90ac217e7ca431e0a69f9277e99a294c76c55b

2 years agoResolve IP based on address family 16/259916/2
Seonah Moon [Wed, 16 Jun 2021 11:34:58 +0000 (20:34 +0900)]
Resolve IP based on address family

Change-Id: I3e4ea81420ac2430f724a6b41af31f95a00e39d7

2 years agounittest: fix a crash issue 15/259915/2
Seonah Moon [Wed, 16 Jun 2021 11:30:40 +0000 (20:30 +0900)]
unittest: fix a crash issue

Change-Id: Ifa02a44987f082e3ca9577c11c87f244c91d6d6b

2 years agoMerge "Wake the eventloop up when requesting deinitialize" into tizen
seonah moon [Wed, 9 Jun 2021 11:11:29 +0000 (11:11 +0000)]
Merge "Wake the eventloop up when requesting deinitialize" into tizen

2 years agoSelect proper vhost when connecting with a client 65/259365/6
Seonah Moon [Mon, 7 Jun 2021 01:09:58 +0000 (10:09 +0900)]
Select proper vhost when connecting with a client

[problem]
Sometimes, Segfault occurs when pubsub open/close repeatedly
for the same port.

[cause]
libwebsockets doesn't close the vhost and a listen socket immediately
eventhough a vine requests it.
After then, if the accept event occurs, libwebsockets returns old vhost
which has the same listen port from the vhost_list.

Change-Id: Ieded5f672b077939a126764b99ef1f052a01461b

2 years agoWake the eventloop up when requesting deinitialize 06/259506/1
Seonah Moon [Wed, 9 Jun 2021 06:27:19 +0000 (15:27 +0900)]
Wake the eventloop up when requesting deinitialize

Change-Id: If0145571a4d98caeb29111beb2029ea030ba3ba4

2 years agoFix epoll() performance issue 93/259393/2
Seonah Moon [Mon, 7 Jun 2021 07:10:00 +0000 (16:10 +0900)]
Fix epoll() performance issue

vine event-loop runs on independent thread.
So, It is suitable to make a timeout to -1.

https://man7.org/linux/man-pages/man2/epoll_wait.2.html

Change-Id: Id4711937baeebe085ae947abc52436d09862692a

2 years agoVerifier: send a message in joined callback for pubsub test 04/259204/2
Seonah Moon [Wed, 2 Jun 2021 05:37:25 +0000 (14:37 +0900)]
Verifier: send a message in joined callback for pubsub test

Change-Id: I78ac15aef4552ed8c8eabf2e8b5c8dc829170677

2 years agobug fix: pass a proper argument to printf() 81/259181/1
Seonah Moon [Wed, 2 Jun 2021 02:14:17 +0000 (11:14 +0900)]
bug fix: pass a proper argument to printf()

Change-Id: If02199c3b59a4a2a03838f7614f98a6cca082814

2 years agoAdd vine_dp_get_id() #2 27/259127/2 accepted/tizen/unified/20210602.122354 submit/tizen/20210601.115121
Seonah Moon [Tue, 1 Jun 2021 09:35:14 +0000 (18:35 +0900)]
Add vine_dp_get_id() #2

Change-Id: I84c80a5f970caa8bee6222ff92a5e407540e3c4c

2 years agoAdd vine_dp_get_id() 80/259080/7
Seonah Moon [Tue, 1 Jun 2021 02:15:26 +0000 (11:15 +0900)]
Add vine_dp_get_id()

- Add vine_dp_get_id()
- Pass a peer Id to joined/left callback instead of IP/port

Change-Id: I2c0f9db4fdbf9e37b0746a2f30f580ae3ac13488

2 years agoChange print_error to _test_print_error 33/259033/3 submit/tizen/20210531.070519 submit/tizen/20210601.065609
Cheoleun Moon [Mon, 31 May 2021 06:59:25 +0000 (15:59 +0900)]
Change print_error to _test_print_error

Change-Id: I797c6fb3dcb8890e2cf99efd2787e7a6c546ca19
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agoDP: Add set/get remote port, get local ip 71/258771/5 submit/tizen/20210531.043146
Seonah Moon [Tue, 25 May 2021 10:50:19 +0000 (19:50 +0900)]
DP: Add set/get remote port, get local ip

- Fix vine_dp_[set/get]_port
- Add new API vine_dp_[set/get]_remote_port
- Add new API vine_dp_get_ip

Change-Id: Ib1e1e4a5cfd72fcf3a33392921a5366225fc0275

2 years agotests: add test for pubsub repetition 23/258623/4
Seonah Moon [Fri, 21 May 2021 07:27:27 +0000 (16:27 +0900)]
tests: add test for pubsub repetition

Change-Id: I73dc4a0290facc54ee423584a5d4e998fbb8bb92

2 years agoMerge "tests: Expose print functions" into tizen
seonah moon [Mon, 24 May 2021 11:07:22 +0000 (11:07 +0000)]
Merge "tests: Expose print functions" into tizen

2 years agovine-verifier: fix wrong parameter 01/258701/1
Cheoleun Moon [Mon, 24 May 2021 10:44:19 +0000 (19:44 +0900)]
vine-verifier: fix wrong parameter

Change-Id: I54d7f595860f9ab43304b136ad2c309e784d1e9c
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
2 years agotests: Expose print functions 05/258605/3
Seonah Moon [Fri, 21 May 2021 05:02:40 +0000 (14:02 +0900)]
tests: Expose print functions

Change-Id: Ibbe00dd27d6b60f3010818f5356c8f3922b8134d