Update of /cvsroot/mod-c/ehtml/include
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv19761/include
Modified Files:
EHTMLApplication.h Request.h Session.h
Log Message:
* Removed spurius debugging messages.
* Added a propper debugging framework.
Index: EHTMLApplication.h
===================================================================
RCS file: /cvsroot/mod-c/ehtml/include/EHTMLApplication.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** EHTMLApplication.h 3 Mar 2006 14:45:17 -0000 1.7
--- EHTMLApplication.h 12 Sep 2006 15:23:32 -0000 1.8
***************
*** 28,31 ****
--- 28,33 ----
#include <list>
+ #include <stdarg.h>
+
class Response;
class Request;
***************
*** 214,217 ****
--- 216,234 ----
Event OnFinish;
+ /**
+ * Error logging method.
+ */
+ void Error(const char* fmt, ...) const __attribute__ ((format (printf, 2, 3)));
+
+ /**
+ * Error logging method.
+ */
+ void Error(const char* fmt, va_list l) const;
+
+ /**
+ * Debug message logging method
+ */
+ void Debug(const char* fmt, ...) const __attribute__ ((format (printf, 2, 3)));
+
protected:
friend class Session;
***************
*** 244,247 ****
--- 261,269 ----
*/
SessionList OpenSessions;
+
+ /**
+ * Message logging
+ */
+ void Log(int level, const char* fmt, va_list l) const;
};
Index: Request.h
===================================================================
RCS file: /cvsroot/mod-c/ehtml/include/Request.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Request.h 12 Sep 2006 00:29:01 -0000 1.6
--- Request.h 12 Sep 2006 15:23:32 -0000 1.7
***************
*** 93,96 ****
--- 93,105 ----
const KeyValueMap& GetArguments() { return Arguments; }
+ /**
+ * Error logging method.
+ */
+ void Error(const char* fmt, ...) const __attribute__ ((format (printf, 2, 3)));
+
+ /**
+ * Debug message logging method.
+ */
+ void Debug(const char* fmt, ...) const __attribute__ ((format (printf, 2, 3)));
protected:
/**
***************
*** 109,112 ****
--- 118,122 ----
*/
request_context * RequestContext;
+
/**
* The main application.
Index: Session.h
===================================================================
RCS file: /cvsroot/mod-c/ehtml/include/Session.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** Session.h 12 Sep 2006 12:54:47 -0000 1.11
--- Session.h 12 Sep 2006 15:23:32 -0000 1.12
***************
*** 114,117 ****
--- 114,122 ----
/**
+ * Gets the application to use.
+ */
+ virtual EHTMLApplication* Application(void) { return _app; }
+
+ /**
* Connect to backend.
* @return false on error.
|