platform/core/connectivity/mdg-manager.git
5 years agoFix Svace & coverty issues 62/212262/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix tizen_6.5 accepted/tizen/5.5/unified/20191031.024023 accepted/tizen/5.5/unified/mobile/hotfix/20201027.083940 accepted/tizen/5.5/unified/wearable/hotfix/20201027.114914 accepted/tizen/6.0/unified/20201030.120413 accepted/tizen/6.0/unified/hotfix/20201103.050246 accepted/tizen/6.5/unified/20211028.100312 accepted/tizen/unified/20190820.115003 submit/tizen/20190820.045040 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 submit/tizen_5.5_wearable_hotfix/20201026.184303 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 submit/tizen_6.5/20211028.162201 tizen_5.5.m2_release tizen_6.0.m2_release tizen_6.5.m2_release
Jung Jihoon [Mon, 19 Aug 2019 11:10:06 +0000 (20:10 +0900)]
Fix Svace & coverty issues

- Svace : 317229, 372690 DEREF_OF_NULL
- Coverity : 1043621, 1043616, 1043593, 1043590 Reasource leak

Change-Id: I1a48df4605fb8d48d74e40eb4f4e47ff711ffec1
Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
5 years agoAdd command hash table for deallocate memory properly 36/211936/1 accepted/tizen/unified/20190812.235537 submit/tizen/20190812.075151
Jung Jihoon [Mon, 12 Aug 2019 07:40:14 +0000 (16:40 +0900)]
Add command hash table for deallocate memory properly

Change-Id: I436449a5845273b3953a0eecfbb2071dd7ce3fef
Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
5 years agoMerge "Fix Coverity issues" into tizen accepted/tizen/unified/20190718.220330 submit/tizen/20190718.054142
saerome kim [Thu, 18 Jul 2019 05:32:38 +0000 (05:32 +0000)]
Merge "Fix Coverity issues" into tizen

5 years agoFix Coverity issues 32/209632/3
Jung Jihoon [Tue, 9 Jul 2019 11:05:20 +0000 (20:05 +0900)]
Fix Coverity issues

- Resource leaks: 1043630 1043626 1043610 1043604 1043598 1043592 1043591
- Logically dead code : 1053894
- Unchecked return value : 1043631 1043595

Change-Id: I7f42b0112ee5fb233805658cfac3987aaf68e182
Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
5 years agoDelete meaningless configuration 99/209499/1
INSUN PYO [Mon, 8 Jul 2019 10:21:16 +0000 (19:21 +0900)]
Delete meaningless configuration

Change-Id: I164b24e713087e37494dc67477fb864c1e8f418c

5 years agoChange service file for On demand daemon 79/208479/1 accepted/tizen/unified/20190626.040832 submit/tizen/20190625.060407
Jung Jihoon [Tue, 25 Jun 2019 04:46:24 +0000 (13:46 +0900)]
Change service file for On demand daemon

Change-Id: I32f593c39c42911616a502c6110d867cd952df4a
Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
5 years agoChange to simple type daemon for booting time 82/208182/1 accepted/tizen/unified/20190621.121916 accepted/tizen/unified/20190624.075208 submit/tizen/20190621.070426
Jung Jihoon [Wed, 19 Jun 2019 09:20:58 +0000 (18:20 +0900)]
Change to simple type daemon for booting time

Change-Id: I4f53d1001769cbf5d02d678941341b2d92eac5df
Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
5 years agoRemove unused function 72/208172/1 submit/tizen/20190619.081412
Jung Jihoon [Wed, 19 Jun 2019 08:07:56 +0000 (17:07 +0900)]
Remove unused function

Change-Id: I606cfb5d1a706040749b2bb1f119d9eebc2fa3fe
Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
5 years agoChange booting sequence 22/207822/1 accepted/tizen/unified/20190613.223602 submit/tizen/20190613.054211
Jihoon Jung [Thu, 13 Jun 2019 05:31:58 +0000 (14:31 +0900)]
Change booting sequence

Change-Id: I37313d80dbea48d7f11d728d43ef9d38d09d91b6
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
5 years agoFixed svace issue 78/205878/2 accepted/tizen/unified/20190512.221853 submit/tizen/20190510.065918
saerome kim [Fri, 10 May 2019 05:08:41 +0000 (14:08 +0900)]
Fixed svace issue

