platform/core/connectivity/zigbee-manager.git
6 years agoAdd initial code for GTest 69/179869/5
Milind Murhekar [Wed, 23 May 2018 05:57:44 +0000 (11:27 +0530)]
Add initial code for GTest

Change-Id: I8c0ec43efe59fa82b3e14d320fa3c66f073158f7
Signed-off-by: Milind Murhekar <m.murhekar@samsung.com>
6 years agofis svace issue 86/173086/1 accepted/tizen/unified/20180320.065815 submit/tizen/20180320.010107
saerome.kim [Mon, 19 Mar 2018 11:33:11 +0000 (20:33 +0900)]
fis svace issue

- WID 317087

Change-Id: I17af8ef3b970d511f80ad994ef164d0820524c31
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoRemove 'warning: user network_fw does not exist - using root' warning 92/160192/1 accepted/tizen/unified/20171115.174037 submit/tizen/20171115.024508
saerome kim [Wed, 15 Nov 2017 01:12:55 +0000 (10:12 +0900)]
Remove 'warning: user network_fw does not exist - using root' warning

Change-Id: I20aa404ab10e7c7daf53238ba559432c32f47002
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix Coverity issue : 22384, 41860 08/157508/1 accepted/tizen/unified/20171025.075243 submit/tizen/20171025.015623
jh8801.jung [Mon, 23 Oct 2017 06:29:37 +0000 (15:29 +0900)]
Fix Coverity issue : 22384, 41860

Signed-off-by: jh8801.jung <jh8801.jung@samsung.com>
Change-Id: I77bab2aa1e4e36407f737c3586cba1c0c102dc65
(cherry picked from commit 2732a5dc69782534ec200cd69d88100d796bd6a5)

7 years agoSynchronize tizen_4.0 and tizen branch. 66/155866/1 accepted/tizen/unified/20171017.070912 submit/tizen/20171016.103845 submit/tizen/20171016.103856
saerome kim [Mon, 16 Oct 2017 10:22:44 +0000 (19:22 +0900)]
Synchronize tizen_4.0 and tizen branch.

Change-Id: I071b18b641117db0392948688a2b26e2ea803b89
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix resource leak : 23614 19/154519/1 accepted/tizen/unified/20171011.070005 submit/tizen/20171010.112852
saerome kim [Tue, 10 Oct 2017 10:39:10 +0000 (19:39 +0900)]
Fix resource leak : 23614

This problem is caused by managing a number of operations to be processed asynchronously in the initialization list.
If the initialization of a function that needs to be processed asynchronously fails, we did not free the previously added asynchronous functions.
To solve this problem, we modified the asynchronous initialization function list to be deleted from the memory when the function creation to be processed asynchronously fails and when the plugin is unloaded.

Change-Id: I66226faedb360d7c2f41fd35db516a63684e112d
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix resource leak problem : 32057, 28497, 41860, 22384, 26742 14/154514/2
saerome kim [Tue, 10 Oct 2017 10:35:49 +0000 (19:35 +0900)]
Fix resource leak problem : 32057, 28497, 41860, 22384, 26742

Change-Id: Ic8ef28d48f31a8b5b7594c4129068b31466056d0
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoMerge "Fix Prevent issue WGID : 36901" into tizen accepted/tizen/unified/20170929.082113 submit/tizen/20170929.023158
saerome kim [Fri, 29 Sep 2017 00:27:53 +0000 (00:27 +0000)]
Merge "Fix Prevent issue WGID : 36901" into tizen

7 years agoFix Prevent issue WGID : 36901 57/153557/1
jh8801.jung [Thu, 28 Sep 2017 23:41:17 +0000 (08:41 +0900)]
Fix Prevent issue WGID : 36901

Signed-off-by: jh8801.jung <jh8801.jung@samsung.com>
Change-Id: Ic7df65b8c9cab89453f6b814825ba3e6690278fa

7 years agoFix coverity issues 75/152975/2 submit/tizen/20170927.120317 submit/tizen/20170927.234325
saerome kim [Wed, 27 Sep 2017 11:52:31 +0000 (20:52 +0900)]
Fix coverity issues
- add missing g_variant_unref()

