summaryrefslogtreecommitdiff
path: root/src/info.h
diff options
context:
space:
mode:
authordeva <deva>2005-06-13 20:38:19 +0000
committerdeva <deva>2005-06-13 20:38:19 +0000
commit0836a6e06f86e366017da3b2b2c132b3a4f2c877 (patch)
tree2df50f436a8664e564267d1200f3ef9b6c204dbe /src/info.h
parentfca7f73ae889f5e74a3b31441f5b2d778ecbd2d4 (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.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/info.h b/src/info.h
index 7a9147b..b142a33 100644
--- a/src/info.h
+++ b/src/info.h
@@ -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__*/