mturk 2004/11/08 05:28:55
Modified: jk/native/common jk_context.h
Log:
Format code
Revision Changes Path
1.9 +60 -60 jakarta-tomcat-connectors/jk/native/common/jk_context.h
Index: jk_context.h
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_context.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- jk_context.h 8 Oct 2004 07:50:40 -0000 1.8
+++ jk_context.h 8 Nov 2004 13:28:54 -0000 1.9
@@ -32,102 +32,102 @@
#define CBASE_INC_SIZE (8) /* Allocate memory by step of 8 URIs : ie 8
URI by context */
#define URI_INC_SIZE (8) /* Allocate memory by step of 8 CONTEXTs :
ie 8 contexts by worker */
- typedef struct
- {
+typedef struct
+{
- /*
- * Context base (ie examples)
- */
+ /*
+ * Context base (ie examples)
+ */
- char *cbase;
+ char *cbase;
- /*
- * Status (Up/Down)
- */
+ /*
+ * Status (Up/Down)
+ */
- int status;
+ int status;
- /*
- * Num of URI handled
- */
+ /*
+ * Num of URI handled
+ */
- int size;
+ int size;
- /*
- * Capacity
- */
+ /*
+ * Capacity
+ */
- int capacity;
+ int capacity;
- /*
- * URL/URIs (autoconf)
- */
+ /*
+ * URL/URIs (autoconf)
+ */
- char **uris;
- }
- jk_context_item_t;
+ char **uris;
+}
+jk_context_item_t;
- typedef struct
- {
+typedef struct
+{
- /*
- * Memory Pool
- */
+ /*
+ * Memory Pool
+ */
- jk_pool_t p;
- jk_pool_atom_t buf[SMALL_POOL_SIZE];
+ jk_pool_t p;
+ jk_pool_atom_t buf[SMALL_POOL_SIZE];
- /*
- * Virtual Server (if use)
- */
+ /*
+ * Virtual Server (if use)
+ */
- char *virtual;
+ char *virtual;
- /*
- * Num of context handled (ie: examples, admin...)
- */
+ /*
+ * Num of context handled (ie: examples, admin...)
+ */
- int size;
+ int size;
- /*
- * Capacity
- */
+ /*
+ * Capacity
+ */
- int capacity;
+ int capacity;
- /*
- * Context list, context / URIs
- */
+ /*
+ * Context list, context / URIs
+ */
- jk_context_item_t **contexts;
- }
- jk_context_t;
+ jk_context_item_t **contexts;
+}
+jk_context_t;
/*
* functions defined here
*/
- int context_set_virtual(jk_context_t *c, char *virtual);
+int context_set_virtual(jk_context_t *c, char *virtual);
- int context_open(jk_context_t *c, char *virtual);
+int context_open(jk_context_t *c, char *virtual);
- int context_close(jk_context_t *c);
+int context_close(jk_context_t *c);
- int context_alloc(jk_context_t **c, char *virtual);
+int context_alloc(jk_context_t **c, char *virtual);
- int context_free(jk_context_t **c);
+int context_free(jk_context_t **c);
- jk_context_item_t *context_find_base(jk_context_t *c, char *cbase);
+jk_context_item_t *context_find_base(jk_context_t *c, char *cbase);
- char *context_item_find_uri(jk_context_item_t *ci, char *uri);
+char *context_item_find_uri(jk_context_item_t *ci, char *uri);
- void context_dump_uris(jk_context_t *c, char *cbase, FILE * f);
+void context_dump_uris(jk_context_t *c, char *cbase, FILE * f);
- jk_context_item_t *context_add_base(jk_context_t *c, char *cbase);
+jk_context_item_t *context_add_base(jk_context_t *c, char *cbase);
- int context_add_uri(jk_context_t *c, char *cbase, char *uri);
+int context_add_uri(jk_context_t *c, char *cbase, char *uri);
#ifdef __cplusplus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]