Change-Id: If81a4104a3891df655de280a90cfa9b7d5a410dc
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years ago[WGID-279204] Fix a potential memory leak problem 82/151482/1 accepted/tizen/unified/20170922.065223 submit/tizen/20170921.063233
saerome kim [Thu, 21 Sep 2017 04:55:26 +0000 (13:55 +0900)]
[WGID-279204] Fix a potential memory leak problem

Change-Id: I1c3a18844118890d8f062e828aba84a73ff2bbab
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoChange zigbee-daemon'owner as network_fw 84/150684/1 accepted/tizen/unified/20170920.081224 submit/tizen/20170918.110239
saerome kim [Mon, 18 Sep 2017 08:43:21 +0000 (17:43 +0900)]
Change zigbee-daemon'owner as network_fw

Change-Id: Ia308c203f09ba0b34749ba88d03bf925278fc399
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoRemove re-start option 82/150682/2
saerome kim [Mon, 18 Sep 2017 08:34:30 +0000 (17:34 +0900)]
Remove re-start option

Change-Id: I11d6ceac4b5ab02f211e9b30727c0dbab85c0a6b
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoApply coding rule (BRC_M_EUS, SPC_M_OPR, SPC_M_KWD) 48/149148/2 accepted/tizen/unified/20170914.065506 submit/tizen/20170914.012205
jh8801.jung [Mon, 11 Sep 2017 23:27:35 +0000 (08:27 +0900)]
Apply coding rule (BRC_M_EUS, SPC_M_OPR, SPC_M_KWD)

Signed-off-by: jh8801.jung <jh8801.jung@samsung.com>
Change-Id: I73373a0ec510f5bf2b98c6c636e5019879f21624

7 years ago[SECSFV-22] Change uid/gid to network_fw 96/143196/1
saerome.kim [Wed, 9 Aug 2017 04:30:21 +0000 (13:30 +0900)]
[SECSFV-22] Change uid/gid to network_fw

Change-Id: Id0d20049720559123efbf87e7530f892f9b587ab
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoRemove codes to copy license files manually. 51/132751/1 accepted/tizen/4.0/unified/20170816.012832 accepted/tizen/4.0/unified/20170828.223559 accepted/tizen/unified/20170608.072539 submit/tizen/20170607.105119 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100003
saerome kim [Wed, 7 Jun 2017 10:39:26 +0000 (19:39 +0900)]
Remove codes to copy license files manually.

Change-Id: Ie23c267824238098715726fc48ccfd17bd4aa8c0
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoAdd license documentation 13/132713/1 accepted/tizen/unified/20170608.072342 submit/tizen/20170607.082854 submit/tizen/20170607.095006
Jiwan Kim [Wed, 7 Jun 2017 08:10:39 +0000 (17:10 +0900)]
Add license documentation

- add '%license' macro on build spec file

Change-Id: I4923f05a6091ba38ed0571125c472ce770ce6880
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix build issue on 64bit environment 36/128936/1 accepted/tizen/unified/20170512.165529 submit/tizen/20170512.061224 tizen_4.0.m1_release
Jiwan Kim [Fri, 12 May 2017 06:08:56 +0000 (15:08 +0900)]
Fix build issue on 64bit environment

Change-Id: I95653b356fe68d8125262b32b2d21c903d21f85b
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix svace issues submit/tizen/20170512.045637
Jiwan Kim [Thu, 11 May 2017 05:29:21 +0000 (14:29 +0900)]
Fix svace issues

Change-Id: I4f396cba56dfcf97505180131a7537c16320752b
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix to follow coding convention
Jiwan Kim [Wed, 10 May 2017 11:25:51 +0000 (20:25 +0900)]
Fix to follow coding convention

Change-Id: Ic3841e498e07fc936d49a9cbeebdb36b9482ec15
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoDisable privilege check function temporally until ACR compelte
saerome kim [Fri, 28 Apr 2017 01:39:45 +0000 (10:39 +0900)]
Disable privilege check function temporally until ACR compelte

