From 45fe6c4b0efcd807dd67bb1bcdc5e104583332ae Mon Sep 17 00:00:00 2001 From: Sascha Volkenandt Date: Fri, 5 Jan 2007 19:38:54 +0000 Subject: - moved pagelib back to plugin - incorporated all code into one shared object --- pagelib/tools.h | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 pagelib/tools.h (limited to 'pagelib/tools.h') diff --git a/pagelib/tools.h b/pagelib/tools.h deleted file mode 100644 index c39075b..0000000 --- a/pagelib/tools.h +++ /dev/null @@ -1,31 +0,0 @@ -#ifndef VDR_LIVE_TOOLS_H -#define VDR_LIVE_TOOLS_H - -#include -#include -#include - -namespace vdrlive { - -std::string FormatDateTime( char const* format, time_t time ); -std::string StringReplace( std::string const& text, std::string const& substring, std::string const& replacement ); - -class ReadLock -{ -public: - ReadLock( cRwLock& lock, int timeout = 100 ): m_lock( lock ), m_locked( false ) { if ( m_lock.Lock( false, timeout ) ) m_locked = true; } - ~ReadLock() { if ( m_locked ) m_lock.Unlock(); } - - operator bool() { return m_locked; } - bool operator!() { return !m_locked; } - -private: - ReadLock( ReadLock const& ); - - cRwLock& m_lock; - bool m_locked; -}; - -} // namespace vdrlive - -#endif // VDR_LIVE_TOOLS_H -- cgit v1.2.3