platform/upstream/iotivity.git
6 years agoUpdate Snapshot(2018-07-25) 17/186117/1
Amit KS [Tue, 7 Aug 2018 09:35:33 +0000 (15:05 +0530)]
Update Snapshot(2018-07-25)

Change-Id: I1907ac783dc812df5ff8ed16007ca7ff6cfab72a
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years ago [SVRDBEditor] Allow add MOM DOXM attribute 16/186116/1
Vitalii Irkha [Tue, 24 Jul 2018 13:53:55 +0000 (16:53 +0300)]
 [SVRDBEditor] Allow add MOM DOXM attribute

MOM DOXM attribute can be added via svrdbeditor

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/310
(cherry picked from commit 1ce338a37a447e42c23a86d64d9e96c6646a9217)

Change-Id: I02cc8714d6c2ac418cb2d99c77c3c0e2220ebbf3
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoInstall missed header files by the build time reducing 15/186115/1
Amit KS [Tue, 7 Aug 2018 09:24:07 +0000 (14:54 +0530)]
Install missed header files by the build time reducing

Change-Id: Ided34d8b62455f9d48b54f8362bda8497dec2654
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years ago[SVRDBEditor] Edit Doxm MOM attribute 14/186114/1
Vitalii Irkha [Tue, 17 Jul 2018 13:36:20 +0000 (16:36 +0300)]
[SVRDBEditor] Edit Doxm MOM attribute

Added Edit mom functionality to svrdbeditor tool

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/307
(cherry picked from commit 86952a25462ae462e52af83368c153c00b4e8374)

Change-Id: Ieff8984afb72bdbad80281ed44967bfa8ac55440
Signed-off-by: Vice73d5846ecb99fb04e87860b94afbaeff0ddcb4talii Irkha <v.irkha@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoFix Wformat build error 24/185424/1 accepted/tizen/5.0/unified/20181102.025119 accepted/tizen/unified/20180801.080133 submit/tizen/20180801.001001 submit/tizen_5.0/20181101.000006
yhji [Mon, 30 Jul 2018 10:42:11 +0000 (19:42 +0900)]
Fix Wformat build error

Change-Id: Ie8d661436da8145de62f8a6c00d74fc6719fadd2
Signed-off-by: yhji <yhji.lee@samsung.com>
6 years agoUpdate Snapshot(2018-07-18) 02/184702/1
Amit KS [Fri, 20 Jul 2018 04:28:23 +0000 (09:58 +0530)]
Update Snapshot(2018-07-18)

