archive/platform/core/system/libConfig.git
9 years agoSupport for reading and writing 0 bytes to fdstore 45/38245/2 tizen
Mateusz Malicki [Wed, 15 Apr 2015 09:26:09 +0000 (11:26 +0200)]
Support for reading and writing 0 bytes to fdstore

[Bug/Feature]   Zero bytes can't be read and write (it's needed by fdstore-visitor)
[Cause]         N/A
[Solution]      N/A
[Verification]  N/A

Change-Id: Ic9d3ed84a09797fc09a795a799b22fa66facd843

9 years agoSupport for uints 57/36957/2
Jan Olszak [Tue, 17 Mar 2015 14:09:45 +0000 (15:09 +0100)]
Support for uints

[Bug/Feature]   N/A
[Cause]         N/A
[Solution]      N/A
[Verification]  Run tests under valgrind

Change-Id: I40b0ea4e61d98d4b41c1bc2dff4a0e1c5aa89b07

9 years agoFix memleaks in GVariant visitor 04/36204/2
Piotr Bartosiewicz [Tue, 3 Mar 2015 11:24:50 +0000 (12:24 +0100)]
Fix memleaks in GVariant visitor

[Bug/Feature]   There were mem leaks in two cases:
                - during processing union fields
                - when invalid field type exception was thrown
[Cause]         N/A
[Solution]      N/A
[Verification]  Run tests under valgrind

Change-Id: I9ddce15a89b151301549dde0056cf1357c50b47c

9 years agoAdded GVariant visitor 61/35561/8
Mateusz Malicki [Tue, 17 Feb 2015 14:30:54 +0000 (15:30 +0100)]
Added GVariant visitor

[Bug/Feature]   GVariant visitor
[Cause]         N/A
[Solution]      N/A
[Verification]  N/A

Change-Id: I66f8c94a62180b95d3684608a2c528509bf49980

9 years agoAdd 'commit' method to kv transaction 98/34998/2
Piotr Bartosiewicz [Thu, 5 Feb 2015 13:28:22 +0000 (14:28 +0100)]
Add 'commit' method to kv transaction

[Bug/Feature]   Do no rely on std::uncaught_exception for two reasons:
                - there is a bug in gcc with rethrow_exception
                - it wasn't possible to update db during stack
                  unwinding.
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I8e12688efdebb3f2865e6a4512ed331756c69537

9 years agoFix memleak in FromKVJsonVisitor 98/34698/1
Piotr Bartosiewicz [Fri, 30 Jan 2015 14:43:15 +0000 (15:43 +0100)]
Fix memleak in FromKVJsonVisitor

[Bug/Feature]   N/A
[Cause]         N/A
[Solution]      N/A
[Verification]  Run tests under valgrind

Change-Id: Id3f4c18b9efa84ebf8cf15a52791a0d79bc46589

9 years agoFix potential deadlock; FromKVJsonVisitor use db transaction 33/34333/1
Piotr Bartosiewicz [Fri, 23 Jan 2015 12:45:59 +0000 (13:45 +0100)]
Fix potential deadlock; FromKVJsonVisitor use db transaction

[Bug/Feature]   Invalid mutexes lock sequence in kv store transaction.
                Missing db transaction in FromKVJsonVisitor.
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, run tests

Change-Id: Ie44dbfe5ad86c9cbf0e19a162a267676b05f1aed

9 years agofix loading array from kvstore if size diffs in json 49/34249/1
Krzysztof Dynowski [Thu, 22 Jan 2015 10:29:14 +0000 (11:29 +0100)]
fix loading array from kvstore if size diffs in json

[Bug/Feature]       bug reading array from kvstore
[Cause]             N/A
[Solution]          don't use json object, set json object to null
[Verification]      Build, install

Change-Id: I6760075039e0fbae173e7329fbd14721f2710664

9 years agoimplement generic method checker and is-union 05/33905/8
Krzysztof Dynowski [Tue, 13 Jan 2015 12:45:30 +0000 (13:45 +0100)]
implement generic method checker and is-union

[Bug/Feature]       N/A
[Cause]             N/A
[Solution]          N/A
[Verification]      Build, install

Change-Id: Iaf8eb549729e095ed1d446bc6fd2cd71399e1019

9 years agoConfig manager api refinements 23/33923/1
Piotr Bartosiewicz [Fri, 16 Jan 2015 13:50:09 +0000 (14:50 +0100)]
Config manager api refinements

[Bug/Feature]   Always use prefix in db.
                Function renames.
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, run tests

Change-Id: Ia32747c15c904b3c67b00aeb7a6bf051c9591de9

9 years agoFix arrays in kvjson visitor, prohibit empty db name 11/33811/1
Piotr Bartosiewicz [Thu, 15 Jan 2015 09:13:33 +0000 (10:13 +0100)]
Fix arrays in kvjson visitor, prohibit empty db name