Change-Id: I542ad01de258dfaef119bb97f2cb109a877087df
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix a bug on zb_zcl_identify_query()
Jiwan Kim [Wed, 26 Apr 2017 04:36:07 +0000 (13:36 +0900)]
Fix a bug on zb_zcl_identify_query()

- Callback was not launched as 'dest_ep' was not set.
- Set 'dest_ep' with given parameter.

Change-Id: I7f18a1ee51e17c4bcfb793d4e5b330db8c963a80
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoSupport asynchronous plugin initializer
Jiwan Kim [Mon, 3 Apr 2017 06:33:56 +0000 (15:33 +0900)]
Support asynchronous plugin initializer

- To support firmware update on plugin initialize time,
  asynchronous init function is required.
- Add support logic for async initializer.

Change-Id: Ie8631a62c0fdb97cef87383bf075e3e346880a97
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoAdjust privileges for platform APIs
Jiwan Kim [Fri, 24 Mar 2017 08:02:43 +0000 (17:02 +0900)]
Adjust privileges for platform APIs

- coex_start / stop
- aps_send
- zcl_send
- send_to_local

Change-Id: I16ef2ec9fc8d1d73b9668d79c42ec1c486c58fc3
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoAdd privilege check method
Jiwan Kim [Fri, 24 Mar 2017 04:35:05 +0000 (13:35 +0900)]
Add privilege check method

- 'check_privilege' method is added for privilege check

Change-Id: Ic4508898d95274a069e84ffa445389fc5923652d
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoSupport privilege check on daemon side
Jiwan Kim [Wed, 22 Mar 2017 10:38:29 +0000 (19:38 +0900)]
Support privilege check on daemon side

Change-Id: I2c6ce0da7276752d04625a251f3644e3c8d11150
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoAdd getting ownwership of 'org.tizen.zigbee.manager' for D-Bus activation
saerome kim [Fri, 17 Feb 2017 02:07:05 +0000 (11:07 +0900)]
Add getting ownwership of 'org.tizen.zigbee.manager' for D-Bus activation

Change-Id: Iaad9e82dfaf21168a1b5651af8d219f5f5150295
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoChange dbus auto activation bus name
Jiwan Kim [Thu, 16 Feb 2017 04:18:48 +0000 (13:18 +0900)]
Change dbus auto activation bus name

- Currently, zb_create() registers dbus signal
  but it makes daemon activated.
- Change only 'enable' method can execute daemon.

Change-Id: I7bf25df517f2393d95af87c164ae9e69cecc389d
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix return value of disable method
Jiwan Kim [Wed, 15 Feb 2017 11:16:53 +0000 (20:16 +0900)]
Fix return value of disable method

Change-Id: I59b4aab30a067617bdd5a5d82c9999caf6f4d3ab
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChange 'disable' method logic
Jiwan Kim [Wed, 15 Feb 2017 02:07:06 +0000 (11:07 +0900)]
Change 'disable' method logic

- If 'disable' method called,
  daemon terminates itself.
- Fix unexpected related crash issue related.

Change-Id: I0207e7466f99cc93fb9389c4b572158f9eb392d2
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChange 'enable' method to async operation
Jiwan Kim [Tue, 14 Feb 2017 08:33:25 +0000 (17:33 +0900)]
Change 'enable' method to async operation

- 'enable' method is used to execute zigbee daemon on demand.
- Its synchronous operation may cause unexpected gvariant crash,
  change this function to act asynchronously.

Change-Id: I3bd9ce51eb4c0642e7b201d58dca46416529846e
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix issue with scene cluster
Jiwan Kim [Mon, 13 Feb 2017 08:03:39 +0000 (17:03 +0900)]
Fix issue with scene cluster

- Fix data receiving logic

Change-Id: Iaa7e84733a3c41e9b91d54cfafd30d09afce0d4d
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix issues for Group cluster
Jiwan Kim [Mon, 13 Feb 2017 04:34:54 +0000 (13:34 +0900)]
Fix issues for Group cluster

- There are some bugs on view_group / get_group_membership method

Change-Id: I48e05e32ef9954fd2196ad5733c33315a2bbecfe
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix SVace warnings
Jiwan Kim [Fri, 10 Feb 2017 07:46:21 +0000 (16:46 +0900)]
Fix SVace warnings