- 313737: Fixed memory leak of missing freeing.
- 319198, 321029: we change whenever we call the GET function,
   the Callback must be called, and it is modified to release
   the allocated memory at all times.
- 372686, 372690: Added memory allocation function.

Change-Id: I9a1fcbba5ed8f149e93e6b3c96c1140dd36a1618
Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoFix dbus policy 86/203586/3 accepted/tizen/unified/20190416.071525 submit/tizen/20190416.060353
Jihoon Jung [Tue, 16 Apr 2019 05:55:43 +0000 (14:55 +0900)]
Fix dbus policy

Change-Id: Ie0d12b6d21771a184b605a485d8ad1aa4067b633
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
5 years agoImplmemented 'channel open' method and removed file transfer function. 07/200607/3 submit/tizen/20190409.053417
Jihoon Jung [Wed, 27 Feb 2019 08:34:54 +0000 (17:34 +0900)]
Implmemented 'channel open' method and removed file transfer function.
after applied this patch, client app will create 'End-Point' and can
transmit files throuth the 'End-Point'.

Change-Id: Id8daa6da1fe783cbacccbc38a1eaf0a6cd9a189d
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
5 years agoFixed build error due to unsupported feature. 15/202915/3 accepted/tizen/unified/20190410.002149 submit/tizen/20190408.032146 submit/tizen/20190408.231037
saerome kim [Mon, 8 Apr 2019 01:04:40 +0000 (10:04 +0900)]
Fixed build error due to unsupported feature.

- MCD does not support MULTIPLE_OWNER in iotivity project.
  Therefore, mdg-manager can discern whether iotivity support
  MULTIPLE_OWNER or not.

- Added missing 'CMAKE_CXXFLAGS'.
- Fixed intent issues.

Change-Id: If73ec3a1254a12b76fe44803fceae40c5c23249b
Signed-off-by: saerome kim <saerome.kim@samsung.com>
5 years agoFix svace issues 61/199961/5
Jihoon Jung [Mon, 18 Feb 2019 02:24:40 +0000 (11:24 +0900)]
Fix svace issues

- 410071: fixed memory leak problem due to dynamic allocated 'devices'
- 410077: fixed memory leak that is not freed because the dynamic
allocated 'cmd' variable is called through multiple callback function.
- 410083: fixed memory leak that do not free 'uuid_str' variable which
allocated by g_strdup().
- 410084: fixed a problem that does not free the variables allocated to
heap during mdgd_iot_initialize() when calling mdgd_iot_deinitialize()

Change-Id: I88e824bac894ae2f51c8310109d1242c36737c70
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
5 years agoTemporarlly remove private iotivity packages. 35/199035/2 accepted/tizen/unified/20190201.061357 submit/tizen/20190201.022741
saerome.kim [Fri, 1 Feb 2019 02:19:29 +0000 (11:19 +0900)]
Temporarlly remove private iotivity packages.

Change-Id: Ib7710f9490eae0af27a03809682f8bff813d4482
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoapplied missing ASLR option 77/198977/1 submit/tizen/20190131.112426 submit/tizen/20190131.113501
saerome.kim [Thu, 31 Jan 2019 10:26:20 +0000 (19:26 +0900)]
applied missing ASLR option

Change-Id: I98c25b29130d709167612e1a3b2826d33c127314
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoFixed build erorrs for 64bit architecture 40/198940/1 submit/tizen/20190131.090511
saerome.kim [Thu, 31 Jan 2019 07:14:38 +0000 (16:14 +0900)]
Fixed build erorrs for 64bit architecture

Change-Id: I70421d714d39654fd58d777cdb3c2104c99bcd90
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoFixed build errors 34/198934/1 submit/tizen/20190131.065036
saerome.kim [Thu, 31 Jan 2019 06:31:36 +0000 (15:31 +0900)]
Fixed build errors

Change-Id: I26b0e508a06ae7f34e92a5bda25c5c463d384af3
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoFixed SATIZENVUL-1583 98/194298/1
saerome.kim [Mon, 3 Dec 2018 01:11:11 +0000 (10:11 +0900)]
Fixed SATIZENVUL-1583

