diff options
author | Daniel Levin <dendy@ti.com> | 2012-05-29 15:33:53 +0300 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-07-25 08:56:45 -0500 |
commit | 21d4114f53d8d6c85db477437e51151591599f45 (patch) | |
tree | 8f69f8954f2d5215d727dfe56a63013f6c67e870 /libtiutils/Semaphore.cpp | |
parent | 0db69e2a940fea8c70c8259d74358c6dfd6ff1bf (diff) | |
download | hardware_ti_omap4-21d4114f53d8d6c85db477437e51151591599f45.zip hardware_ti_omap4-21d4114f53d8d6c85db477437e51151591599f45.tar.gz hardware_ti_omap4-21d4114f53d8d6c85db477437e51151591599f45.tar.bz2 |
CameraHAL: Moved Camera HAL sources out of namespace android
C++ namespace android:: is reserved for base Google Android types
to avoid current and further conflicts with 3rd party code. Having
TI Camera HAL under namespace android:: violates this rule, adding
potential conflicts.
This patch moves libtiutils and Camera HAL code out of namespace
android:: to custom local namespaces.
Putting camera code under namespace android and 'using namespace
android' is not allowed anymore. All C++ Android types should
have android:: namespace prefix explicitly.
Next namespaces added:
- Ti:: - placeholder for all custom code
- Ti::Utils:: - common utility helper library
- Ti::Camera:: - Camera HAL code
Also added Ti::status_t as typedef for android::status_t.
Change-Id: Ie8cc00d6d6bd4e8a8ddf089421010c370ee40ebe
Signed-off-by: Daniel Levin <dendy@ti.com>
Diffstat (limited to 'libtiutils/Semaphore.cpp')
-rw-r--r-- | libtiutils/Semaphore.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libtiutils/Semaphore.cpp b/libtiutils/Semaphore.cpp index 37f3a89..512eee3 100644 --- a/libtiutils/Semaphore.cpp +++ b/libtiutils/Semaphore.cpp @@ -21,7 +21,8 @@ #include <utils/Log.h> #include <time.h> -namespace android { +namespace Ti { +namespace Utils { /** @brief Constructor for the semaphore class @@ -227,6 +228,5 @@ status_t Semaphore::WaitTimeout(int timeoutMicroSecs) } -}; - - +} // namespace Utils +} // namespace Ti |