platform/core/system/libsyscommon.git
4 years agoFix build warning on Tizen 6.0 30/230230/1
INSUN PYO [Thu, 9 Apr 2020 00:15:37 +0000 (09:15 +0900)]
Fix build warning on Tizen 6.0

[    8s] In file included from /usr/include/string.h:494,
[    8s]                  from /home/abuild/rpmbuild/BUILD/libsyscommon-4.1/src/libgdbus/dbus-systemd.c:21:
[    8s] In function 'strncpy',
[    8s]     inlined from 'systemd_get_unit_dbus_path' at /home/abuild/rpmbuild/BUILD/libsyscommon-4.1/src/libgdbus/dbus-systemd.c:386:2:
[    8s] /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' output truncated before terminating nul copying 31 bytes from a string of the same length [-Wstringop-truncation]
[    8s]   106 |   return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));

Change-Id: Iaf5f71d7c364db91b495f50e63005778765ba359

4 years agolibgdbus: fix leak 82/222282/1 accepted/tizen/unified/20200114.130725 submit/tizen/20200113.072921
sanghyeok.oh [Mon, 13 Jan 2020 07:52:46 +0000 (16:52 +0900)]
libgdbus: fix leak

Change-Id: Ib15167a5be404e8ca6f690efe269f7a407fefce0
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agolibgdbus: modify code style 70/212970/1 accepted/tizen/unified/20191113.123522 submit/tizen/20191113.004655
sanghyeok.oh [Wed, 28 Aug 2019 06:11:04 +0000 (15:11 +0900)]
libgdbus: modify code style

Change-Id: Iea0fa1803e7d59bbdfdea54124cebd9d17c26858
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agofix build warning 69/212969/1
sanghyeok.oh [Wed, 28 Aug 2019 02:31:07 +0000 (11:31 +0900)]
fix build warning

Change-Id: I5b3dab83dcf2ef1f4c4c61a6f27367595c8ef385
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agore-arrange code 84/212184/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.023410 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090248 accepted/tizen/unified/20190827.043454 accepted/tizen/unified/20190827.110619 submit/tizen/20190819.232229 submit/tizen/20190820.235609 submit/tizen/20190825.052726 submit/tizen/20190826.105051 submit/tizen/20190826.105652 submit/tizen/20190827.024510 submit/tizen/20190829.010425 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185104 tizen_5.5.m2_release
sanghyeok.oh [Fri, 16 Aug 2019 10:21:31 +0000 (19:21 +0900)]
re-arrange code

Change-Id: Ie2f9dcde57b411bd4b84206db2c91c4cae25e1e2
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agolibgdbus: seperate system-daemon's dbus interfaces from dbus-system.h 83/212183/1
sanghyeok.oh [Fri, 16 Aug 2019 10:20:39 +0000 (19:20 +0900)]
libgdbus: seperate system-daemon's dbus interfaces from dbus-system.h

Change-Id: I4b3ec4dedc93652d426f98eff955e725e9ea1f3e
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agolibgdbus: change api name from broadcasting to emit 49/212149/1 accepted/tizen/unified/20190816.112239 submit/tizen/20190816.021726
sanghyeok.oh [Fri, 16 Aug 2019 01:43:27 +0000 (10:43 +0900)]
libgdbus: change api name from broadcasting to emit

"Broadcast" is ambiguous due to the ability to send both broadcast and
unicast signals.

change 'dbus_handle_broadcast_dbus_signal' to 'dbus_handle_emit_dbus_signal'

Change-Id: I5f6f25f2dc74535f7dfc091106600d722f664b50
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agolibgdbus: modified to support unicast signal 06/212106/2 accepted/tizen/unified/20190816.112330 submit/tizen/20190311.062132 submit/tizen/20190814.105129
sanghyeok.oh [Wed, 14 Aug 2019 07:52:22 +0000 (16:52 +0900)]
libgdbus: modified to support unicast signal

Change-Id: I36085cf3d0f4e8e0fd3d78abc259b758112e9720
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agoChange sensitivity interface to fix dbus error 01/211101/2 submit/tizen/20190730.112013
lokilee73 [Tue, 30 Jul 2019 05:16:19 +0000 (14:16 +0900)]
Change sensitivity interface to fix dbus error