- Possible stack overflow - core/connectivity/mdg-manager

Change-Id: Ia2e7566ffa64bda325002d117ae9ddeccbb4d63f
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoFixed security issues from SSMS 86/191586/2
Jihoon Jung [Fri, 19 Oct 2018 00:04:42 +0000 (09:04 +0900)]
Fixed security issues from SSMS

Change-Id: I7bb6e161b08b20c4861c0c434c046160e2e51a6d
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
5 years agoFix coverity issue 85/191585/1
Jihoon Jung [Thu, 18 Oct 2018 22:55:19 +0000 (07:55 +0900)]
Fix coverity issue

Change-Id: I7c52d8fee5c9345022f4f2399b07e1296188a969
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
5 years agoFix svace issue 37/191237/8
Jihoon Jung [Mon, 15 Oct 2018 05:29:02 +0000 (14:29 +0900)]
Fix svace issue

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: Ie62f624e50462727ab0a373b44682fa2372a042c

5 years agoFixed crash issue 54/191154/1
saerome.kim [Fri, 12 Oct 2018 02:20:53 +0000 (11:20 +0900)]
Fixed crash issue

Fixed a problem that caused by casting double pointer.

Change-Id: I6c6c30412aa739943611c32a22bdef2a8fe5ad65
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoFixed crash issue. 21/191121/2
saerome.kim [Thu, 11 Oct 2018 11:34:58 +0000 (20:34 +0900)]
Fixed crash issue.

There is double pointer reference by adding unnecessary & operation
in casting operation

Change-Id: Ia932f38b7e377c1c8b4343dd74a59eaad5c761f9
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
5 years agoFix build error 59/190659/1
Daehyeon Jung [Thu, 4 Oct 2018 11:43:31 +0000 (20:43 +0900)]
Fix build error

Change-Id: Ica9fcde65d0dabfafd311e64a295b200fdd4b806
Signed-off-by: Daehyeon Jung <darrenh.jung@samsung.com>
5 years agoapply indentation
Jihoon Jung [Thu, 4 Oct 2018 07:53:28 +0000 (16:53 +0900)]
apply indentation

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
5 years agoRemoved mot agent & pairwise impl. 68/188968/7
Jihoon Jung [Wed, 12 Sep 2018 06:42:38 +0000 (15:42 +0900)]
Removed mot agent & pairwise impl.

Change-Id: I6c5edff74af661583e7755ab7510d85426523457
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoRemove write permission of systemd dbus conf. file from group/others. 30/188930/1
saerome.kim [Wed, 12 Sep 2018 02:53:28 +0000 (11:53 +0900)]
Remove write permission of systemd dbus conf. file from group/others.

Change-Id: I1d4da3e6400547efde78ab84e43350180154b409
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoUpdate iotivity rpms 16/188916/1
saerome.kim [Tue, 11 Sep 2018 23:47:52 +0000 (08:47 +0900)]
Update iotivity rpms

- Revert giving DELETE permission to subowner in CheckPermission()

Change-Id: I88f8b938bce4fc35acd5b35f026c391a6d22fa4e
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoUpdated Invite / Eject operation for Tizen public iotivity 15/188315/4
Jihoon Jung [Tue, 4 Sep 2018 02:05:09 +0000 (11:05 +0900)]
Updated Invite / Eject operation for Tizen public iotivity

Even we modify Invite/Eject operation, unless developing provisionACL/CRED and Pairwise APIs done,
we have to use private iotivity in locally.

Change-Id: I543b087e72da5b6a767b32966aa5261d48c9ccda

6 years agoAdd RPATH to CMakeLists to search for shared libraries in specified path first 17/188217/4
Abhishek Sansanwal [Mon, 3 Sep 2018 05:24:58 +0000 (10:54 +0530)]
Add RPATH to CMakeLists to search for shared libraries in specified path first

Description: Add RPATH flags to cmake to make it so that
the path "/opt/usr/data/network/lib" is searched for the
shared libraries before "/lib" or "/usr/lib". This is
being done to make sure that mdg will load its own
iotivity libraries if the specified RPATH has the
shared libraries being searched by the loader.

Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: I42e3e2826f3dadac4f5511c09ec47529a4cf526b

