From: Gonzalo A. <ga...@us...> - 2006-11-06 19:50:01
|
Update of /cvsroot/mod-c/ehtml/include In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23720/include Modified Files: ehtml.h Session.h Log Message: * Session fixes: the 'Location' based session configuration works now. Basically, we added 'checkargs' on ehtml session side. Index: ehtml.h =================================================================== RCS file: /cvsroot/mod-c/ehtml/include/ehtml.h,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** ehtml.h 12 Oct 2006 21:10:36 -0000 1.21 --- ehtml.h 6 Nov 2006 19:49:43 -0000 1.22 *************** *** 90,96 **** char key_size; /** ! * Contains pointers to functions for session management. */ ! ses_api_t* session_funcs; } mod_c_dir_config; --- 90,108 ---- char key_size; /** ! * The session driver managment */ ! const char* session_driver; ! /** ! * The session driver arguments ! */ ! const char* session_driver_arguments; ! /** ! * The session ID driver managment ! */ ! const char* session_id_driver; ! /** ! * The session ID driver arguments ! */ ! const char* session_id_driver_arguments; } mod_c_dir_config; Index: Session.h =================================================================== RCS file: /cvsroot/mod-c/ehtml/include/Session.h,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** Session.h 12 Oct 2006 21:10:36 -0000 1.15 --- Session.h 6 Nov 2006 19:49:43 -0000 1.16 *************** *** 92,95 **** --- 92,96 ---- */ virtual bool SetArgs(const std::string& arg) = 0; + virtual bool CheckArgs(const std::string& arg) = 0; virtual bool ValidID(SessionID& id) = 0; virtual SessionID GenerateID() = 0; *************** *** 118,121 **** --- 119,127 ---- /** + * Check for argument Syntax. + */ + virtual bool CheckArgs(const std::string& arg) = 0; + + /** * Sets the application to use. May be called more than once. * @return false on error, true otherwise. *************** *** 185,188 **** --- 191,195 ---- */ EXTERNC int registerSessionDriver(const char* driver_name, const char* filename); + /** * Selects a session driver (and sets the argument). *************** *** 194,197 **** --- 201,210 ---- /** + * Checks a session driver (and its argument). + * @return 0 on success, a negative value on error. + */ + EXTERNC int checkSessionDriver(const char* name, const char* arg); + + /** * Registers a session id generation driver. * Registers the session driver "<param>driver_name</param>" located in *************** *** 201,204 **** --- 214,224 ---- */ EXTERNC int registerSessionIDDriver(const char* driver_name, const char* filename); + + /** + * Checks a session id generation driver (and its argument). + * @return 0 on success, a negative value on error. + */ + EXTERNC int checkSessionIDDriver(const char* name, const char* arg); + /** * Selects a session id generation driver (and sets the argument). |