summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2011-11-17 12:40:25 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2011-11-17 12:40:25 +0800
commitef0b5e42f38e6f5a3394a699932e13643e9bad06 (patch)
tree8402633b033b46647c0efdadd85ba8d8a70f4da5
parent9159e8569176c8f86524419d31aedf2503812ebe (diff)
SexyAppFramework: Added a wrapper for getenv
-rw-r--r--osframework/source/SexyAppFramework/Common.cpp7
-rw-r--r--osframework/source/SexyAppFramework/Common.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/osframework/source/SexyAppFramework/Common.cpp b/osframework/source/SexyAppFramework/Common.cpp
index d123921..0ba966f 100644
--- a/osframework/source/SexyAppFramework/Common.cpp
+++ b/osframework/source/SexyAppFramework/Common.cpp
@@ -1345,6 +1345,13 @@ bool Sexy::StrPrefixNoCase(const char *theStr, const char *thePrefix, int maxLen
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
+const char* Sexy::GetEnv(const char *option)
+{
+ return getenv (option);
+}
+
+///////////////////////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////////////////////
bool Sexy::GetEnvOption(const char *option, bool value)
{
const char *s;
diff --git a/osframework/source/SexyAppFramework/Common.h b/osframework/source/SexyAppFramework/Common.h
index 9a27863..ed4cd35 100644
--- a/osframework/source/SexyAppFramework/Common.h
+++ b/osframework/source/SexyAppFramework/Common.h
@@ -195,6 +195,7 @@ namespace Sexy
const std::string& theDir);
bool AllowAllAccess(const std::string& theFileName);
+ const char* GetEnv(const char* name);
bool GetEnvOption(const char *option, bool value = false);
int GetEnvIntOption(const char *option, int value = 0);