6 years agoAdd set preconfigured pin 74/187874/1
Jihoon Jung [Wed, 29 Aug 2018 06:33:49 +0000 (15:33 +0900)]
Add set preconfigured pin

Change-Id: I2b3679912a99a5be10903aa61e9151b87300ddec
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agomdgd: Send group information as vector of strings in GET Request 57/187357/2
Saurav Babu [Wed, 22 Aug 2018 07:27:46 +0000 (12:57 +0530)]
mdgd: Send group information as vector of strings in GET Request

Change-Id: I518a2841a34d5e896e91caa2167c9196c07750e5
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoFixed wrong log text message. 93/186693/1
saerome.kim [Mon, 13 Aug 2018 11:43:58 +0000 (20:43 +0900)]
Fixed wrong log text message.

Change-Id: I784664218b01cf76b8e11ad1cd92f9d5964645ea
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdded eownerid before ACL provisioning. 74/186474/1
saerome.kim [Fri, 10 Aug 2018 00:58:31 +0000 (09:58 +0900)]
Added eownerid before ACL provisioning.

Before ACL provisioning, eownerid is needed.
Without eownerid, ACL provisioning always fails.

Change-Id: I4abcaa576de62e5b55e48f8cf6d3d2a58018b814
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdd set invited / ejected event cb 86/186386/2
Jihoon Jung [Thu, 9 Aug 2018 08:29:05 +0000 (17:29 +0900)]
Add set invited / ejected event cb

Change-Id: Ide999e75e4fe2d1b45d820e50805ba609191a62d
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoAdd send response API 42/186242/2
Jihoon Jung [Wed, 8 Aug 2018 08:23:00 +0000 (17:23 +0900)]
Add send response API

Change-Id: I17749ba3df0b075258125b2f63f90d4e9c23018d
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoAdd check lazymount 89/185889/1
Jihoon Jung [Fri, 3 Aug 2018 08:34:38 +0000 (17:34 +0900)]
Add check lazymount

Change-Id: If1421db94057be9ec46c7e2483509c56f10a2b50
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoFix wrong operation for group research 70/185770/1
Jihoon Jung [Thu, 2 Aug 2018 07:36:18 +0000 (16:36 +0900)]
Fix wrong operation for group research

Change-Id: I9e72f6be12c72db324b22594238ed463706b738d
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoRemove address information 91/185591/1
Jihoon Jung [Wed, 1 Aug 2018 04:02:56 +0000 (13:02 +0900)]
Remove address information

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I32073abe940824e62d13a4d0cb49c2b7b6d4f413

6 years agoAdd dbus conf file for mot agent and mdg manager 66/185166/1
Jihoon Jung [Thu, 26 Jul 2018 10:45:24 +0000 (19:45 +0900)]
Add dbus conf file for mot agent and mdg manager

Change-Id: I409ea87890420c58e2824865a1a5c2fb797e6fd3
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoAdd send file impl 58/185158/1
Jihoon Jung [Thu, 26 Jul 2018 09:21:48 +0000 (18:21 +0900)]
Add send file impl

Change-Id: I20bf80b126d85e9a4f3400655a4f5e5e333797e5
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoAdd foreach device in group API 19/185019/1
Jihoon Jung [Wed, 25 Jul 2018 08:25:49 +0000 (17:25 +0900)]
Add foreach device in group API

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
Change-Id: I322aefb47b95a401b584d34fd44b06c54380d2ad

6 years agoSkip mot enabled device when the device already invited to local device 86/184886/1
Jihoon Jung [Tue, 24 Jul 2018 06:01:22 +0000 (15:01 +0900)]
Skip mot enabled device when the device already invited to local device

Change-Id: I65b2c375b841f43c497ab1883f92dd63d016215b
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoadd file transfer impl (Not reliable) 01/184601/1
Jihoon Jung [Thu, 19 Jul 2018 06:39:23 +0000 (15:39 +0900)]
add file transfer impl (Not reliable)

Change-Id: Ib39aeb0ad1c0a976a8da9f58be116e37008f6c49
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoApply coding rule 64/183864/1
Jihoon Jung [Tue, 3 Jul 2018 06:26:49 +0000 (15:26 +0900)]
Apply coding rule

