|
Global Variables |
|
|
|
Class "wa_chain" Detail: |
struct wa_chain {
void *curr;
wa_chain *next;
};
A simple chain structure holding lists of pointers.
Class "wa_chain" Variables: |
void *curr;
wa_chain *next;
Class "wa_provider" Detail: |
struct wa_provider {
char *(*applinfo)(wa_application *appl, apr_pool_t *pool);
char *(*conninfo)(wa_connection *conn, apr_pool_t *pool);
const const char *(*connect)(wa_connection *conn, const char *param);
const const char *(*deploy)(wa_application *appl);
const const char *(*init)(void);
int (*handle)(wa_request *req, wa_application *appl);
const char *name;
void (*shutdown)(void);
void (*startup)(void);
};
The WebApp Library connection provider structure.
This structure contains all data and function pointers to be implemented
by a connection provider.
Class "wa_provider" Functions: |
char *(*applinfo)(wa_application *appl, apr_pool_t *pool);
appl
-
The application for wich a description must be produced.
pool
-
The memory pool where the returned string must be allocated.
char *(*conninfo)(wa_connection *conn, apr_pool_t *pool);
conn
-
The connection for wich a description must be produced.
pool
-
The memory pool where the returned string must be allocated.
const const char *(*connect)(wa_connection *conn, const char *param);
conn
-
The connection to configure.
param
-
The extra parameter from web server configuration.
const const char *(*deploy)(wa_application *appl);
appl
-
The application being deployed.
const const char *(*init)(void);
int (*handle)(wa_request *req, wa_application *appl);
req
-
The request data.
appl
-
The application associated with the request.
return
-
The HTTP status code of the response.
void (*shutdown)(void);
void (*startup)(void);
Class "wa_provider" Variables: |
const char *name;
Global Functions Detail: |
void wa_debug(const char *f, const int l, const char *fmt, ...);
f
-
The file where this function was called.
l
-
The line number where this function was called.
fmt
-
The format string of the debug message (printf style).
others
-
The parameters to the format string.
const char *wa_deploy(wa_application *a, wa_virtualhost *h, wa_connection *c);
a
-
The wa_application
member of the web-application to
deploy.
h
-
The wa_virtualhost
member of the host under which the
web-application has to be deployed.
c
-
The wa_connection
member of the connection used to
reach the application.
const char *wa_init(void);
void wa_log(const char *f, const int l, const char *fmt, ...);
f
-
The file where this function was called.
l
-
The line number where this function was called.
fmt
-
The format string of the debug message (printf style).
others
-
The parameters to the format string.
void wa_shutdown(void);
void wa_startup(void);
Global Variables Detail: |
extern wa_chain *wa_configuration;
wa_chain
structure contain the configuration of
the WebApp Library in the form of all deployed wa_application
,
wa_virtualhost
and wa_connection
structures.
curr
member in the wa_chain
structure contains
always a wa_virtualhost
structure, from which all configured
wa_application
members and relative wa_connection
members can be retrieved.
extern apr_pool_t *wa_pool;
extern wa_provider *wa_providers[];
wa_provider
members.