Change-Id: Iefbd48ad9031388c149b5584d93c7398e5dae3d6
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoRemove unused SYSTEMD_DBUS_SIGNAL_SYSTEM_STARTUP_FINISHED 87/208887/1
INSUN PYO [Mon, 1 Jul 2019 06:36:44 +0000 (15:36 +0900)]
Remove unused SYSTEMD_DBUS_SIGNAL_SYSTEM_STARTUP_FINISHED

Change-Id: I43f23baf7d8f159f76bc139889fceff7b8b0740a

5 years agoChange library name to libsyscommon. 75/202975/4 accepted/tizen/unified/20190412.124549 submit/tizen/20190410.090025
Yunmi Ha [Mon, 8 Apr 2019 08:33:17 +0000 (17:33 +0900)]
Change library name to libsyscommon.

- Add new function for systemd state

Change-Id: Ie69b718918306fc55e6c801e4c8d0fcaa0ab79b0
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
5 years agoRename systemd_stop_unit_sync() to systemd_stop_unit_wait_stopped() 70/202170/1 accepted/tizen/unified/20190326.024556 submit/tizen/20190325.102033
Hyotaek Shim [Mon, 25 Mar 2019 10:15:45 +0000 (19:15 +0900)]
Rename systemd_stop_unit_sync() to systemd_stop_unit_wait_stopped()

Change-Id: I5c8e321c84e7a54073d8830e7c810e1dae7e5210
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoRename systemd_start_unit_sync() to systemd_start_unit_wait_started() 90/202090/4 submit/tizen/20190325.092207
Hyotaek Shim [Fri, 22 Mar 2019 11:22:45 +0000 (20:22 +0900)]
Rename systemd_start_unit_sync() to systemd_start_unit_wait_started()

Change-Id: I2064b404c8ac562b7e952ca061b2159d0bc1876f
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoAdd .gitignore 92/202092/1
Hyotaek Shim [Fri, 22 Mar 2019 11:25:04 +0000 (20:25 +0900)]
Add .gitignore

Change-Id: I41c66209d6456a02079416c226c147720e244346
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agopower: apply modified dbus spec 29/200629/1 accepted/tizen/unified/20190311.072446 accepted/tizen/unified/20190312.113032 submit/tizen/20190305.100545 submit/tizen/20190305.120315 submit/tizen/20190306.005724 submit/tizen/20190308.023010 submit/tizen/20190311.073252
sanghyeok.oh [Wed, 27 Feb 2019 11:00:17 +0000 (20:00 +0900)]
power: apply modified dbus spec

Change-Id: I4008f782ffa43a08a67516df7f99a53421b97969
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agoAdd Path and Interface for temperature 70/196870/2 accepted/tizen/unified/20190219.154150 accepted/tizen/unified/20190221.165807 submit/tizen/20190218.105211 submit/tizen/20190220.073046
lokilee73 [Mon, 7 Jan 2019 06:30:33 +0000 (15:30 +0900)]
Add Path and Interface for temperature

Change-Id: Icd52d21d0fa90f6367e4354598dd37b02dcc4957
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd dlog for debugging and fix build warnings 82/199282/3 accepted/tizen/unified/20190211.060148 submit/tizen/20190208.083757
lokilee73 [Fri, 8 Feb 2019 06:57:05 +0000 (15:57 +0900)]
Add dlog for debugging and fix build warnings

Change-Id: Idad13056a15185a622f51283589af7bedf5734df
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agolibgdbus: add api to start or stop systemd unit 63/197363/15 submit/tizen/20190208.064159
sanghyeok.oh [Thu, 10 Jan 2019 12:48:35 +0000 (21:48 +0900)]
libgdbus: add api to start or stop systemd unit

Change-Id: Iaa17cc32cff1b763c5ed89ddc69582f9b70e535a
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agosensitivity: add deviced dbus node info 80/196680/1 accepted/tizen/unified/20190108.062324 submit/tizen/20190107.023946 submit/tizen/20190107.113744
sanghyeok.oh [Thu, 3 Jan 2019 11:15:17 +0000 (20:15 +0900)]
sensitivity: add deviced dbus node info

Change-Id: I5a7c4fa14e5f2a8125b5cbddbb40c5ba2ee09d65
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agoRemove executable flag from non-executable files 75/196275/1 accepted/tizen/unified/20181231.125020 submit/tizen/20181227.070601 submit/tizen/20181231.010834 submit/tizen/20181231.070821
lokilee73 [Thu, 27 Dec 2018 02:29:12 +0000 (11:29 +0900)]
Remove executable flag from non-executable files