Change-Id: I4cef3cf8bb7bff602b601ede1c5325e6510c45d2
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoReslove merge confilct issue.
saerome.kim [Tue, 3 Jul 2018 01:46:17 +0000 (10:46 +0900)]
Reslove merge confilct issue.

Modification of the "merge confilt" problem caused by the combination of
github temporal git and public 'mdg-manager' git.

Change-Id: Ia6cc69f0bb8f80bf772912da4467ebacc6f916ff
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFixed typo
saerome.kim [Tue, 3 Jul 2018 01:39:18 +0000 (10:39 +0900)]
Fixed typo

- remove twice 'remove' prefix.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdd mdgd send data using channel id
Jihoon Jung [Fri, 29 Jun 2018 08:00:35 +0000 (17:00 +0900)]
Add mdgd send data using channel id

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agoAdd req channel list function
Jihoon Jung [Thu, 28 Jun 2018 10:25:41 +0000 (19:25 +0900)]
Add req channel list function

6 years agoAdd sender implemntation
Jihoon Jung [Thu, 28 Jun 2018 09:11:43 +0000 (18:11 +0900)]
Add sender implemntation

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agochange the mdg framework
Jihoon Jung [Tue, 26 Jun 2018 11:05:13 +0000 (20:05 +0900)]
change the mdg framework

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agomot-agent: fixed crash issue
saerome.kim [Mon, 28 May 2018 08:03:18 +0000 (17:03 +0900)]
mot-agent: fixed crash issue

About 10 hours aging test, we found 1 crash issue.
In the same case that thread does not die even wait time elasped,
so change margin time from 5 seconds to 10 seconds.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agomot-agent: fixed crash due to unhandled response callback at CA layer.
saerome.kim [Fri, 25 May 2018 11:55:25 +0000 (20:55 +0900)]
mot-agent: fixed crash due to unhandled response callback at CA layer.

OCMultipleOwnershipTransfer(), OCProvisionPairwiseDevices() and OCDelete
DeviceUUID() and etc use a 'wait time'. But if API caller calls OCCleanupForTimeout
before wait time, the callback function called from CA already became null.
There is a problem that the thread does not die.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFix potential memory leak
saerome.kim [Thu, 17 May 2018 01:54:34 +0000 (10:54 +0900)]
Fix potential memory leak

- release async queue when it has items.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFixed a bug that comparing device handle to null.
saerome.kim [Wed, 9 May 2018 11:28:07 +0000 (20:28 +0900)]
Fixed a bug that comparing device handle to null.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFixed svace issues.
saerome.kim [Wed, 9 May 2018 10:37:39 +0000 (19:37 +0900)]
Fixed svace issues.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agomdgd: Eject devices before destroying group
Saurav Babu [Wed, 9 May 2018 03:06:37 +0000 (08:36 +0530)]
mdgd: Eject devices before destroying group

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agomdgd: Remove group from found group list after it is destroyed
Saurav Babu [Mon, 7 May 2018 09:04:58 +0000 (14:34 +0530)]
mdgd: Remove group from found group list after it is destroyed

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agomdgd: Add dbus method to delete created group
Saurav Babu [Mon, 7 May 2018 06:40:23 +0000 (12:10 +0530)]
mdgd: Add dbus method to delete created group

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agomdgd: Corrected sqlite3 select command
Saurav Babu [Mon, 7 May 2018 06:38:30 +0000 (12:08 +0530)]
mdgd: Corrected sqlite3 select command

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agomdgd: Return no error when get found groups is successful
Saurav Babu [Fri, 4 May 2018 07:38:07 +0000 (13:08 +0530)]
mdgd: Return no error when get found groups is successful

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agomdgd: Store resource handle of registered resources
Saurav Babu [Fri, 4 May 2018 05:04:42 +0000 (10:34 +0530)]
mdgd: Store resource handle of registered resources

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoSeperate the CAPI packgage
saerome.kim [Fri, 4 May 2018 02:09:25 +0000 (11:09 +0900)]
Seperate the CAPI packgage

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agotest: fixed accumulated group resource when we calld 'find group' more
saerome.kim [Mon, 30 Apr 2018 10:55:41 +0000 (19:55 +0900)]
test: fixed accumulated group resource when we calld 'find group' more
than one.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdd a routine to check if it is stored in the DB before the invite /
saerome.kim [Fri, 27 Apr 2018 02:28:42 +0000 (11:28 +0900)]
Add a routine to check if it is stored in the DB before the invite /
eject execution.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdd mdgd_check_device_exist impl
Jihoon Jung [Thu, 26 Apr 2018 07:43:02 +0000 (16:43 +0900)]
Add mdgd_check_device_exist impl

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agomdg-manager: translate IoTivity error message for CAPI
saerome.kim [Thu, 26 Apr 2018 06:10:22 +0000 (15:10 +0900)]
mdg-manager: translate IoTivity error message for CAPI

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoAdd daemon recovery when daemon is reboot impl
Jihoon Jung [Thu, 26 Apr 2018 05:21:00 +0000 (14:21 +0900)]
Add daemon recovery when daemon is reboot impl

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agomdg-manager: remove routine that returns unknown_error when coundn't
saerome.kim [Thu, 26 Apr 2018 04:26:55 +0000 (13:26 +0900)]
mdg-manager: remove routine that returns unknown_error when coundn't
find any device.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoadded error handling routine.
saerome.kim [Wed, 25 Apr 2018 12:27:40 +0000 (21:27 +0900)]
added error handling routine.

