summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Hyunho Kang [Mon, 13 Feb 2017 03:35:57 +0000 (12:35 +0900)]
Release version 0.0.19
Changes:
- Fix memory leak
- Add boundary check for value from untrusted source
Change-Id: Ie627a8578df2a5a19b8ee8cbff52cbb9f98acb00
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Wed, 8 Feb 2017 12:02:27 +0000 (21:02 +0900)]
Add boundary check for value from untrusted source
Change-Id: I7ac23493f014447d3afbca82fe4f4bdaa565986f
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Wed, 8 Feb 2017 11:46:55 +0000 (20:46 +0900)]
Fix memory leak
Change-Id: I90a27b350785dcafbbe7a7aed60d7db43da917b4
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Wed, 8 Feb 2017 07:10:17 +0000 (16:10 +0900)]
Release version 0.0.18
Changes:
- Add internal get select page info API for c# API
- Add internal send select result API for c# API
Change-Id: I3c35385758df34fc2fbfc012d8eb405474d3a7ab
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Wed, 18 Jan 2017 05:42:56 +0000 (14:42 +0900)]
Add internal get select page info API for c# API
This API is made for C# API. C# API can control selected page in
proivder's callback. This API provide request page info to the
provider application so that provider application can manage
which page should be sent to the consumer.
- datacontrol_provider_get_select_page_info
Change-Id: I6d958ddcc83c947c44934e87c28e53a056fb7b47
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Wed, 18 Jan 2017 05:06:30 +0000 (14:06 +0900)]
Add internal send select result API for c# API
This API is made for C# API. C# API has a different select flow.
It will send select result after provider's select callback and
do not get db handle for sending result to remove db dependancy.
So, this API just send provider's select callback result and pass
connected socket fd for sending selected data to consumer.
- int datacontrol_provider_send_select_result_without_data(
int request_id, int *fd)
This API is made for C# API. C# API has a different select flow.
It will send select result after provider's select callback and
do not get db handle for sending result to remove db dependancy.
So, C# API need native API which get buffer and send it to consumer.
- int datacontrol_provider_write_socket(int fd, void *buffer,
unsigned int nbytes, unsigned int *bytes_write)
Change-Id: Ia62f65081d102cce9e62f3cc9d806f3ce6b11333
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Signed-off-by: jusung son <jusung07.son@samsung.com>
Hyunho Kang [Tue, 17 Jan 2017 04:30:40 +0000 (20:30 -0800)]
Merge "Release version 0.0.17" into tizen
Hyunho Kang [Tue, 17 Jan 2017 01:13:51 +0000 (10:13 +0900)]
Release version 0.0.17
Changes:
- Add more description to register callback doxygen
- Fix get bulk result data bug
- Fix memory leak
Change-Id: I819121b0448bd55a3f33a67c50f00835ab9eea56
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Tue, 17 Jan 2017 02:01:26 +0000 (11:01 +0900)]
Fix memory leak
Change-Id: If86a9361949945f9e4039a6deb51ac82d59c1147
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 16 Jan 2017 05:59:49 +0000 (14:59 +0900)]
Fix get bulk result data bug
Change-Id: Iabd745958a9f7cf27ee0f5a9e33465b91150ec10
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 16 Jan 2017 04:21:29 +0000 (13:21 +0900)]
Add more description to register callback doxygen
Change-Id: Ic53f08e17b645f3ea057cfcc7a4fbf29f344fb86
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Thu, 12 Jan 2017 12:04:29 +0000 (21:04 +0900)]
Fix fd leak
If consumer died after send message, provider's socket was remained
because of wrong exception handling.
Change-Id: I4e59926d6372018564a0dcd217cba80101a066b8
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
jusung son [Wed, 11 Jan 2017 05:58:03 +0000 (14:58 +0900)]
Fix dbus conf file
- Remove policy user
Change-Id: Ic91672016386cc3a2d5d0bcadcd510629094e7e8
Signed-off-by: jusung son <jusung07.son@samsung.com>
Hyunho Kang [Mon, 9 Jan 2017 05:39:55 +0000 (14:39 +0900)]
Fix doxygen typo
Change-Id: I3232b751be3978ae40e1e22bdb1c4764b60ca046
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Thu, 22 Dec 2016 08:11:58 +0000 (17:11 +0900)]
Fix wrong size memory alloc
off_t size will be long size in 64bit
Change-Id: I9b6e0adf16a5a9832180d99f99018022a7415dbe
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
jusung son [Fri, 16 Dec 2016 09:01:16 +0000 (18:01 +0900)]
Fix API description
Change-Id: I286a52dc9d7085bef61fdf8fd998f0ee132e27f1
Signed-off-by: jusung son <jusung07.son@samsung.com>
jusung son [Thu, 8 Dec 2016 00:56:19 +0000 (09:56 +0900)]
Fix memory leak
Change-Id: I9897a19e353274392c05fcb5af0a6cc1fed449db
Signed-off-by: jusung son <jusung07.son@samsung.com>
Hyunho Kang [Mon, 28 Nov 2016 12:02:35 +0000 (21:02 +0900)]
Add define _GNU_SOURCE for strerror_r
Only GNU strerror_r return char *
Change-Id: Ia4f88c9e34f560653d79f944d35edb3661389625
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Fri, 18 Nov 2016 01:35:41 +0000 (10:35 +0900)]
Fix CMakeLists.txt
To make extendible for adding source & header files.
Change-Id: I36d39cb56714ef744845a15fc9112d20cb99e075
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
jusung son [Thu, 3 Nov 2016 01:30:03 +0000 (10:30 +0900)]
Fix defect
- memory leak
- exception handling
- typo
Change-Id: I95c1fa2d1de35306ec5d25e4506221cd36cf4611
Signed-off-by: jusung son <jusung07.son@samsung.com>
jusung son [Mon, 24 Oct 2016 01:52:22 +0000 (18:52 -0700)]
Merge "Fix memory leak" into tizen
jusung son [Fri, 21 Oct 2016 05:57:41 +0000 (14:57 +0900)]
Fix memory leak
Change-Id: I022d60b85aaca201781e58a6e0caf95a7daf079e
Signed-off-by: jusung son <jusung07.son@samsung.com>
Hyunho Kang [Mon, 17 Oct 2016 07:38:21 +0000 (16:38 +0900)]
Modify select result file path to under /run/user/
/tmp is cleared in runtime for some environment like TV
Change-Id: I6c603fcd04c9a28f50734c39315eb07071283299
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 10 Oct 2016 05:49:43 +0000 (14:49 +0900)]
Add EWOULDBLOCK error handling
- wrt(nodejs) can change socket to none-blocking mode
Change-Id: I0a6d19c4593e14a27e3d60974d27cd418a5061e8
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Wed, 28 Sep 2016 04:10:58 +0000 (13:10 +0900)]
Fix typo
Change-Id: Ic391fce50c317bdf5783e003d4bb9334692d15ee
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Wed, 28 Sep 2016 02:36:13 +0000 (11:36 +0900)]
Fix typo and not checked invalid param
Change-Id: I5981eb5ec4fb9e5e50202111d8294e159bce9fed
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 12 Sep 2016 04:25:00 +0000 (13:25 +0900)]
Fix consumer vanish bug
- object path can not identify consumer process
Change-Id: I1fde6b95718664c893c3b62862fdc7f47d4ff9ff
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Fri, 9 Sep 2016 01:58:14 +0000 (10:58 +0900)]
Fix memory leak, tainted int, uninitialized value
Change-Id: Ib84ae22dce8b4d32fb2541a6b08fb6996adfa27e
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Wed, 1 Jun 2016 07:48:44 +0000 (16:48 +0900)]
Add data bulk management feature
Add APIs:
- data_control_sql_bulk_insert
- data_control_map_bulk_add
- data_control_provider_send_bulk_insert_result
- data_control_provider_send_bulk_add_result
- data_control_bulk_data_get_data
- data_control_bulk_data_get_count
- data_control_bulk_data_add
- data_control_bulk_data_create
- data_control_bulk_data_destroy
- data_control_bulk_result_data_get_result_data
- data_control_bulk_result_data_get_result
- data_control_bulk_result_data_get_count
- data_control_bulk_result_data_add
- data_control_bulk_result_data_create
- data_control_bulk_result_data_destroy
Change-Id: Id6a5ce3a9da95761a039cb726d4e40602fb05520
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Semun Lee [Mon, 1 Aug 2016 06:33:28 +0000 (15:33 +0900)]
Include data_control_noti.h in data_control.h
Applications can include all the data control API with
data_control.h
Change-Id: I3232a80a21d8e6bf7f4bee3060a2e2c8a30bbc47
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
Hyunho Kang [Tue, 12 Jul 2016 13:26:18 +0000 (22:26 +0900)]
Remove unused functions
Change-Id: Idad8a5403b8740fad72f7796870811ed7a43b09a
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Fri, 8 Jul 2016 04:54:05 +0000 (13:54 +0900)]
Fix do not check privilege bug
- data_control_provider_send_data_change_noti
Change-Id: I598b6a893479bf2af4fd6c59535659e44f3ff98c
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 20 Jun 2016 05:27:29 +0000 (14:27 +0900)]
Add example code for data_control_sql_set_data_id
Change-Id: I4124e32dd5c19d962c364f4bf7cb31175b5826c6
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Wed, 15 Jun 2016 13:09:17 +0000 (22:09 +0900)]
Fix tainted int and deref null
Change-Id: I74507dff2102550215d281fde4149dfbf115c41a
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Tue, 14 Jun 2016 06:06:35 +0000 (15:06 +0900)]
Apply coding rule
Change-Id: Icd72ff05bb2436caa35044de4c089f62904808dc
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 13 Jun 2016 04:04:19 +0000 (13:04 +0900)]
Remove unused api
Change-Id: I036fea9f90cd74a5db762569474040774bca9996
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 13 Jun 2016 02:09:35 +0000 (11:09 +0900)]
Remove unused variables
Change-Id: I80ee297362f51e9571cf37049652590d2d7f540e
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Thu, 21 Apr 2016 08:46:18 +0000 (17:46 +0900)]
Add data-control data changed notification feature
Change-Id: Ifffe22f5f1312e84f73cb7f5f80257541d879904
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 16 May 2016 11:25:59 +0000 (20:25 +0900)]
Fix dereferenced NULL
Change-Id: I6793dcb34244fd6f2d7dca7c293aa99e1ee32659
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 11 Apr 2016 04:28:56 +0000 (13:28 +0900)]
Add EAGAIN error handling
- nodejs can change blocking socket to none blocking socket
Change-Id: I03b917fcdad0f11b080505d2b097774277799cde
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hwankyu Jhun [Sun, 27 Mar 2016 23:52:00 +0000 (08:52 +0900)]
Adjust coding rules
Change-Id: I237548594b6fe4e229f70d585aa48424579ee1a9
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
Hyunho Kang [Tue, 22 Mar 2016 08:08:42 +0000 (17:08 +0900)]
Modify strerror to strerror_r
- strerror makes no guarantee of thread safety
Change-Id: If19e318bcc414977937ca9eff1b38b179693cfab
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Thu, 3 Mar 2016 08:20:57 +0000 (17:20 +0900)]
Fix defect
- Memory leak
- Tainted int
- Fall through
Change-Id: I808e9f0fe38f8cbd2181bfaadce84b87b7027c95
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Thu, 14 Jan 2016 07:37:24 +0000 (16:37 +0900)]
Get column name & consumer cannot receive select error callback bug fix
- datacontrol_sql_get_column_name API return wrong column name because
of wrong file descriptor offset. Old cursor file(tizen_2.4) contains
only column name but new cursor file(tizen_3.0) contains both colum name
and column name length.
- When provider encounter error it can notify error
informaion to consumer with data_control_provider_send_error.
If provider send error information while processing select/get
process, consumer wait select data(select process has to receive two
response, result and selected data).
So, we fix this issue in the way that consumer try to receive select
data after check select result is success or not.
Change-Id: I22cd765b8cfe5297a1990730e0e54f8d6de26188
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
SukHyung, Kang [Wed, 13 Jan 2016 23:24:28 +0000 (08:24 +0900)]
Add doc files for API references
Change-Id: I7152cb23ab74c61072da090730d5872f8ed20a01
Signed-off-by: SukHyung, Kang <shine.kang@samsung.com>
jusung son [Wed, 23 Dec 2015 05:14:52 +0000 (14:14 +0900)]
Fix wrong cursor_fd control
Change-Id: I903ccf49f9fad41912b25ef96b51f8a4281c1ea2
Signed-off-by: jusung son <jusung07.son@samsung.com>
Hyunho Kang [Mon, 21 Dec 2015 05:31:06 +0000 (14:31 +0900)]
Fix defect
- Unreachable code
- Unchecked function result
- Negative return value handle
- Memory leak
Change-Id: I21ecb692a244e9c41861471836880ed6d4537297
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Mon, 21 Dec 2015 04:10:00 +0000 (13:10 +0900)]
Fix INTEGER OVERFLOW
Change-Id: Ia51b62e2dafb28e4282a1e8ea61fbe351074a2df
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Hyunho Kang [Fri, 18 Dec 2015 11:44:11 +0000 (20:44 +0900)]
Fix bugs
- Remove double free logic
- Add NULL value column handling logic
- Fix datacontrol_sql_update wrong return value
Change-Id: Ied04779087319da2f32527c3c5f9c293a6fcd66c
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
Semun Lee [Mon, 14 Dec 2015 10:06:54 +0000 (19:06 +0900)]
Include bundle_internal.h for internal bundle apis
Some bundle apis are platform internal apis
and we need to include bundle_internal.h to use them
Change-Id: I7dd56ed0d54ad01d86152c809ab5964e6ea0acd1
Signed-off-by: Semun Lee <sm79.lee@samsung.com>
hyunho kang [Wed, 9 Dec 2015 07:00:42 +0000 (16:00 +0900)]
Apply tizen coding rules.
Change-Id: I3805ec25f57debb6c52eb356155775190bf2d24f
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
hyunho kang [Thu, 22 Oct 2015 02:15:01 +0000 (11:15 +0900)]
Improve data-control performance using socket fd passing.
Change-Id: I46f560f5725baf74e35f7832ebf83022e5f3f036
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
Signed-off-by: jusung.son <jusung07.son@samsung.com>
Jiwoong Im [Mon, 12 Oct 2015 04:11:24 +0000 (13:11 +0900)]
add sqlite3 dependency
Change-Id: I9000de0380d4fc9de9111a74c52e79cdc676d41e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
hyunho kang [Thu, 10 Sep 2015 03:59:26 +0000 (12:59 +0900)]
Fix wrong symbolic link path
Change-Id: Id597537a32e58ebada6ad1e9c5ed5bae1db74232
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
hyunho kang [Wed, 9 Sep 2015 14:45:10 +0000 (23:45 +0900)]
Make symbolic link for 2.x compatibility.
Change-Id: I6213a285c326f8bde05b0a5db9183c9b6d86af38
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
hyunho kang [Tue, 8 Sep 2015 01:33:28 +0000 (10:33 +0900)]
Add privilege check logic.
Change-Id: If88da0a79632bf3dc80412559aaed5298fd748f4
Signed-off-by: hyunho kang <hhstark.kang@samsung.com>
Jiwoong Im [Mon, 24 Aug 2015 14:02:32 +0000 (23:02 +0900)]
change data-control dir to /tmp/data-control
Change-Id: Ia1ae2b2a267248a26939ba785a18022f2aa9de72
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Jiwoong Im [Wed, 12 Aug 2015 03:02:20 +0000 (12:02 +0900)]
remove unused include header
- <sys/smack.h>
Change-Id: I458631173b3570d5942e0f3c1ece1f0acc30a5ba
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Sangyoon Jang [Fri, 10 Jul 2015 02:03:31 +0000 (11:03 +0900)]
Fix tmp file path, permissions
Change-Id: Ic604f90837c27a069ade74c5ca8383ad76ea17ce
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 26 May 2015 11:35:09 +0000 (20:35 +0900)]
Fix tmp file path for sql operation
Change-Id: Ie567e57d2e6042792213aec0ae30806a8ab50b0a
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Sangyoon Jang [Tue, 26 May 2015 08:59:01 +0000 (17:59 +0900)]
Fix to use 'usr' prefixed pkgmgr-info apis
Change-Id: Id81a828272e0635711769570a32d01f814ba1c5b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
Jiwoong Im [Tue, 13 Jan 2015 13:12:22 +0000 (22:12 +0900)]
data-control & capi-data-control : initial commit
data-control source from tizen 2.3
- Data control api which is released in tizen_2.3 is a standard
mechanism for exchanging specific data between applications.
- JIRA ticket : TC-2324
Features
- This repository contain data-control and capi-data-control(by rpm alias).
To provide 2 packages, install 2 pc files.
Change-Id: Id8725dcec33ce0204d47a51d663c31df466c3fda
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
JaeKyu Park [Tue, 6 Jan 2015 00:36:35 +0000 (16:36 -0800)]
Initial empty repository