blob: f67e33012ed33dc9e94bf25929bca4f2e68f37f2 [file] [log] [blame]
/*
* Copyright 1999-2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/***************************************************************************
* Description: URI to worker mapper header file *
* Author: Gal Shachor <shachor@il.ibm.com> *
* Version: $Revision$ *
***************************************************************************/
#ifndef JK_URI_WORKER_MAP_H
#define JK_URI_WORKER_MAP_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include "jk_global.h"
#include "jk_map.h"
#include "jk_logger.h"
struct jk_uri_worker_map;
typedef struct jk_uri_worker_map jk_uri_worker_map_t;
int uri_worker_map_alloc(jk_uri_worker_map_t **uw_map,
jk_map_t *init_data,
jk_logger_t *l);
int uri_worker_map_free(jk_uri_worker_map_t **uw_map,
jk_logger_t *l);
int uri_worker_map_open(jk_uri_worker_map_t *uw_map,
jk_map_t *init_data,
jk_logger_t *l);
int uri_worker_map_add(jk_uri_worker_map_t *uw_map,
char *puri,
char *pworker,
jk_logger_t *l);
int uri_worker_map_close(jk_uri_worker_map_t *uw_map,
jk_logger_t *l);
void jk_no2slash(char *name);
char *map_uri_to_worker(jk_uri_worker_map_t *uw_map,
char *uri,
jk_logger_t *l);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* JK_URI_WORKER_MAP_H */