request.h revision cb1e20df951447249fd1344ae04a790219a16be5
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl/**
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl * Licensed to the Apache Software Foundation (ASF) under one or more
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl * contributor license agreements. See the NOTICE file distributed with
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl * this work for additional information regarding copyright ownership.
98890889ffb2e8f6f722b00e265a211f13b5a861Corneliu-Claudiu Prodescu * The ASF licenses this file to You under the Apache License, Version 2.0
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl * (the "License"); you may not use this file except in compliance with
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl * the License. You may obtain a copy of the License at
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl *
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl * http://www.apache.org/licenses/LICENSE-2.0
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl *
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl * Unless required by applicable law or agreed to in writing, software
a530dde7009b0a808300c420def741354a4d13d2Martin Kühl * distributed under the License is distributed on an "AS IS" BASIS,
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco * See the License for the specific language governing permissions and
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco * limitations under the License.
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco */
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco#ifndef REQUEST_H
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco#define REQUEST_H
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián RiescoAPR_DECLARE(void) apw_push_request(lua_State* L, request_rec* r);
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián RiescoAPR_DECLARE(void) apw_load_request_lmodule(lua_State *L, apr_pool_t *p);
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco#define APW_REQ_FUNTYPE_STRING 1
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco#define APW_REQ_FUNTYPE_INT 2
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco#define APW_REQ_FUNTYPE_TABLE 3
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco#define APW_REQ_FUNTYPE_LUACFUN 4
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco#define APW_REQ_FUNTYPE_BOOLEAN 5
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riescotypedef struct {
5318901bb69bf247e0f341312c800ba4ea87e46bAdrián Riesco void *fun;
223be434693e8c97e2522ac19155a284b3536035Adrián Riesco int type;
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco} req_fun_t;
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco#endif
b9840e4ee6fda6e42fa4ee9f337482ccc4839a39Adrián Riesco
d72e314a1952b4418fb1c98b17dbab0d16bba585Adrián Riesco