diff options
author | Graham Leggett <minfrin@apache.org> | 2008-04-09 01:12:12 +0200 |
---|---|---|
committer | Graham Leggett <minfrin@apache.org> | 2008-04-09 01:12:12 +0200 |
commit | 36500032fc54c9a4c157abdd4d57b2ef4cc6472c (patch) | |
tree | 97a033c263d90195d57c61382fd42f9ed8794c22 /modules/session | |
parent | added include dir. (diff) | |
download | apache2-36500032fc54c9a4c157abdd4d57b2ef4cc6472c.tar.xz apache2-36500032fc54c9a4c157abdd4d57b2ef4cc6472c.zip |
Insert prototypes to remove compiler warnings. [Joe Orton]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@646126 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/session')
-rw-r--r-- | modules/session/mod_session.c | 7 | ||||
-rw-r--r-- | modules/session/mod_session_cookie.c | 3 | ||||
-rw-r--r-- | modules/session/mod_session_crypto.c | 5 | ||||
-rw-r--r-- | modules/session/mod_session_dbd.c | 4 |
4 files changed, 18 insertions, 1 deletions
diff --git a/modules/session/mod_session.c b/modules/session/mod_session.c index cd4950e719..9ff7362d36 100644 --- a/modules/session/mod_session.c +++ b/modules/session/mod_session.c @@ -40,13 +40,18 @@ AP_IMPLEMENT_HOOK_RUN_ALL(int, session_encode, (request_rec * r, session_rec * z), (r, z), OK, DECLINED) AP_IMPLEMENT_HOOK_RUN_ALL(int, session_decode, (request_rec * r, session_rec * z), (r, z), OK, DECLINED) + +AP_DECLARE(int) ap_session_identity_encode(request_rec * r, session_rec * z); +AP_DECLARE(int) ap_session_identity_decode(request_rec * r, session_rec * z); +AP_DECLARE(int) ap_session_fixups(request_rec * r); + /** * Should the session be included within this URL. * * This function tests whether a session is valid for this URL. It uses the * include and exclude arrays to determine whether they should be included. */ - static int session_included(request_rec * r, session_dir_conf * conf) +static int session_included(request_rec * r, session_dir_conf * conf) { const char **includes = (const char **) conf->includes->elts; diff --git a/modules/session/mod_session_cookie.c b/modules/session/mod_session_cookie.c index b440f360ad..caaa3d19dd 100644 --- a/modules/session/mod_session_cookie.c +++ b/modules/session/mod_session_cookie.c @@ -39,6 +39,9 @@ typedef struct { int remove_set; } session_cookie_dir_conf; +AP_DECLARE(int) ap_session_cookie_save(request_rec * r, session_rec * z); +AP_DECLARE(int) ap_session_cookie_load(request_rec * r, session_rec ** z); + /** * Set the cookie and embed the session within it. * diff --git a/modules/session/mod_session_crypto.c b/modules/session/mod_session_crypto.c index 845e5ae072..240254b06d 100644 --- a/modules/session/mod_session_crypto.c +++ b/modules/session/mod_session_crypto.c @@ -46,6 +46,11 @@ typedef struct { int engine_set; } session_crypto_dir_conf; +AP_DECLARE(int) ap_session_crypto_encode(request_rec * r, session_rec * z); +AP_DECLARE(int) ap_session_crypto_decode(request_rec * r, session_rec * z); +AP_DECLARE(int) ap_session_crypto_init(apr_pool_t *p, apr_pool_t *plog, + apr_pool_t *ptemp, server_rec *s); + /** * Initialise the encryption as per the current config. * diff --git a/modules/session/mod_session_dbd.c b/modules/session/mod_session_dbd.c index 6c7c170347..520ecccb06 100644 --- a/modules/session/mod_session_dbd.c +++ b/modules/session/mod_session_dbd.c @@ -48,6 +48,10 @@ typedef struct { const char *deletelabel; } session_dbd_dir_conf; +AP_DECLARE(int) ap_session_dbd_load(request_rec * r, session_rec ** z); +AP_DECLARE(int) ap_session_dbd_save(request_rec * r, session_rec * z); +AP_DECLARE(int) ap_session_dbd_monitor(apr_pool_t *p); + /* optional function - look it up once in post_config */ static ap_dbd_t *(*session_dbd_acquire_fn) (request_rec *) = NULL; static void (*session_dbd_prepare_fn) (server_rec *, const char *, const char *) = NULL; |