Change-Id: I1633ca1ff4238a4e2c833dfeb52fb751e7f88a64
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agolibgdbus: replace gdbus proxy call with g_dbus_connection_call 27/184527/2 accepted/tizen/5.0/unified/20181102.021930 accepted/tizen/unified/20180724.073404 submit/tizen/20180724.051226 submit/tizen_5.0/20181101.000004
sanghyeok.oh [Wed, 18 Jul 2018 11:15:29 +0000 (20:15 +0900)]
libgdbus: replace gdbus proxy call with g_dbus_connection_call

Replace g_dbus_proxy_call_with_unix_fd_list_sync with g_dbus_connection_call_with_unix_fd_list_sync.

gdbus proxy is heavy operation - it makes multiple dbus calls to maintain proxy feature.
This functionality is not needed to exchange fd list each other by libgdbus.

Change-Id: I5f7b87614eddfd1a79d7aa82332c97dcc5cc6069
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoAdd dbus_handle_method_async_pairs_with_reply 08/182208/4 accepted/tizen/unified/20180629.061543 submit/tizen/20180625.130238 submit/tizen/20180625.142706 submit/tizen/20180627.063926 submit/tizen/20180627.113622 submit/tizen/20180628.074606
lokilee73 [Thu, 21 Jun 2018 07:42:48 +0000 (16:42 +0900)]
Add dbus_handle_method_async_pairs_with_reply

dbus_handle_method_async_pairs() is just for no reply and used in deviced and storaged.
However, the function has been abnormally used and caused dbus error by unmatched signature
between deviced, storaged and system-popup.
So, it was replaced by dbus_handle_method_async_with_reply_var().

Change-Id: I5452bdb80dd52e72cc4364ff0ce1cf86490d9822
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoRemove unused dbus path and interface 70/180670/1 submit/tizen/20180611.010039 submit/tizen/20180620.045205
pr.jung [Fri, 1 Jun 2018 02:20:13 +0000 (11:20 +0900)]
Remove unused dbus path and interface

Change-Id: I5fcfd3a6d6c86dad94522e09ceaf224ddd73c3d9
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agolibgdbus: fix bug. pass freed memory pointer 46/177246/1 accepted/tizen/unified/20180427.062425 submit/tizen/20180426.110342
sanghyeok.oh [Thu, 26 Apr 2018 10:59:48 +0000 (19:59 +0900)]
libgdbus: fix bug. pass freed memory pointer

Change-Id: Idad7954352aa462254d4051910a3f7e6b685c1cc
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agomake: change to cmake 20/174320/8 accepted/tizen/unified/20180411.065632 submit/tizen/20180411.045338
sanghyeok.oh [Fri, 30 Mar 2018 05:09:58 +0000 (14:09 +0900)]
make: change to cmake

Change-Id: I57979761fed3eeef223a236308c8d8e529fb5b37
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
6 years agoRemove dbus_handle_init to solve timimg issue 64/174864/3 accepted/tizen/unified/20180406.061942 submit/tizen/20180405.024125 submit/tizen/20180405.044417 submit/tizen/20180405.051333 submit/tizen/20180405.111955
lokilee73 [Wed, 4 Apr 2018 12:31:56 +0000 (21:31 +0900)]
Remove dbus_handle_init to solve timimg issue

refactor dbus_handle_init to two parts in deviced, storaged and feedbackd.
It's to solve timing issue in deviced by AddPoweroffWait method.

Change-Id: I32246f4667dc29447037636ae9b8bf02593e36fe
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoRemove unused Requires 37/173837/1 accepted/tizen/unified/20180329.054113 accepted/tizen/unified/20180403.060231 submit/tizen/20180327.003938 submit/tizen/20180403.011657
pr.jung [Mon, 26 Mar 2018 08:36:40 +0000 (17:36 +0900)]
Remove unused Requires

Change-Id: Id57b7a4b01698fcc2aeeaba233e96c650eec9e7a
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agolibgdbus: Add common internal apis for gdbus 27/173827/2
pr.jung [Mon, 26 Mar 2018 07:21:32 +0000 (16:21 +0900)]
libgdbus: Add common internal apis for gdbus

Change-Id: I4522aa8771370086c4984d58ae0d95ecc110a808
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Sun, 15 Jan 2017 23:13:35 +0000 (15:13 -0800)]
Initial empty repository