Change-Id: I3c031601f7bb2de606d17fd7922766752d00385d
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChange signal name from 'status_change_rsp' to 'status_change_rpt'
saerome kim [Fri, 10 Feb 2017 07:13:26 +0000 (16:13 +0900)]
Change signal name from 'status_change_rsp' to 'status_change_rpt'

Change-Id: I485a68aff11591c2ff899b2d43cacf79b4e66138
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoChange signal / method name
saerome.kim [Fri, 10 Feb 2017 05:15:15 +0000 (14:15 +0900)]
Change signal / method name
 - nwk_disc_req -> mgnt_nwk_disc_req
 - nwk_disc_rsp -> mgmt_nwk_disc_rsp
 - mgmt_left_rsp -> mgmt_leave_rsp
 - nwk_update_req -> mgmt_nwk_update_req

Change-Id: I838e4f70d2bbc1a5eb1c61a0156dd1161bcba788
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoRemove unused zigbee-client rpm package
Jiwan Kim [Fri, 10 Feb 2017 00:44:17 +0000 (09:44 +0900)]
Remove unused zigbee-client rpm package

Change-Id: I9c45f0e235cbf36a152912e8f646599e7d0a639e
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix size mismatch issue on get_cluster_list method
Jiwan Kim [Thu, 9 Feb 2017 07:55:56 +0000 (16:55 +0900)]
Fix size mismatch issue on get_cluster_list method

Change-Id: I94e7729b94849d11b6033c3ced48de448866c538
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoModify API to get in/out cluster list
Jiwan Kim [Thu, 9 Feb 2017 05:14:20 +0000 (14:14 +0900)]
Modify API to get in/out cluster list

- Fix get_cluster_list method and related logic

Change-Id: Id7f7b1c2faf551d41daee2ede14abbd3627f55ec
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix a segmentation fault error when calling read_attribute_req API
saerome kim [Wed, 8 Feb 2017 11:51:26 +0000 (20:51 +0900)]
Fix a segmentation fault error when calling read_attribute_req API

- error message
Program terminated with signal SIGSEGV, Segmentation fault.
    at /usr/src/debug/zigbee-plugin-ember-0.0.1/ember/app/framework/util/af-main-host.c:6328

Change-Id: Iead9324095448bba489bc5be0cb3dfe2eb5e00d8
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix mismatched dbus noti param order
Jiwan Kim [Wed, 8 Feb 2017 09:35:35 +0000 (18:35 +0900)]
Fix mismatched dbus noti param order

Change-Id: I99f08a98b84532f9e0569c39c8ef9c312ea4c83a
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix dbus parameter 'ay' to 'a(y)'
Jiwan Kim [Wed, 8 Feb 2017 08:12:01 +0000 (17:12 +0900)]
Fix dbus parameter 'ay' to 'a(y)'

- These parameters are not used currently.
- But change those use cases for future use

Change-Id: If364601c957ef418f6d23960334db800b906221a
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoRemove warning related signedness
Jiwan Kim [Wed, 8 Feb 2017 07:02:40 +0000 (16:02 +0900)]
Remove warning related signedness

- Member variable in structure was not matched with
  XML introspection file.
- Change signedness with XML introspection.

Change-Id: I245cd6cc795dcd52bdbccf3fc478b121db9f17fe
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplement ZCL Global control
Jiwan Kim [Tue, 7 Feb 2017 11:16:28 +0000 (20:16 +0900)]
Implement ZCL Global control

Change-Id: I80b8530899ed6d2ee3c601767e97a466fb331777
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplement ZDO Dev control
Jiwan Kim [Mon, 6 Feb 2017 06:02:44 +0000 (15:02 +0900)]
Implement ZDO Dev control

Change-Id: I1c64363769dad82b6a481fd97a877c3bd78a5f07
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImpelement Custom cluster
saerome kim [Mon, 6 Feb 2017 23:24:35 +0000 (08:24 +0900)]
Impelement Custom cluster

