OSDN Git Service

service: Introduce a global Settings object
authorArman Uguray <armansito@google.com>
Fri, 17 Jul 2015 01:12:13 +0000 (18:12 -0700)
committerArman Uguray <armansito@google.com>
Fri, 24 Jul 2015 21:16:03 +0000 (21:16 +0000)
commit065d0f709343129f82ff3d072dcb36f612038598
tree01f4456de6bb2d1c539e6fdb013a82139e31201e
parentf2d6434a6b7ad98e20c7a601d2a0950237514837
service: Introduce a global Settings object

Introduced a global Settings object that will store all runtime properties that
would be associated with a config file, Android system properties, etc. Added a
mechanism to parse command-line options which can be used to pass paths to
configuration files, file path for UNIX domain socket based IPC mechanism, and
any other property that is dynamic in nature. This will help us remove hardcoded
paths, strings, and other such values in the future.

Bug: 22532366
Change-Id: I8e790363ed31d44369f7991a8ea7132d1cace70b
build/BUILD.gn
service/Android.mk
service/BUILD.gn
service/main.cpp
service/settings.cpp [new file with mode: 0644]
service/settings.h [new file with mode: 0644]
service/switches.h [new file with mode: 0644]
service/test/settings_unittest.cpp [new file with mode: 0644]
service/test/uuid_unittest.cpp [moved from service/uuid_test.cpp with 99% similarity]