- added printing error message
- added recovery logic when mot-agent dies

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agounified the seperated error code into one
saerome.kim [Wed, 25 Apr 2018 11:20:57 +0000 (20:20 +0900)]
unified the seperated error code into one

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agomot-agent: fixed crash issue due to emitting signal during worker thread
saerome.kim [Wed, 25 Apr 2018 07:51:56 +0000 (16:51 +0900)]
mot-agent: fixed crash issue due to emitting signal during worker thread
operation.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFixed svace issues
saerome.kim [Tue, 24 Apr 2018 08:20:56 +0000 (17:20 +0900)]
Fixed svace issues

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFixed problem that not to find peers in the network
saerome.kim [Tue, 24 Apr 2018 06:24:24 +0000 (15:24 +0900)]
Fixed problem that not to find peers in the network

Unless applying this patch, it is not impossible to find peers in the
network due to the wrong comparison method.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoChange prefix from 'companion' to 'mdg'
saerome.kim [Mon, 23 Apr 2018 11:48:34 +0000 (20:48 +0900)]
Change prefix from 'companion' to 'mdg'

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agocapi: Register device monitor result callback
Saurav Babu [Fri, 20 Apr 2018 06:03:16 +0000 (11:33 +0530)]
capi: Register device monitor result callback

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agodemo: Added test code for device monitoring
Saurav Babu [Fri, 20 Apr 2018 04:52:02 +0000 (10:22 +0530)]
demo: Added test code for device monitoring

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocapi: Added new CAPI to start/stop device monitor
Saurav Babu [Fri, 20 Apr 2018 04:50:34 +0000 (10:20 +0530)]
capi: Added new CAPI to start/stop device monitor

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocomp-manager: Add dbus method to start/stop device monitor
Saurav Babu [Fri, 20 Apr 2018 04:49:04 +0000 (10:19 +0530)]
comp-manager: Add dbus method to start/stop device monitor

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocomp-manager: Monitor Invited device
Saurav Babu [Thu, 19 Apr 2018 09:21:32 +0000 (14:51 +0530)]
comp-manager: Monitor Invited device

This patch adds new method to start monitoring invited device and sends
signal when device state changes

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoAdd Peer Description discovery implemntation
Jihoon Jung [Thu, 19 Apr 2018 08:17:42 +0000 (17:17 +0900)]
Add Peer Description discovery implemntation

Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
6 years agocomp-manager: Send KeepAlive message after device invite is done
Saurav Babu [Wed, 18 Apr 2018 14:02:05 +0000 (19:32 +0530)]
comp-manager: Send KeepAlive message after device invite is done

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocomp-manager: Fixed glib warnings and memory corruptions
Saurav Babu [Fri, 13 Apr 2018 11:05:38 +0000 (16:35 +0530)]
comp-manager: Fixed glib warnings and memory corruptions

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoFixed memory leaks
Saurav Babu [Thu, 12 Apr 2018 11:42:17 +0000 (17:12 +0530)]
Fixed memory leaks

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocomp-manager: Don't update device ip pointer
Saurav Babu [Thu, 12 Apr 2018 10:49:09 +0000 (16:19 +0530)]
comp-manager: Don't update device ip pointer