Change-Id: Iae3bf86bef7ecdaf5df31cc72def83e3ae674db0
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZDO Bind cluster
saerome kim [Mon, 6 Feb 2017 00:24:36 +0000 (09:24 +0900)]
Implement ZDO Bind cluster

Change-Id: I0455770fc501b90165cdb443b49aa854537a31ba
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Thermostat cluster
saerome kim [Sat, 4 Feb 2017 07:54:21 +0000 (16:54 +0900)]
Implement ZCL Thermostat cluster

Change-Id: If9ccaabd96e4489b2363f035d1479e4d18ee8f6f
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Scene cluster
saerome kim [Sat, 4 Feb 2017 07:09:07 +0000 (16:09 +0900)]
Implement ZCL Scene cluster
 - fix typo at Poll Controll cluster

Change-Id: Ibc5428c8ada49b3e69b3a7ef20f3ad8da608de3c
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Poll Control cluster
saerome kim [Fri, 3 Feb 2017 09:00:23 +0000 (18:00 +0900)]
Implement ZCL Poll Control cluster

Change-Id: Idb4242563a6f3ad75127932616596d60dcfb2f27
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Level Control cluster
saerome kim [Fri, 3 Feb 2017 07:40:37 +0000 (16:40 +0900)]
Implement ZCL Level Control cluster

Change-Id: Id7c272f21b1ab351bb1d7cdd66cbe491ffc21081
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Identify Cluster
saerome kim [Fri, 3 Feb 2017 06:09:18 +0000 (15:09 +0900)]
Implement ZCL Identify Cluster

Change-Id: I7bba239e0f92b4dea1ff2e1b86041dcd3df8a213
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL IAS Zone Cluster
saerome.kim [Fri, 3 Feb 2017 02:22:11 +0000 (11:22 +0900)]
Implement ZCL IAS Zone Cluster

Change-Id: I50e3943f1ed0c2df97170aeeb73cd395cf13e3a7
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Group cluster
saerome kim [Thu, 2 Feb 2017 13:20:18 +0000 (22:20 +0900)]
Implement ZCL Group cluster

Change-Id: Ibc5b662e3e406af602789ebb8c8c40034bcea71b
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Color Control Cluster
saerome kim [Wed, 1 Feb 2017 10:55:14 +0000 (19:55 +0900)]
Implement ZCL Color Control Cluster

Change-Id: I220faf5a1cb9e644e5f1b6dc34a3e5064743a670
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoAdd missing memory deallocation
Jiwan Kim [Wed, 1 Feb 2017 23:45:22 +0000 (08:45 +0900)]
Add missing memory deallocation

- ZigbeeServiceInterfaceRespCbData_t was not deallocated in some case.
- Add g_free() for above cases.

Change-Id: I09b8433251b0dad88c7e9866eb03da98ec8bf13c
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplement ZCL OnOff Cluster
Jiwan Kim [Wed, 1 Feb 2017 09:18:30 +0000 (18:18 +0900)]
Implement ZCL OnOff Cluster

Change-Id: Ib7c0bc4de5b45527435294a6ab1144fab3672eb1
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplement ZCL Basic Cluster
saerome kim [Wed, 1 Feb 2017 04:51:12 +0000 (13:51 +0900)]
Implement ZCL Basic Cluster

Problem : ZCL Basic cluster is not implemented
Cause : ZCL Basic cluster is not implemented
Solution : Implemented ZCL Basic cluster in daemon

Change-Id: I041c45b76c58531f78450e58f7f3bd319f4a891b
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoImplement ZCL Alarm Cluster
saerome kim [Tue, 31 Jan 2017 23:49:46 +0000 (08:49 +0900)]
Implement ZCL Alarm Cluster

Problem : ZCL Alarm cluster is not implemented
Cause : ZCL Alarm cluster is not implemented
Solution : Implemented ZCL Alarm cluster in daemon

Change-Id: I5d2575d3abdd56d9937bb7c0acdfc1e84847a0db
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix GVariant match on service method
Jiwan Kim [Wed, 1 Feb 2017 04:44:59 +0000 (13:44 +0900)]
Fix GVariant match on service method

