Move m_sHomePath from CZNC to CFile

Thanks to this change, linking the following object files produces no unresolved
symbols: FileUtils.o Utils.o ZNCString.o MD5.o SHA256.o

The idea here is that ZNC is a little better modularized.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2011-03-28 21:05:39 +02:00
parent fbe2b7403a
commit f9ffe6f417
4 changed files with 34 additions and 27 deletions
+5
View File
@@ -120,6 +120,9 @@ public:
CString GetShortName() const;
CString GetDir() const;
static void InitHomePath(const CString& sFallback);
static const CString& GetHomePath() { return m_sHomePath; }
private:
// fcntl() locking wrapper
bool Lock(int iType, bool bBlocking);
@@ -127,6 +130,8 @@ private:
CString m_sBuffer;
int m_iFD;
static CString m_sHomePath;
protected:
CString m_sLongName; //!< Absolute filename (m_sPath + "/" + m_sShortName)
CString m_sShortName; //!< Filename alone, without path