summaryrefslogtreecommitdiff
path: root/src/info.h
diff options
context:
space:
mode:
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__*/