- Fix unchanged 'ay' into 'a(y)'
- Fix bugs on getting eui64
- Implementation for some notifications
- Fix bug on request creation logic

Change-Id: I5399dd91d47d3449bef22f37146305cf7ed0ef54
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoImplementation for service methods
Jiwan Kim [Tue, 31 Jan 2017 10:56:18 +0000 (19:56 +0900)]
Implementation for service methods

Change-Id: Ib2989da2d6e6264c7cb8413d0f02c788b5a37d4e
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix handling GVariant byte array
Jiwan Kim [Thu, 26 Jan 2017 06:52:01 +0000 (15:52 +0900)]
Fix handling GVariant byte array

- GDbus XML codegen replaces 'ay' variant
  (written XML introspection file)
  into '^ay' variant.
- If there is '0x0' inside of byte array,
  array would be broken. (it acts as a null terminator)

Change-Id: Iedbbd014ce87d4286a5f3221a0156e8cbf696025
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix gvariant string
Jiwan Kim [Wed, 25 Jan 2017 09:02:13 +0000 (18:02 +0900)]
Fix gvariant string

- After changing with XML introspection,
  regarding 'ay' variable makes some unexpected error.
- Change gvariant string and logic to get variable properly.
- Another variable will be updated.

Change-Id: Iaf96ef377fbbfa144129dd3f1ef4b9f746f6de1b
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoRestore GDBus API from async to sync.
saerome.kim [Mon, 23 Jan 2017 12:10:15 +0000 (21:10 +0900)]
Restore GDBus API from async to sync.
 - add result parameters to let app know the result of its calling

Change-Id: I2768c25620db74fae8d45174e3e267fcd68e3bd3
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoAdd logic to handle notification and response
Jiwan Kim [Wed, 18 Jan 2017 12:53:22 +0000 (21:53 +0900)]
Add logic to handle notification and response

- Change GDBus most of sync API to async API
- Added Service notification.

Change-Id: I0fe5be4c62a348c1c8a21e40d866272e503fb5f6
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChange GDBus methods from sync to async
saerome kim [Sun, 22 Jan 2017 23:46:56 +0000 (08:46 +0900)]
Change GDBus methods from sync to async

Change-Id: I16ab3b04a6761eaace6878ed7b4133e5d9da48c9
Signed-off-by: saerome kim <saerome.kim@samsung.com>
7 years agoFix crash on dbus method
Jiwan Kim [Tue, 17 Jan 2017 08:34:01 +0000 (17:34 +0900)]
Fix crash on dbus method

- zigbee_on_name_acquired() overwrites 'service_interface->service' variable
  and causes crash on method call.

Change-Id: I3a448f861f482006ad4eee3af3c4f51f52484e6f
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix a bug
saerome.kim [Tue, 17 Jan 2017 06:45:57 +0000 (15:45 +0900)]
Fix a bug
 - change parameter name at null check routine

Change-Id: I8f76db030c0969d0a5f1ef4519f9f0603db9353f
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoAdd notification handling framework
Suresh Kumar N [Mon, 16 Jan 2017 13:39:41 +0000 (19:09 +0530)]
Add notification handling framework

Change-Id: I348e88ae18b423b259aff0db70bffa48b0f49125
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoFix some missing function flow
Jiwan Kim [Fri, 13 Jan 2017 02:22:38 +0000 (11:22 +0900)]
Fix some missing function flow

 - There is some missing functions when dbus method called.

Change-Id: Ia650967c13febb7ee6e383479c398c810fb9cb3d
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoFix bugs
saerome.kim [Fri, 13 Jan 2017 02:15:24 +0000 (11:15 +0900)]
Fix bugs
 - tag name is wrong
 - remove useless null check routine

Change-Id: I518a88cf51e67fce18c2e3b570a584008614b6ca
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoRename type definiton file to following Zigbee specification
saerome kim [Wed, 11 Jan 2017 08:57:34 +0000 (17:57 +0900)]
Rename type definiton file to following Zigbee specification

- Rename all related structures and enums.

