Author: rjung Date: Sat Nov 24 06:05:11 2007 New Revision: 597849 URL: http://svn.apache.org/viewvc?rev=597849&view=rev Log: Provide service callback to web server to - iterate through vhosts - get atextual representation of a vhost - get the uri_worker_map of a vhost. Will be used in status worker to show all URI maps for all vhosts, not only the vhost the status worker runs in.
Modified: tomcat/connectors/trunk/jk/native/common/jk_service.h tomcat/connectors/trunk/jk/native/common/jk_util.c Modified: tomcat/connectors/trunk/jk/native/common/jk_service.h URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_service.h?rev=597849&r1=597848&r2=597849&view=diff ============================================================================== --- tomcat/connectors/trunk/jk/native/common/jk_service.h (original) +++ tomcat/connectors/trunk/jk/native/common/jk_service.h Sat Nov 24 06:05:11 2007 @@ -283,6 +283,21 @@ const char *const *log_names, const char *const *log_values, unsigned num_of_items); + + /* + * Iterate through all vhosts + */ + void *(JK_METHOD * next_vhost) (void *d); + + /* + * String representation of a vhost + */ + void (JK_METHOD * vhost_to_text) (void *d, char *buf, int len); + + /* + * Get uw_map associated with a vhost + */ + jk_uri_worker_map_t *(JK_METHOD * vhost_to_uw_map) (void *d); }; /* Modified: tomcat/connectors/trunk/jk/native/common/jk_util.c URL: http://svn.apache.org/viewvc/tomcat/connectors/trunk/jk/native/common/jk_util.c?rev=597849&r1=597848&r2=597849&view=diff ============================================================================== --- tomcat/connectors/trunk/jk/native/common/jk_util.c (original) +++ tomcat/connectors/trunk/jk/native/common/jk_util.c Sat Nov 24 06:05:11 2007 @@ -1858,6 +1858,9 @@ s->retries = JK_RETRIES; s->response_started = JK_FALSE; s->add_log_items = NULL; + s->next_vhost = NULL; + s->vhost_to_text = NULL; + s->vhost_to_uw_map = NULL; } #ifdef _MT_CODE_PTHREAD --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]