mirror of
https://github.com/znc/znc.git
synced 2026-07-05 09:21:31 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user