/* * common.h: TVM2VDR plugin for the Video Disk Recorder * * See the README file for copyright information and how to reach the author. * */ #ifndef __COMMON_H #define __COMMON_H // #define __LV_LIB #include using namespace std; //*************************************************************************** // //*************************************************************************** inline long min(long a, long b) { return a < b ? a : b; } enum Misc { success = 0, done = success, fail = -1, ignore = -2, na = -1, yes = 1, on = 1, off = 0, no = 0, TB = 1 }; #ifndef __LV_LIB //*************************************************************************** // Tell //*************************************************************************** void tell(int eloquence, const char* format, ...); #endif // __LV_LIB //*************************************************************************** // Tools //*************************************************************************** void removeChars(string& str, string chars); void removeWord(string& pattern, string word); //*************************************************************************** #endif //___COMMON_H