strtok updates the pointer which is passed so use a copy to pass to
strtok

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocomp-manager: make comp_is_local_ip() function uses both IPv6 and IPv6 when comparing.
saerome.kim [Wed, 11 Apr 2018 12:39:09 +0000 (21:39 +0900)]
comp-manager: make comp_is_local_ip() function uses both IPv6 and IPv6 when comparing.

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agod2d-manager: remove unnecessary timer callback which causes mot-agent crash
saerome.kim [Wed, 11 Apr 2018 12:11:37 +0000 (21:11 +0900)]
d2d-manager: remove unnecessary timer callback which causes mot-agent crash

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoFixed a bug that wrong IP information is used in comp_compare_ip_and_ifname()
saerome.kim [Wed, 11 Apr 2018 11:35:17 +0000 (20:35 +0900)]
Fixed a bug that wrong IP information is used in comp_compare_ip_and_ifname()

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agoModified to distinguish local and remote devices using IP information
saerome.kim [Wed, 11 Apr 2018 10:56:36 +0000 (19:56 +0900)]
Modified to distinguish local and remote devices using IP information

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agodemo: Send/Receive buffered data
Saurav Babu [Wed, 11 Apr 2018 09:23:25 +0000 (14:53 +0530)]
demo: Send/Receive buffered data

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocapi: Send data as array of bytes instead of string
Saurav Babu [Wed, 11 Apr 2018 09:22:18 +0000 (14:52 +0530)]
capi: Send data as array of bytes instead of string

Application might be sending buffered data so this patch sends data as
array of bytes instead of string

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocomp-manger: Send/Receive buffered data instead of string
Saurav Babu [Wed, 11 Apr 2018 09:19:01 +0000 (14:49 +0530)]
comp-manger: Send/Receive buffered data instead of string

Application can send buffered data with length, sending it as string
incomplete data would be received. This patch sends data as string after
encoding it to Base64 and on receiver side decodes it before providing
data to upper layer

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agoEnable Base64 encoding support
Saurav Babu [Wed, 11 Apr 2018 09:17:43 +0000 (14:47 +0530)]
Enable Base64 encoding support

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocapi: Fixed random crashes due to device_type initialized with 0
Saurav Babu [Tue, 10 Apr 2018 12:39:27 +0000 (18:09 +0530)]
capi: Fixed random crashes due to device_type initialized with 0

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocapi: change APIs relevant devices
saerome.kim [Tue, 10 Apr 2018 04:58:33 +0000 (13:58 +0900)]
capi: change APIs relevant devices

-companion_device_get_my_uuid -> copanion_device_information_get_my_uuid
-companion_device_get_my_device -> companion_device_informaion_get_my_device
-change device_type from char* to enumeration value

Signed-off-by: saerome.kim <saerome.kim@samsung.com>
6 years agodemo: Receive requester device id in receive_request_result
Saurav Babu [Fri, 6 Apr 2018 07:27:07 +0000 (12:57 +0530)]
demo: Receive requester device id in receive_request_result

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocapi: Add requester device id in companion_request_result_cb
Saurav Babu [Fri, 6 Apr 2018 07:26:25 +0000 (12:56 +0530)]
capi: Add requester device id in companion_request_result_cb

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agocomp-manager: Add requester uuid when sending data to remote device
Saurav Babu [Fri, 6 Apr 2018 07:22:04 +0000 (12:52 +0530)]
comp-manager: Add requester uuid when sending data to remote device

This patch also notifies requester uuid to upper layer in request
result notification

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
6 years agodemo: Fixed issue with incorrect comparision of command in receive_request_result
Saurav Babu [Thu, 5 Apr 2018 14:22:30 +0000 (19:52 +0530)]
demo: Fixed issue with incorrect comparision of command in receive_request_result

Signed-off-by: Saurav Babu <saurav.babu@samsung.com>