Change-Id: Ibd5cb5ca465abf0ab6254765a9d41b72fe108de2
Signed-off-by: saerome kim <saerome.kim@samsung.com>
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoChagne DBus object name following Zigbee Specification
saerome.kim [Tue, 10 Jan 2017 12:52:44 +0000 (21:52 +0900)]
Chagne DBus object name following Zigbee Specification

Change-Id: I41482741b20572c483f13516bbe3ba7f3fb620b2
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
7 years agoFix build error on plugin build
saerome kim [Wed, 11 Jan 2017 06:37:55 +0000 (15:37 +0900)]
Fix build error on plugin build

- If plugin defines TIZEN_DEBUG, it cause build error (Redefinition).
  Add ifndef to avoid redefinition.

Change-Id: Iaf696f91c2ec6f821cb4b1f0fdcba120161641fa
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoUpdate service file
Suresh Kumar N [Mon, 9 Jan 2017 10:55:53 +0000 (16:25 +0530)]
Update service file

Change-Id: I053c72f59c0ed75a379dabccb65f0f8d5381c308
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoAdd driver API to fetch request data
Suresh Kumar N [Fri, 6 Jan 2017 16:23:29 +0000 (21:53 +0530)]
Add driver API to fetch request data
 - Request ID logic abstracted from external world
 - Moved zblib_request.h to internal headers folder

Change-Id: Iaa522dc1144beb5ac2a9fa499b92ceeb22164f3d
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoAdding service interface layer logic for request processing
Suresh Kumar N [Fri, 6 Jan 2017 13:23:05 +0000 (18:53 +0530)]
Adding service interface layer logic for request processing

Modules completed:
 - zcl_color
 - zcl_group
 - zcl_poll_control
 - zcl_scene
 - zclglobal_control
 - zclias_control
 - zclidentify_control
 - zdo_bind
 - zdodev_control

Change-Id: Ibe79794cb323d6397c1cd1de0ece51ebba583730
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
7 years agoAdding service interface layer logic for request processing
Suresh Kumar N [Thu, 29 Dec 2016 16:11:27 +0000 (21:41 +0530)]
Adding service interface layer logic for request processing

Modules completed:
 - alarm
 - custom
 - door_lock
 - fan_control
 - level_control
 - mfglib_control
 - on_off
 - service
 - thermostat
 - zclbasic_control

Change-Id: I3840183d00bfb65278fabc189c1cff512a07b3f6
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoImplementing request & response logic
Suresh Kumar N [Thu, 29 Dec 2016 12:10:00 +0000 (17:40 +0530)]
Implementing request & response logic

Change-Id: I5062e291324fc02aa1fb7385f6ca263b9223bf10
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoImplement module dispatcher functions
Suresh Kumar N [Wed, 28 Dec 2016 12:46:58 +0000 (18:16 +0530)]
Implement module dispatcher functions

Change-Id: I4138335f9f98a067cd6e90688fad9085c83e0466
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoAdded deep copy logic for request data
Suresh Kumar N [Fri, 23 Dec 2016 16:14:54 +0000 (21:44 +0530)]
Added deep copy logic for request data
 - Data copy + data free

Change-Id: Ied89725d195461a9d4104f0cc3163f12c486edab
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoRequest ID (skeleton)
Suresh Kumar N [Wed, 21 Dec 2016 15:51:18 +0000 (21:21 +0530)]
Request ID (skeleton)

Change-Id: I3154b2f955e09dee7368c5b5c94de3fc79e4daaa
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoAdd module APIs in zigbee-lib
Suresh Kumar N [Tue, 20 Dec 2016 17:52:24 +0000 (23:22 +0530)]
Add module APIs in zigbee-lib

Change-Id: Id59da23fbc1f5a9ea4d5db1dcb789c0c1c6bfd91
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoBase patch (skeleton code)
Suresh Kumar N [Wed, 14 Dec 2016 15:30:33 +0000 (21:00 +0530)]
Base patch (skeleton code)

Change-Id: I7bbe8642a4bc51df851f4f6e8364a08ac9ea3d39
Signed-off-by: Suresh Kumar N <suresh.n@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Thu, 13 Apr 2017 10:51:35 +0000 (03:51 -0700)]
Initial empty repository