diff options
author | deva <deva> | 2005-06-13 20:38:19 +0000 |
---|---|---|
committer | deva <deva> | 2005-06-13 20:38:19 +0000 |
commit | 0836a6e06f86e366017da3b2b2c132b3a4f2c877 (patch) | |
tree | 2df50f436a8664e564267d1200f3ef9b6c204dbe /src/info.h | |
parent | fca7f73ae889f5e74a3b31441f5b2d778ecbd2d4 (diff) |
Added some logfile code.
Enhanced the file object... now ready to hook into mov_encoder
Diffstat (limited to 'src/info.h')
-rw-r--r-- | src/info.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -37,14 +37,29 @@ #ifndef __MIAV_INFO_H__ #define __MIAV_INFO_H__ +#include <time.h> +#include <sys/types.h> +#include <unistd.h> +#include <stdarg.h> +#include <pthread.h> +#include <semaphore.h> +#include <string> +using namespace std; + class Info { public: - Info() {} + Info(); + virtual ~Info() {} virtual void error(char* fmt, ...) = 0; virtual void warn(char* fmt, ...) = 0; virtual void info(char* fmt, ...) = 0; + void log(char* fmt, ...); + +protected: + pthread_mutex_t mutex; + string log_filename; }; #endif/*__MIAV_INFO_H__*/ |