[Bug/Feature]   Arrays were not correctly handled.
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, run tests

Change-Id: Idd5c2c35baf602e09961ee8af80857dda313a5da

9 years agoFix: Crashing when writing unset union type 65/33665/2
Mateusz Malicki [Tue, 13 Jan 2015 14:03:39 +0000 (15:03 +0100)]
Fix: Crashing when writing unset union type

[Bug]           Assert instead exception
[Cause]         Assert
[Solution]      Assert was removed
[Verification]  Build in debug mode, run test

Change-Id: I93e9a481d008ea50882b7886f0a63c9f6136bbd0

9 years agoAbility to list all keys from kv store 22/33522/2
Piotr Bartosiewicz [Mon, 12 Jan 2015 15:34:00 +0000 (16:34 +0100)]
Ability to list all keys from kv store

[Bug/Feature]   Add listKeys method. Mainly for debug purposes.
[Cause]         N/A
[Solution]      N/A
[Verification]  Build

Change-Id: I1d760e047e0393e8ecdb22c242f3ef52e7fdf9d5

9 years agoPrevent for writing unset union 47/33447/1
Mateusz Malicki [Fri, 9 Jan 2015 15:23:19 +0000 (16:23 +0100)]
Prevent for writing unset union

[Bug]           Unset can be written to file (can't be read)
[Cause]         N/A
[Solution]      Assert in set and accept function,
                throw config::ConfigException when unsupported type is
                read or writen
[Verification]  N/A

Change-Id: I5e30d53fe64a9fb132178c1f191af5a5910336d4

9 years agoconfig (dynamic): implemented kvjson visitor and loading methods 09/31709/12
Krzysztof Dynowski [Sat, 6 Dec 2014 11:53:07 +0000 (12:53 +0100)]
config (dynamic): implemented kvjson visitor and loading methods

[Bug/Feature]   load config from kvstore with defaults from json
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install

Change-Id: I58c70c0089102b8c4ec1c659937e43d698cd6197

9 years agoDisable rvalue references 30/31830/3
Mateusz Malicki [Wed, 10 Dec 2014 17:07:09 +0000 (18:07 +0100)]
Disable rvalue references

[Bug]           Boost any rvalue support is optional
[Cause]         rvalues is provided in 1.54 and can be disabled
[Solution]      Disable rvalue references
[Verification]  N/A

Change-Id: I395adec94bbd07e33aa8bf703c0732ffa3b69ea6

9 years agoAbility to copy union and to set union type 10/31210/5
Mateusz Malicki [Tue, 2 Dec 2014 14:01:32 +0000 (15:01 +0100)]
Ability to copy union and to set union type

[Feature]       Ability to copy union and to set union type
[Cause]         Need to copy and add new union elements
[Solution]      Use of boost::any class; add isSet and set<T> methods
[Verification]  Build, install, run scs tests

Change-Id: I61e3211c27e62af93b36a5309e50ebaf90ab70ad

9 years agoAdded possibility to declare union in config file 86/30886/9
Mateusz Malicki [Wed, 26 Nov 2014 14:11:51 +0000 (15:11 +0100)]
Added possibility to declare union in config file

[Bug/Feature]   Possibility to declare something like union in config file
[Cause]         Necessity to create vector with element of more than one type
[Solution]      Added macro CONFIG_DECLARE_OPTIONS
[Verification]  Build, install, run scs tests

Change-Id: I094eb63f5cda6435836b3d76674d3cad5f89fe14

9 years agoTimeout in read and write to a FDStore 17/30517/5
Jan Olszak [Wed, 19 Nov 2014 09:28:41 +0000 (10:28 +0100)]
Timeout in read and write to a FDStore

[Bug/Feature]   N/A
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I42a358ce87d1dd6e02030a0e0e2431838ddae29c

9 years agoMacro for creating empty Config structures 53/30053/1
Jan Olszak [Fri, 31 Oct 2014 15:54:25 +0000 (16:54 +0100)]
Macro for creating empty Config structures

[Bug/Feature]   N/A
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I1e2c468f2d05855b71938b20e7b63bb5aa112d54

9 years agoFDStore class for binary serialization 67/28367/10
Jan Olszak [Fri, 3 Oct 2014 16:16:59 +0000 (18:16 +0200)]
FDStore class for binary serialization

[Bug/Feature]   Class for writing and reading binary data to a file descriptor
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I18713366449c77a17970eeb7f0f6b3ae1feac656

9 years agoTransaction and synchronization guard 25/28325/6
Jan Olszak [Thu, 2 Oct 2014 14:05:45 +0000 (16:05 +0200)]
Transaction and synchronization guard

[Bug/Feature]   KVStore returns a transaction guard
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I44d421e5817ca359bf28f70b9182c9e2e0618137

9 years agoWriting the size of a vector in the KVStore 01/28201/4
Jan Olszak [Thu, 18 Sep 2014 08:46:53 +0000 (10:46 +0200)]
Writing the size of a vector in the KVStore

[Bug/Feature]   No way to write an empty vector in the KVStore
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: Ia4d67e33e9320c27cf6d86e809bf5c54edd940cc

9 years agoStructs serialization to KVStore finished 39/27039/1
Piotr Bartosiewicz [Wed, 3 Sep 2014 12:14:05 +0000 (14:14 +0200)]
Structs serialization to KVStore finished

[Bug/Feature]   Missing serialization/deserialization of vector of
                structs.
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I562bb89550b4af5ce86c3f818738cb878830f828

9 years agoFix clang compilation problem 71/26571/1
Piotr Bartosiewicz [Tue, 26 Aug 2014 10:18:30 +0000 (12:18 +0200)]
Fix clang compilation problem

[Bug/Feature]   Does not compile with clang
[Cause]         N/A
[Solution]      N/A
[Verification]  Compile using gcc and clang

Change-Id: I2c065d87b66473c1a80b402fb925ee62180c15df

9 years agoSaving and loading configurations from KVStore 08/26508/2
Jan Olszak [Mon, 25 Aug 2014 13:59:51 +0000 (15:59 +0200)]
Saving and loading configurations from KVStore

[Bug/Feature]   Configuration structs are serializable to
                and from a KVStore file
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: Ide83199431cd1357de1f7a9865984033fce47547

9 years agoFunction for creating std::string keys 29/26329/8
Jan Olszak [Tue, 19 Aug 2014 10:54:43 +0000 (12:54 +0200)]
Function for creating std::string keys

[Bug/Feature]   Function creating keys from other serializable types
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I4581b650b85ce2d2bba35daff66dca9d5ec0d936

9 years agoImprove exception messages 01/26201/3
Piotr Bartosiewicz [Mon, 18 Aug 2014 15:49:46 +0000 (17:49 +0200)]
Improve exception messages

[Bug/Feature]   Poor exception messages while loading configuration from
                file. Also too much implementation was placed inside
                header file.
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: Ia187e04788048a1e1c4b7a1d147c5c8b1865da90

9 years agoBug fix in getting vector of values form KVStore 12/26212/1
Jan Olszak [Tue, 19 Aug 2014 08:44:38 +0000 (10:44 +0200)]
Bug fix in getting vector of values form  KVStore

[Bug/Feature]   istringstream wasn't initialized
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: I61ebf4242b868e2dc6fd8adc3b69db453f80afac

9 years agoStoring serializable types in KVStore 44/26144/2
Jan Olszak [Mon, 11 Aug 2014 10:54:12 +0000 (12:54 +0200)]
Storing serializable types in KVStore

[Bug/Feature]   One can store many types of values in KVStore
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: If656263cd7da1c558290a0baf5e6e44f88e9b865

9 years agoDynamic configuration stored in a database 31/25531/5
Jan Olszak [Mon, 4 Aug 2014 09:09:08 +0000 (11:09 +0200)]
Dynamic configuration stored in a database

[Bug/Feature]   Storing configuration in SQLite3 database
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install, run tests

Change-Id: If14be7c9e0c62c985215f904d308d2d172c71fff

9 years agoFix install libdir and version in pc file 05/25105/2
Piotr Bartosiewicz [Tue, 29 Jul 2014 13:33:37 +0000 (15:33 +0200)]
Fix install libdir and version in pc file

[Bug/Feature]   Hardcoded lib dir, no version in pc file.
[Cause]         N/A
[Solution]      N/A
[Verification]  Build, install

Change-Id: Ic36d716917cdf0dbc69f8cd63045645bf895365f

9 years agoInitial library content. 25/23725/8
Jacek Pielaszkiewicz [Tue, 17 Jun 2014 08:28:19 +0000 (10:28 +0200)]
Initial library content.

[Bug/Feature]  Initial library content.
[Cause]        N/A
[Solution]     N/A
[Verification] Build, install, run tests

Change-Id: I0de77757b11c87099b5b0d915e30aeeff1becf61
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
9 years agoInitial repository spec file. 24/23724/1
Jacek Pielaszkiewicz [Fri, 13 Jun 2014 09:09:38 +0000 (11:09 +0200)]
Initial repository spec file.

Change-Id: I4adf7ae50df656a822ccf5ecec7e298a493ea5e9
Signed-off-by: Jacek Pielaszkiewicz <j.pielaszkie@samsung.com>
9 years agoInitial commit
Łukasz Stelmach [Tue, 1 Jul 2014 15:44:27 +0000 (17:44 +0200)]
Initial commit

Change-Id: I16e3ae44472eea242bab9ce6b01a1c0bdccdf1a5