Change-Id: Ic28205c52f6ffb421856a41dce21f5773651682c
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoSQLite OS specific support (#304) 01/184701/1
v.irkha@samsung.com [Mon, 9 Jul 2018 04:58:23 +0000 (07:58 +0300)]
SQLite OS specific support (#304)

Change SQL requests for WHERE statements with blob params.
(Details in [IOT-2775])

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/304
(cherry picked from commit 988f01a5cc090ef21dfde89352ceb47dd7be70bc)

Change-Id: If87ae5503fb2961601376bfd405c7949c1a5c28a
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoEnable Multiple Ownership feature 08/184608/1 accepted/tizen/unified/20180719.152651 submit/tizen/20180719.073852
DoHyun Pyun [Thu, 19 Jul 2018 06:59:47 +0000 (15:59 +0900)]
Enable Multiple Ownership feature

Change-Id: Ib28d8cfee76ad94791f9177ccd1ad6d9c7b9aa82
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoUpdate Snapshot(2018-07-04) 95/183395/1
Amit KS [Thu, 5 Jul 2018 06:36:40 +0000 (12:06 +0530)]
Update Snapshot(2018-07-04)

Change-Id: Id715c564d0c8404dca74f69fbad277ea7d7357fd
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoDisable the Multicast Action in Mobile Network Case. 94/183394/1
senthil.gs@samsung.com [Tue, 3 Jul 2018 15:44:48 +0000 (21:14 +0530)]
Disable the Multicast Action in Mobile Network Case.

Starting multicast server on all identified interfaces results in resource loss as many of identified interfaces may not have Multicast capability. It make sense to start multicast server on only active wifi connected interface for android platform.

This patch handles -
1. Create UDP sockets(Unicast and Multicast) and join multicast group only when there on active WiFi connection.
2. Whenever the WiFi connection comes up, UDP sockets will be closed, created, and joined to multicast group.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/296
(cherry picked from commit ce73d5846ecb99fb04e87860b94afbaeff0ddcb4)

Change-Id: Ib3586d77d3c0e96c990e3fb5a398e78b29a20be8
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoRPK: add length check 93/183393/1
Oleksii Beketov [Mon, 2 Jul 2018 12:01:02 +0000 (15:01 +0300)]
RPK: add length check

RPK master key length check and logging added

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/303
(cherry picked from commit c8d7cb113be986ad53aa1b498280530277597187)

Change-Id: Ia9d5a974476fee3d9fc64a2267c3b8db8ff3f7b4
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years ago[CONPRO-1300] Crash in CAdeinitSslAdapter 92/183392/1
Vitalii Irkha [Fri, 22 Jun 2018 09:49:41 +0000 (12:49 +0300)]
[CONPRO-1300] Crash in CAdeinitSslAdapter

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/299
(cherry picked from commit eb86d2e103dc826d90bbb364f45616e903d6d312)

Change-Id: I2db227c9d418b68a423e742fca3cd74e8d8c8105
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoUpdate Snapshot(2018-06-27) 66/182866/1
Amit KS [Thu, 28 Jun 2018 10:06:36 +0000 (15:36 +0530)]
Update Snapshot(2018-06-27)

Change-Id: Ifb00f0b5683c938b94c710836900d0ed6ab6cfcc
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years ago[CONPRO-1303] Memory leak for equal cred contents 65/182865/1
Vitalii Irkha [Mon, 25 Jun 2018 15:33:11 +0000 (18:33 +0300)]
[CONPRO-1303] Memory leak for equal cred contents

Fix the issue in AddCredential api

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/300
(cherry picked from commit 0538b11eb0600edbf18bc43af4c3493369f99e09)

Change-Id: I0211724897f604ba88dcfb33147cb219a502ef65
Signed-off-by: Vitalii Irkha <v.irkha@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoRPK OTM (#295) 64/182864/1
ol.beketov@samsung.com [Mon, 25 Jun 2018 11:17:03 +0000 (14:17 +0300)]
RPK OTM (#295)

Raw public key OTM added from client side

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/295
(cherry picked from commit bc07c41689f3f835cb14b9e8ad70c2298fa6c839)

Change-Id: Iafeb8d467c821eca3ad350eced73f57637349a71
Signed-off-by: Oleksii Beketov <ol.beketov@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoCrash in OCProcessPresence (#298) 63/182863/1
kush.agrawal@samsung.com [Fri, 22 Jun 2018 14:00:08 +0000 (23:00 +0900)]
Crash in OCProcessPresence (#298)

* [CONPRO-1285]Crash in OCProcessPresence

There is a issue after freeing the clientcb
we are again accessing it.It can possibly crash.

So, to avoid this scenario we are using LL_FOREACH_SAFE
to iterate the list

Signed-off-by: agrkush <kush.agrawal@samsung.com>
* Update ocstack.c
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/298
(cherry picked from commit 578c6918d40d5bded028266ceb3a4aaf68d33623)
Signed-off-by: Amit KS <amit.s12@samsung.com>
Change-Id: Id514a242e34d7a20df2845c09a757b3d26c9604a

6 years agoInstall missed header files by the build time reducing patchset 10/181910/1 accepted/tizen/unified/20180619.142018 submit/tizen/20180619.021338
DoHyun Pyun [Tue, 19 Jun 2018 02:10:43 +0000 (11:10 +0900)]
Install missed header files by the build time reducing patchset

Change-Id: Ibb91b87e1353e8921c0d2e65d6bd073bf5224ba3
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoApplying remove re-build command patchset in the public spec file 00/181800/1 submit/tizen/20180618.102358
Amit KS [Mon, 18 Jun 2018 08:45:54 +0000 (14:15 +0530)]
Applying remove re-build command patchset in the public spec file

In the build section, scons build is done. So we can use the result
on the install section without rebuild using scons.

Change-Id: I05254fddd617f7c4af35a16e07c584da2b020e03
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoMerge "Update Snapshot(2018-06-13)" into tizen
Pyun DoHyun [Mon, 18 Jun 2018 06:56:36 +0000 (06:56 +0000)]
Merge "Update Snapshot(2018-06-13)" into tizen

6 years agoMerge "Remove re-build command in the install section" into tizen
Pyun DoHyun [Mon, 18 Jun 2018 06:56:24 +0000 (06:56 +0000)]
Merge "Remove re-build command in the install section" into tizen

6 years agoMerge "Crash in CATerminate" into tizen
Pyun DoHyun [Mon, 18 Jun 2018 06:56:16 +0000 (06:56 +0000)]
Merge "Crash in CATerminate" into tizen

6 years agoMerge "Add missing stack errors to android code" into tizen
Pyun DoHyun [Mon, 18 Jun 2018 06:56:07 +0000 (06:56 +0000)]
Merge "Add missing stack errors to android code" into tizen

6 years agoMerge "Fix build error dlog string" into tizen
Pyun DoHyun [Mon, 18 Jun 2018 06:55:59 +0000 (06:55 +0000)]
Merge "Fix build error dlog string" into tizen

6 years agoUpdate Snapshot(2018-06-13) 60/181760/1
Amit KS [Wed, 13 Jun 2018 11:36:32 +0000 (17:06 +0530)]
Update Snapshot(2018-06-13)

Change-Id: Icd6f0c7e1f2c7295b125b86739533e18e131ed5b
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoRemove re-build command in the install section 59/181759/1
Amit KS [Mon, 18 Jun 2018 05:01:11 +0000 (10:31 +0530)]
Remove re-build command in the install section

In the build section, scons build is done. So we can use the result
on the install section without rebuild using scons.

Change-Id: I33d47209d0898d703dcedba6bfd00a91d959c9b6
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoCrash in CATerminate 58/181758/1
Veeraj Khokale [Thu, 7 Jun 2018 13:30:59 +0000 (19:00 +0530)]
Crash in CATerminate

The variable caglobals.tcp.terminate is used to signal the
receiver thread to stop. However using a volatile variable
to synchronize between threads is undefined behaviour as
per the C/C++ standards. In this particular case due to
cache coherence behaviour on SMP mobile(especially ARM)
multi core processors, the receiver thread is not guaranteed
to see the change to the terminate variable as soon as
adapter is terminated and this delay could cause an ANR.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/290
(cherry picked from commit 38101be161271b68cee847748d71fb4ded73bc5a)

Change-Id: Ib18b91b9efde71d4075c0ec9c9639ac8051df6b6
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoAdd missing stack errors to android code 57/181757/1
harish_kumar [Fri, 8 Jun 2018 12:36:05 +0000 (18:06 +0530)]
Add missing stack errors to android code

Add missing OCStackResult enum values to errorcode.java file
and JniUtils.h.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/291
(cherry picked from commit e2545fc58de379f686ac60c43cffb1d032620c77)

Change-Id: I0ddd8aadbf15366128c4b3ed30b3eb3eb4d85fc5
Signed-off-by: harish_kumar <harish.191@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoFix build error dlog string 56/181756/1
v.riznyk [Wed, 6 Jun 2018 10:03:38 +0000 (13:03 +0300)]
Fix build error dlog string

Patch was tested

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/289
(cherry picked from commit b1c8909fa7626bb06f8579aca6a3fb7cdb3ccef4)

Change-Id: I5c10ed7e0a74a8d16a007a0a83185dd8ea2390e1
Signed-off-by: v.riznyk <v.riznyk@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years ago[CONPRO-1295] Fix build error dlog string 00/181100/1 accepted/tizen/unified/20180612.044134 submit/tizen/20180608.063112
v.riznyk [Wed, 6 Jun 2018 10:03:38 +0000 (13:03 +0300)]
[CONPRO-1295] Fix build error dlog string

Patch was tested
https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/289
(cherry picked from commit b1c8909fa7626bb06f8579aca6a3fb7cdb3ccef4)

Change-Id: I816cf45ea6206929749b1ab8c395c985a72fa6be
Signed-off-by: v.riznyk <v.riznyk@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoUpdate Snapshot(2018-05-02) 60/177860/1
Amit KS [Fri, 4 May 2018 05:20:44 +0000 (10:50 +0530)]
Update Snapshot(2018-05-02)

Change-Id: I7d952ce967acdcd9fe305e5c00d48b1311982c30
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoClearing pending exceptions in JNI env 59/177859/1
Harry [Wed, 2 May 2018 13:33:34 +0000 (19:03 +0530)]
Clearing pending exceptions in JNI env

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/287
(cherry picked from commit 312f0a735dea35925da0d80a916d0d9cf542932e)

Change-Id: I2830f50706a5818375745a406d3ff4b7f8ecdb1c
Signed-off-by: Harry <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoUpdate Snapshot(2018-04-25) 58/177858/1
Amit KS [Fri, 4 May 2018 05:18:11 +0000 (10:48 +0530)]
Update Snapshot(2018-04-25)

Change-Id: I1b9d298f47b7be8efadb90d1c327467fc7b5e5fe
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoAdded Samsung Specific Property(sso list) for easy setup 56/177856/1
Kush [Mon, 16 Apr 2018 14:17:43 +0000 (19:47 +0530)]
Added Samsung Specific Property(sso list) for easy setup

Following Samsung Specific Property is added :
Resource: Device Configuration (rt = "oic.r.devconf")
Property Name: SSO List Information
Key: "x.com.samsung.ssolist"
Type: String (JSON value with array of string internally).
Access Mode: Read Only
Description: SSO List information

Changes made at Mediator and Enrollee Side (Samsung specific source).

Linux Sample apps updated and verified (Samsung Specific Sample Apps).

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/284
(cherry picked from commit 26aec98b390c57957416dff8c3e9a920299aad8a)

Change-Id: Ib5143bb96488820b01404c2ec68dcf04c9f6a02c
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoDisable TCP server role 97/177597/1
Veeraj Khokale [Wed, 25 Apr 2018 13:46:53 +0000 (19:16 +0530)]
Disable TCP server role

TCP server is used only in client role to connect to
cloud server. A critical vulnerability is reported when
ifw-thing process in TV connects to other device via
TCP(D2D) which can compromise the Policy engine. Therefore
disable TCP server role based on build configuration.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/286
(cherry picked from commit fbd41449a05001403bcf60169a3c780d97001e7a)

Change-Id: Iefdd1cf9ef9524cfb6cf48d1219b0b7e3e88bb9a
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoUpdate Snapshot(2018-04-18) 26/176626/1
Amit KS [Fri, 20 Apr 2018 09:30:46 +0000 (15:00 +0530)]
Update Snapshot(2018-04-18)

Change-Id: I2e6bc5d46d982406a7bef07b672b2b3093037dd6
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoCreating socket everytime when network bearer changes (#285) 25/176625/1
Kush Agrawal/SRI-Bangalore-Smart Living/./삼성전자 [Tue, 17 Apr 2018 15:18:55 +0000 (20:48 +0530)]
Creating socket everytime when network bearer changes (#285)

[CONPRO-1269] Creating socket everytime when network bearer changes

Socket was created only once but changed the logic for creating on every network change
When we are switching WifiAP or disconnect/connect again then we are not able to send unicast data from android side . It gives network unreachable error. So to avoid that we are closing and creating sockets again.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/285
(cherry picked from commit 285875048bda46b6ac1a742c25849d70234d7cd1)

Change-Id: I5387e2c49aac35de2c1608c24486644adb8328c1
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoReplace tizen BLE internal APIs with public 24/176624/1
Veeraj Khokale [Thu, 12 Apr 2018 11:07:33 +0000 (16:37 +0530)]
Replace tizen BLE internal APIs with public

Tizen 4.0 build fails in case BLE internal API's are used,
therefore replace them with public API's. All changes are
made under the preprocess define TIZEN_4

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/282
(cherry picked from commit d66f237dc92c15a515332d0416f769d8e856bfe9)

Change-Id: I6b5f9e67209e70bd654db4182c5ef70220792459
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoFix Asan build errors (#281) 91/176391/1 accepted/tizen/unified/20180420.081822 submit/tizen/20180419.060512
dh79.pyun@samsung.com [Tue, 17 Apr 2018 06:31:54 +0000 (15:31 +0900)]
Fix Asan build errors (#281)

Remove duplicate variables
multiple definition of `g_ESEasySetupResource'
multiple definition of `g_ESDevConfResource'
multiple definition of `g_ESCoapCloudConfResource'
multiple definition of `g_ESWiFiConfResource'

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/281
(cherry picked from commit 0cbbcfa65ff14d751dd1193f75b7c20269e26991)

Change-Id: If5f4a7d87e95350d70187cb21e070c5193130487
Signed-off-by: Oleg Ogurtsov <o.ogurtsov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years ago[CONPRO-1269] Creating socket everytime when network bearer changes 71/176271/1
Kush [Tue, 10 Apr 2018 07:14:19 +0000 (12:44 +0530)]
[CONPRO-1269] Creating socket everytime when network bearer changes

Socket was created only once but changed the logic for creating on every network change

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/280
(cherry picked from commit eaa97ac11871f5536ca12e7ab2f9c848b4d99afd)

Change-Id: Iaeabe733b6b8728ae74b1903d49c9596dcf021e8
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoUpdate Snapshot(2018-04-12) 18/175818/1
Amit KS [Thu, 12 Apr 2018 12:38:42 +0000 (18:08 +0530)]
Update Snapshot(2018-04-12)

Change-Id: I34509db28a4ab393675b6783b4a011f72989022f
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoCrash in OCProcessPresence() 17/175817/1
Veeraj Khokale [Fri, 6 Apr 2018 09:03:12 +0000 (14:33 +0530)]
Crash in OCProcessPresence()

1. Set presence to NULL incase allocation of timeout
array fails. This ensures that OCProcessPresence does
not process this cbNode, thereby preventing possible
NULL dereference of timeout.
2. Do not send request if timeout has reached/exceeded
the  PresenceTimeOutSize. This prevents a possible buffer
overrun in accessing the timeout array.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/279
(cherry picked from commit 22079af2bd0f22a80b98c3b17469c3b8ed601ede)

Change-Id: I9398fa4870a719eb0bbaa00102157e8487af5236
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoUpdate Snapshot(2018-04-05) 28/175028/1
Amit KS [Fri, 6 Apr 2018 05:15:26 +0000 (10:45 +0530)]
Update Snapshot(2018-04-05)

Change-Id: I24184456b2aff374d89f7bed23a6481cb1da9eee
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoUnset gatt callback in network monitor 27/175027/1
Veeraj Khokale [Tue, 3 Apr 2018 10:58:55 +0000 (16:28 +0530)]
Unset gatt callback in network monitor

Gatt connection state changed callback is set in the
network monitor (calenwmonitor.c) but is unset in the
gatt client (caleclient.c). Move this to network
monitor instead

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/278
(cherry picked from commit 961ff08710e7acd99277a335f7d9eeca2f68c16e)

Change-Id: I386499c475a241bca840610df823f84d1a74ee0d
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years ago"have choice" error of libmbedtls.so 17/174717/1 submit/tizen/20180404.002721
Vadym Riznyk [Fri, 30 Mar 2018 13:35:56 +0000 (16:35 +0300)]
"have choice" error of libmbedtls.so

delete +%{_libdir}/libmbedtls.so from iotivity-devel

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/277
(cherry picked from commit 3cd231da7e03a322dd10fbfee0b15582647c191e)

Change-Id: I264692bb5ce86cdbcabb11f84b1634b9a1991f8a
Signed-off-by: Oleksiy Volkov <a.volkov@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years agoUpdate Snapshot(2018-03-28) 30/174230/1
Amit KS [Thu, 29 Mar 2018 07:23:59 +0000 (12:53 +0530)]
Update Snapshot(2018-03-28)

Change-Id: I5b107aa308a184b0ee70eef14a2e31d840273b4d
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoSynchronized observe notification using mutex. 23/174223/1
Harry [Thu, 22 Mar 2018 13:43:09 +0000 (19:13 +0530)]
Synchronized observe notification using mutex.

As InProcClientWrapper class creates separate thread for every
obseve callback, There is a chance that more than one thread enter
ObserveCache object and trying to modify m_attributes. More over
same m_attributes is being passed out or RE layer by const reference,
so application is using same member object m_attributes. Mutex allows
only one thread to modify m_attributes.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/276
(cherry picked from commit c87d0d4b14d22349c3563e7cd316d323d068e2ab)

Change-Id: Ibee9b9326e6d7a3be093bc387db70a7c8f9a626d
Signed-off-by: Harry <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years ago[CONPRO-1212] Removing invocation of lock_guard destructor. 19/174219/1
Harry [Wed, 31 Jan 2018 09:22:21 +0000 (14:52 +0530)]
[CONPRO-1212] Removing invocation of lock_guard destructor.

std::lock_guard follows RAII for std::mutex. Invoking
std::lock_guard<std::mutex>::~lock_guard() makes unlock
call twice on underlying mutex. As per the API documentation
calling unlock from thread which does not own lock results in
undefined behaviour.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/243
(cherry picked from commit fc681e089d3bbbbd16f90ad05d53208f9a1602d1)

Change-Id: I9ef2f3eed0e4989a7d73ad1ab40a3bae0a01a11c
Signed-off-by: Harry <h.marappa@samsung.com>
Signed-off-by: Amit KS <amit.s12@samsung.com>
6 years agoUpdate Snapshot(2018-03-21) 30/173630/1 accepted/tizen/unified/20180323.134348 accepted/tizen/unified/20180326.075305 submit/tizen/20180323.050258 submit/tizen/20180325.234529
DoHyun Pyun [Thu, 22 Mar 2018 23:58:35 +0000 (08:58 +0900)]
Update Snapshot(2018-03-21)

Change-Id: I4e58e8e3e61558da4d42132b411fd54a086c8cec
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
6 years ago[CONPRO-1251]Updated typo error 72/173472/3
Kush [Tue, 20 Mar 2018 11:38:36 +0000 (17:08 +0530)]
[CONPRO-1251]Updated typo error

Changed interface declaration in ocobserve.h

Change-Id: If14e1de31caf31ed941c49570e37db8d3bf1a860
Signed-off-by: Kush <kush.agrawal@samsung.com>
6 years agoUpdate Snapshot(2018-03-07) 25/171825/1
Amit [Wed, 7 Mar 2018 11:38:24 +0000 (17:08 +0530)]
Update Snapshot(2018-03-07)

Change-Id: I79678d132217d7056f146a899e1768fb6d27e45a
Signed-off-by: Amit <amit.s12@samsung.com>
6 years agoUpdate Snapshot(2018-02-28) 20/171320/1
Amit [Thu, 1 Mar 2018 06:52:19 +0000 (12:22 +0530)]
Update Snapshot(2018-02-28)

Change-Id: Iac61820dccb00d3c775c0495468dcbb49722c47b
Signed-off-by: Amit <amit.s12@samsung.com>
6 years agoUpdate snapshot(2018-02-21) 44/170844/1
Amit [Thu, 22 Feb 2018 13:46:01 +0000 (19:16 +0530)]
Update snapshot(2018-02-21)

Change-Id: I0c6253b0fc7db9200b9c9281a5c1217e1a18dd9c
Signed-off-by: Amit <amit.s12@samsung.com>
6 years agoUpdate snapshot(2018-02-14) 87/170287/1
DoHyun Pyun [Sun, 18 Feb 2018 23:46:20 +0000 (08:46 +0900)]
Update snapshot(2018-02-14)

Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Change-Id: Id1b73ca10ec8b211a18601956891e92717c6f0a2

6 years agoUpdate snapshot(2018-02-07) 40/169640/2 accepted/tizen/unified/20180208.163721 submit/tizen/20180208.081254 submit/tizen/20180208.081917
Hongkuk, Son [Thu, 8 Feb 2018 04:37:16 +0000 (13:37 +0900)]
Update snapshot(2018-02-07)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
Change-Id: Id7dbc4ca15ab77968a5b2d8103a1bc045c76af04

6 years agoUpdate snapshot(2018-01-31) 48/168848/1 accepted/tizen/unified/20180201.080009 submit/tizen/20180201.042114
Hongkuk, Son [Wed, 31 Jan 2018 10:34:12 +0000 (19:34 +0900)]
Update snapshot(2018-01-31)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I9924efad707f22fb391e2474a441d3d8276d1649

6 years agoUpdate snapshot(2018-01-24) 65/168165/1 accepted/tizen/unified/20180130.144310 submit/tizen/20180125.015148
Hongkuk, Son [Wed, 24 Jan 2018 15:49:11 +0000 (00:49 +0900)]
Update snapshot(2018-01-24)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Ibdaa01124bffca9512ee93aaa0045e5f91effd0c

6 years agoUpdate snapshot(2018-01-17) 89/167489/1 accepted/tizen/unified/20180118.142723 submit/tizen/20180118.072546
Hongkuk, Son [Thu, 18 Jan 2018 03:15:03 +0000 (12:15 +0900)]
Update snapshot(2018-01-17)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Ifcbe9a53b46849c046ffc8d0276dc69f8a154465

6 years agoUpdate snapshot(2018-01-10) 78/166578/1 accepted/tizen/unified/20180111.074230 submit/tizen/20180111.020111
Hongkuk, Son [Thu, 11 Jan 2018 01:38:46 +0000 (10:38 +0900)]
Update snapshot(2018-01-10)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I28f0ac1b4501582c84236f8ef8d8212790cd9e70

6 years agoUpdate snapshot(2018-01-04) 76/165876/1 accepted/tizen/unified/20180108.062548 submit/tizen/20180105.072814
Hongkuk, Son [Thu, 4 Jan 2018 11:47:25 +0000 (20:47 +0900)]
Update snapshot(2018-01-04)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Ifc34479a8f033e99bbe0740f3e4d281e723aec9a

6 years agoUpdate snapshot(2017-12-20) 16/164716/1 accepted/tizen/unified/20171221.071331 submit/tizen/20171221.013850
Hongkuk, Son [Wed, 20 Dec 2017 12:30:42 +0000 (21:30 +0900)]
Update snapshot(2017-12-20)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I4d948dca96a3ae784cc0278e96b09c49f809bd06

6 years agoUpdate snapshot(2017-12-14) 70/163970/1 accepted/tizen/unified/20171215.060615 submit/tizen/20171214.102437
Hongkuk, Son [Thu, 14 Dec 2017 09:01:34 +0000 (18:01 +0900)]
Update snapshot(2017-12-14)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Iace03beab45ea8839e72170fd9d9b7b6e31ab58d

6 years agoUpdate snapshot(2017-12-06) 61/163061/1 accepted/tizen/unified/20171211.061308 submit/tizen/20171208.075007
Hongkuk, Son [Thu, 7 Dec 2017 05:29:58 +0000 (14:29 +0900)]
Update snapshot(2017-12-06)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I8eea641086585cab78abc370067e76b0f4fe34b2

6 years agoUpdate snapshot(2017-11-29) 50/162250/1 accepted/tizen/unified/20171130.113340 submit/tizen/20171130.055456
Hongkuk, Son [Thu, 30 Nov 2017 02:03:56 +0000 (11:03 +0900)]
Update snapshot(2017-11-29)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Id4d682d07ae11ccff14f9548c930ce146df8cf85

6 years agoUpdate snapshot(2017-11-23) 31/161531/1 accepted/tizen/unified/20171124.064710 submit/tizen/20171124.015816
Hongkuk, Son [Fri, 24 Nov 2017 01:49:14 +0000 (10:49 +0900)]
Update snapshot(2017-11-23)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I4daa62ca37c2ef8e0a739f63a258022ccdc354d8

6 years agoUpdate snapshot(2017-11-14) 31/160231/1 accepted/tizen/unified/20171115.174050 submit/tizen/20171115.060233
Hongkuk, Son [Wed, 15 Nov 2017 02:34:20 +0000 (11:34 +0900)]
Update snapshot(2017-11-14)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Ief7e3ae9c8c4e11ab1f7f82d05b3879fc5afc0ef

6 years agoUpdate snapshot(2017-11-08) 86/159486/1
Hongkuk, Son [Thu, 9 Nov 2017 07:16:19 +0000 (16:16 +0900)]
Update snapshot(2017-11-08)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I96da45cf94f6940c6ac37f57912fbfa61516630d

7 years agoUpdate snapshot(2017-11-02) 54/158754/1 accepted/tizen/unified/20171106.073102 submit/tizen/20171103.052424
Hongkuk, Son [Fri, 3 Nov 2017 01:17:44 +0000 (10:17 +0900)]
Update snapshot(2017-11-02)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I2a5a1b9b72b71b1979f136aadce4ac0534765641

7 years agoUpdate snapshot(2017-10-25) 93/158193/1
Hongkuk, Son [Mon, 30 Oct 2017 09:04:27 +0000 (18:04 +0900)]
Update snapshot(2017-10-25)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Ib3354833ae4d27bcbcd5718358886e02e932299f

7 years agoUpdate snapshot(2017-10-11) 34/155134/1
Hongkuk, Son [Thu, 12 Oct 2017 06:41:29 +0000 (15:41 +0900)]
Update snapshot(2017-10-11)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Ia16b9b063f1ca9f2734e865385d7a519c3d2f5bb

7 years agoUpdate snapshot(2017-10-04) 27/154427/1
Hongkuk, Son [Tue, 10 Oct 2017 07:47:00 +0000 (16:47 +0900)]
Update snapshot(2017-10-04)

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: Idf480dc4361b14c8902e15f74ca253a55b2f3e1e

7 years agoreplace : iotivity -> iotivity-sec 10/153710/3 accepted/tizen/unified/20171010.063815 submit/tizen/20171010.021131
Hongkuk, Son [Fri, 29 Sep 2017 07:24:47 +0000 (16:24 +0900)]
replace : iotivity -> iotivity-sec

Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com>
Change-Id: I5096b7e6faeadd98d5ee48279b24cb9fbdb1f24f

7 years agoRemove unused pkg dependancy 40/136640/2 accepted/tizen/4.0/unified/20170816.011821 accepted/tizen/4.0/unified/20170816.014940 accepted/tizen/4.0/unified/20170828.222902 accepted/tizen/unified/20170710.154111 submit/tizen/20170707.013155 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100006 submit/tizen_4.0_unified/20170814.115522
Jooseok Park [Fri, 30 Jun 2017 11:52:25 +0000 (20:52 +0900)]
Remove unused pkg dependancy

Change-Id: I310c2e37d0a94c3c9cf3191b8162abc873ceb316

7 years agodelete wifi API and pkg config in tizen. 38/136638/2
jihwan.seo [Mon, 6 Feb 2017 02:19:26 +0000 (11:19 +0900)]
delete wifi API and pkg config in tizen.

since IoTivity already use Tizen Connectivity Manager API instead of wifi API.
it should be removed in this and there.

Change-Id: I9a61d7d4d323fe83e988c792284179c099bc2855
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17079
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Conflicts:
resource/csdk/connectivity/build/tizen/scons/SConscript
resource/csdk/stack/samples/tizen/build/scons/SConscript

Change-Id: I401a44313a3a48fd7bfc5ca9c8519ec1186a8083

7 years ago[IOT-1643] Fix illegal memory access - Don't return local string 42/134142/1
George Nash [Thu, 1 Dec 2016 22:31:43 +0000 (14:31 -0800)]
[IOT-1643] Fix illegal memory access - Don't return local string

the std::string ret  is a local varaible and is destroyed when the
what() member function returns.

Put the return string into the m_whatMessage variable. Since
'what()' member function is a const function it can not modify the
member variable m_whatMessage so it is generated in the
ResourceInitException constructor.

Issue found using static analysis tool.

Change-Id: I907b984f35dee59b2f300afe6a640b15a26f020f
Signed-off-by: George Nash <george.nash@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15035
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
7 years agoUpdate spec file (in tools) 28/128828/1 accepted/tizen/unified/20170511.173702 submit/tizen/20170511.133005 submit/tizen/20170511.133012 tizen_4.0.m1_release
Jooseok Park [Thu, 11 May 2017 13:16:00 +0000 (22:16 +0900)]
Update spec file (in tools)

Change-Id: I3840a6b3b10070df30e66ca0de8852d0ea76264e

7 years agoUpdate License 09/128809/1 submit/tizen/20170511.125231
Jooseok Park [Thu, 11 May 2017 11:30:13 +0000 (20:30 +0900)]
Update License

Change-Id: I47861f7f52f61ef1f5dbda201564f058560d3688

7 years agoIOT-1877 : start presence issue 61/118861/2 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170314.173157 accepted/tizen/ivi/20170314.224217 accepted/tizen/mobile/20170314.224141 accepted/tizen/tv/20170314.224144 accepted/tizen/unified/20170315.014656 accepted/tizen/wearable/20170314.224157 submit/tizen/20170314.094744
ChaJiWon [Thu, 2 Mar 2017 12:06:00 +0000 (21:06 +0900)]
IOT-1877 : start presence issue

When called OCStartPresence() second, OCStartPresence() returns error.
Fixed presenceState variable to OC_PRESENCE_UNINITIALIZED.

Change-Id: I089c826f4105eb3aaf835a8feda4c10b848ebd5d
Signed-off-by: ChaJiWon <jw_wonny.cha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17623
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Way Vadhanasin <wayvad@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
(cherry picked from commit 2f11e9592a7374ce28082a523b0c367a6d31baee)
Reviewed-on: https://gerrit.iotivity.org/gerrit/17775

7 years agoMoved a requestId declaration in OCServerRequest 59/118859/1
hyuna0213.jo [Thu, 2 Feb 2017 07:48:37 +0000 (16:48 +0900)]
Moved a requestId declaration in OCServerRequest

we should not add attributes after payload as they get overwritten
when payload content gets copied over.

Change-Id: I0c8a430f92c2196d3f9c816e9ba9d16fd44d88e4
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17015
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
7 years agoFixed memory leak on OCSetDeviceInfo and CARetransmissionDestroy 25/114525/1 accepted/tizen/common/20170214.173627 accepted/tizen/ivi/20170214.225844 accepted/tizen/mobile/20170214.225749 accepted/tizen/tv/20170214.225811 accepted/tizen/unified/20170309.035854 accepted/tizen/wearable/20170214.225829 submit/tizen/20170214.012629 submit/tizen_unified/20170308.100413
jihwanseo [Fri, 10 Feb 2017 07:26:51 +0000 (16:26 +0900)]
Fixed memory leak on OCSetDeviceInfo and CARetransmissionDestroy

Change-Id: Ic53ae0759020fa26f5f70425d3dab09ff5e7d375
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17167
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: jaehyun Cho <jaehyun3.cho@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agofix the easy-setup mediator SConscript 71/113471/1 accepted/tizen/common/20170209.122246 accepted/tizen/ivi/20170210.003759 accepted/tizen/mobile/20170210.003711 accepted/tizen/tv/20170210.003726 accepted/tizen/wearable/20170210.003742 submit/tizen/20170209.011845
Jooseok Park [Wed, 8 Feb 2017 00:42:34 +0000 (09:42 +0900)]
fix the easy-setup mediator SConscript

Change-Id: If484c27c7336608326af35f3e0aebeac4e4a580a

7 years agoFixed double free issue when destroying endpoint 51/113251/1
hyuna0213.jo [Thu, 19 Jan 2017 03:52:31 +0000 (12:52 +0900)]
Fixed double free issue when destroying endpoint

- after destroying memory, set NULL value to prevent double free
- add the usage of oc_mutex_lock() when block data is updated

Change-Id: I78d0d46e37333e099ec737ac4500a2f388d58c4e
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15447
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years agotizen: Enable CLOUD and ship ES lib (downstream) 85/112585/7
Philippe Coval [Wed, 1 Feb 2017 14:35:59 +0000 (15:35 +0100)]
tizen: Enable CLOUD and ship ES lib (downstream)

Sync with upstream's spec

Change-Id: I84ce3dd94e1a90f13f0ff875221ca50600000001
Forwarded: https://gerrit.iotivity.org/gerrit/#/q/I84ce3dd94e1a90f13f0ff875221ca5061828618e
Origin: https://review.tizen.org/gerrit/112583
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
7 years agotizen: Enable CLOUD and ship ES lib 84/112584/6
Philippe Coval [Wed, 1 Feb 2017 14:15:31 +0000 (15:15 +0100)]
tizen: Enable CLOUD and ship ES lib

Change-Id: I84ce3dd94e1a90f13f0ff875221ca5061828618e
Forwarded: https://gerrit.iotivity.org/gerrit/#/q/I84ce3dd94e1a90f13f0ff875221ca5061828618e
Origin: https://review.tizen.org/gerrit/112583
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16965
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
7 years agotizen: Use mediator richsdk lib 83/112583/6
Philippe Coval [Wed, 1 Feb 2017 14:15:31 +0000 (15:15 +0100)]
tizen: Use mediator richsdk lib

Change-Id: Ib63db28697925b02349da82c5feabc1334a39ba2
Forwarded: https://gerrit.iotivity.org/gerrit/#/q/Ib63db28697925b02349da82c5feabc1334a39ba2
Origin: https://review.tizen.org/gerrit/112583
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16963
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
7 years ago[4.0] Unification: Remove Profile Build Dependency & Prepare 4.0 Build 53/112653/3
Geunsik Lim [Thu, 2 Feb 2017 06:15:37 +0000 (15:15 +0900)]
[4.0] Unification: Remove Profile Build Dependency & Prepare 4.0 Build

This is for Tizen 4.0.
 - Removed profile build dependency.
 - Prepare for Tizen 4.0 build.

a. Remove profile build dependency
 - This commit completely removes the build dependencies on Tizen profile.

b. Prepare for Tizen 4.0 build
 - We have assumed that Tizen 4.0 code is going to be more similar with 3.0
   than 2.0. Please do not rely on string '==' compare for version check.
   And, refer to the official macros that are defined in Project Config.
   https://build.tizen.org/project/prjconf?project=<project_name>

@To maintainer:
Please, keep a spec file syntax that was written at an official webpage.
https://docs.fedoraproject.org/ro/Fedora_Draft_Documentation/0.1/html/\
RPM_Guide/ch-specfile-syntax.html
First, if you want to use a comparison operator in %if, don't use
a double-quotes. Second, RPM macro does not support a floating-point
number for the comparison operator.

Change-Id: I8904a25e5e24f6e1bdbd460e434ad563695a3001
Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
7 years agotizen: Use easy-setup mediator 19/110919/1
Philippe Coval [Wed, 18 Jan 2017 14:06:18 +0000 (15:06 +0100)]
tizen: Use easy-setup mediator

Change-Id: I2b0681b70218613c0df0d82e0f46fdc61668296e
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
7 years agobuild: Install provisioning ESException.h 16/110916/1
Jihun Ha [Wed, 18 Jan 2017 08:28:59 +0000 (17:28 +0900)]
build: Install provisioning ESException.h

Add ESException.h to 'inc' folder and a list of install target headers

Change-Id: Ib0b7e7bbab9cf5d8f7cc0c69e223d966e4b055b0
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Origin: https://gerrit.iotivity.org/gerrit/#/c/16521/
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
7 years agoeasy-setup: Rename header to EasySetup.hpp 15/110915/1
Philippe Coval [Tue, 17 Jan 2017 08:48:05 +0000 (09:48 +0100)]
easy-setup: Rename header to EasySetup.hpp

Prevent potential name clash on case insensitive filesystems:

./service/easy-setup/mediator/richsdk/inc/EasySetup.h
./service/easy-setup/enrollee/inc/easysetup.h

Mediator one is C++ so we rename it to .hpp

Change-Id: I6d784378b5065b162d06abb2338bf70e0147d864
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16479
Reviewed-by: George Nash <george.nash@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 98b92dae54a9244e1947937fcf7432ac38956659)
Origin: https://gerrit.iotivity.org/gerrit/#/c/16481/
pp

7 years agobuild: Ship provisionning headers 05/110905/1
Philippe Coval [Wed, 18 Jan 2017 12:03:56 +0000 (13:03 +0100)]
build: Ship provisionning headers

New headers should be installed if part of public API:

- OCProvisionningManager.hpp
- OCCloudProvisioning.hpp

Change-Id: I29a322f2dae9b0d978cdd05d4ca3ad71729d1923
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Origin: https://gerrit.iotivity.org/gerrit/#/c/16531/

7 years agofix the build error when appcliation build resource encapsulation 50/110550/1
Jooseok Park [Tue, 17 Jan 2017 04:16:25 +0000 (13:16 +0900)]
fix the build error when appcliation build resource encapsulation

 - add the missing header file in installed target header

Change-Id: I71b65d6df422bd758e543118c2580ac770213399
Signed-off-by: JooseokPark <jooseok.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16461
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
7 years agorevise the spec file for ES 45/110545/2
Jooseok Park [Tue, 17 Jan 2017 03:49:12 +0000 (12:49 +0900)]
revise the spec file for ES

 - tizen: avoid to duplicate headers
 - Rely on pkg-config instead.

Change-Id: I5944d59bb08d8aeeda617f0af5ba95ae9e76e9cc

7 years agotizen: avoid to duplicate headers 96/110496/2
Philippe Coval [Mon, 16 Jan 2017 20:01:50 +0000 (21:01 +0100)]
tizen: avoid to duplicate headers

Rely on pkg-config instead.

Change-Id: Ieff754b33a21015a17fc9a8d107ee29f1376dfa1
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16449
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
7 years agobuild: Add ES NS paths to pkg-config 95/110495/2
Philippe Coval [Mon, 16 Jan 2017 20:01:50 +0000 (21:01 +0100)]
build: Add ES NS paths to pkg-config

Public easy-setup and notification headers,
are copied in 2 level depths directory.

Change-Id: I7c9fd3a4bd1143c5ea05e7902292af23cf5e8934
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16447
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
7 years agobuild: Install easy-setup headers 94/110494/2
Philippe Coval [Mon, 16 Jan 2017 20:01:50 +0000 (21:01 +0100)]
build: Install easy-setup headers

It look like project public headers
 are installed to 2 level depth
 subdirectories (service/$domain/*.h*)

Change-Id: Ia7a66caf5381d24b56f0c5ac1a91929eff9ba7d7
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16445
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
7 years agobuild: Install notification headers 93/110493/2
Philippe Coval [Mon, 16 Jan 2017 20:01:49 +0000 (21:01 +0100)]
build: Install notification headers

It look like project public headers
 are installed to 2 level depth
 subdirectories (service/$domain/*.h*)

Change-Id: I36ab613ff6aaf7d960e6ba1e94263f8cfdf7c559
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16443
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
7 years agoFix the notification service SConscript 44/110544/1
Jooseok Park [Mon, 16 Jan 2017 07:53:23 +0000 (16:53 +0900)]
Fix the notification service SConscript

 - when application use the notification service, build error occurs.
 - i.e) /usr/include/service/notification/NSConsumerInterface.h:35:22: fatal error: NSCommon.h: No such file or directory
 - Although NSConsumerInterface.h includes NSCommon.h, NSCommon.h file is not installed in SConscript.
 - So, need to add NSCommon.h in installed header

Change-Id: I2f28f84504d68c5506c89513d74adcdf32d2bbfc
Signed-off-by: JooseokPark <jooseok.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/16427
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit e4eca38246a40013530b7df74c1b369960c88897)
Reviewed-on: https://gerrit.iotivity.org/gerrit/16459
Tested-by: Uze Choi <uzchoi@samsung.com>
7 years agomerge tizen_3.0 to tizen branch 29/109329/1 accepted/tizen/common/20170110.155003 accepted/tizen/ivi/20170110.081445 accepted/tizen/mobile/20170110.081323 accepted/tizen/tv/20170110.081348 accepted/tizen/wearable/20170110.081414 submit/tizen/20170110.045728
Jooseok Park [Tue, 20 Dec 2016 05:06:17 +0000 (14:06 +0900)]
merge tizen_3.0 to tizen branch

Change-Id: Ib7f30f0231385d4f6c2d2cee8ff430ad6ed6b6ac

7 years agotizen: Replace speedpython by python-accel 81/105681/2
Philippe Coval [Mon, 19 Dec 2016 09:23:47 +0000 (10:23 +0100)]
tizen: Replace speedpython by python-accel

Tizen toolchain provide same functionality with python-accel's macro

Also Chan Lee from Tizen toolchain project reported:
{
Speedpython macro sometimes cause some build problem

Speedpython macro is parsed when spec parsing time
and it includes other macro in its own.
(I mean, %{build_hostarch} macro)

And when the OBS project config updates,
OBS sometimes cannot sync-up the changes perfectly.

It this case, build error occurs when we use speedpython macro.

It seems OBS limitation but,
we can avoid this problem by using other macro
which provides same functionality.
}

Change-Id: I265220b5e1f2dcb1956ef546a799a94eb460dd88
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
7 years ago[Tizen]change flag which used for detect ip changed 37/105537/1 accepted/tizen/3.0/common/20161219.113747 accepted/tizen/3.0/ivi/20161219.095709 accepted/tizen/3.0/mobile/20161219.091514 accepted/tizen/3.0/tv/20161219.095715 accepted/tizen/3.0/wearable/20161219.091122 submit/tizen_3.0/20161219.033311
bg.chun [Wed, 14 Dec 2016 08:41:26 +0000 (17:41 +0900)]
[Tizen]change flag which used for detect ip changed
change netlink interface flags to addr flags
which used for detect network IPv4/6 changed

Change-Id: I827db082879aafdc3e8bd688917180af09531ab2
Signed-off-by: bg.chun <bg.chun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15595
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
7 years ago[IOT-1671] Fixed base layer terminate logic 62/104962/1 accepted/tizen/3.0/common/20161215.164648 accepted/tizen/3.0/ivi/20161216.083348 accepted/tizen/3.0/mobile/20161216.083319 accepted/tizen/3.0/tv/20161216.083332 accepted/tizen/3.0/wearable/20161216.083338 submit/tizen_3.0/20161215.040308
hyuna0213.jo [Mon, 12 Dec 2016 12:02:51 +0000 (21:02 +0900)]
[IOT-1671] Fixed base layer terminate logic

- ObserverList should be removed before destroying ResourceList
to avoid the error of dangling pointer. because ResourceObserver
object includes a resource handle which is memory address allocated
when resource is created.
- Add function to unset network monitoring callback when OCStop()
is called.

bug: https://jira.iotivity.org/browse/IOT-1671
Change-Id: I8a367a24a2100c97bf612db26bc41db5f47f2feb
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15499
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>