1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
Graham Leggett
2008-04-08 23:12:12 +00:00
parent 5be746a2fb
commit 36500032fc
4 changed files with 18 additions and 1 deletions

View File

@@ -40,13 +40,18 @@ AP_IMPLEMENT_HOOK_RUN_ALL(int, session_encode,
(request_rec * r, session_rec * z), (r, z), OK, DECLINED) (request_rec * r, session_rec * z), (r, z), OK, DECLINED)
AP_IMPLEMENT_HOOK_RUN_ALL(int, session_decode, AP_IMPLEMENT_HOOK_RUN_ALL(int, session_decode,
(request_rec * r, session_rec * z), (r, z), OK, DECLINED) (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. * Should the session be included within this URL.
* *
* This function tests whether a session is valid for this URL. It uses the * 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. * 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; const char **includes = (const char **) conf->includes->elts;

View File

@@ -39,6 +39,9 @@ typedef struct {
int remove_set; int remove_set;
} session_cookie_dir_conf; } 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. * Set the cookie and embed the session within it.
* *

View File

@@ -46,6 +46,11 @@ typedef struct {
int engine_set; int engine_set;
} session_crypto_dir_conf; } 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. * Initialise the encryption as per the current config.
* *

View File

@@ -48,6 +48,10 @@ typedef struct {
const char *deletelabel; const char *deletelabel;
} session_dbd_dir_conf; } 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 */ /* optional function - look it up once in post_config */
static ap_dbd_t *(*session_dbd_acquire_fn) (request_rec *) = NULL; static ap_dbd_t *(*session_dbd_acquire_fn) (request_rec *) = NULL;
static void (*session_dbd_prepare_fn) (server_rec *, const char *, const char *) = NULL; static void (*session_dbd_prepare_fn) (server_rec *, const char *, const char *) = NULL;