simple_api.c revision 19af44d09017c09443615b57a479ea8d80ba0e4c
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd/* Licensed to the Apache Software Foundation (ASF) under one or more
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * contributor license agreements. See the NOTICE file distributed with
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * this work for additional information regarding copyright ownership.
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * The ASF licenses this file to You under the Apache License, Version 2.0
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * (the "License"); you may not use this file except in compliance with
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * the License. You may obtain a copy of the License at
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * Unless required by applicable law or agreed to in writing, software
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * distributed under the License is distributed on an "AS IS" BASIS,
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * See the License for the specific language governing permissions and
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd * limitations under the License.
4b575a6b6704b516f22d65a3ad35696d7b9ba372rpluem/* This file contains the absolute minimal MPM API, to interface with httpd. */
6116c12fdd3ed06d388fe6572e50a22e9320dfa5ndstatic int simple_run(apr_pool_t * pconf, apr_pool_t * plog, server_rec * s)
5652dbe450e4fcfdf36d4cfb42d7f2345ded29a4maczniak if (ap_run_pre_mpm(s->process->pool, SB_SHARED) != OK) {
6116c12fdd3ed06d388fe6572e50a22e9320dfa5ndstatic apr_status_t simple_query(int query_code, int *result)
5652dbe450e4fcfdf36d4cfb42d7f2345ded29a4maczniak apr_pool_t * plog, apr_pool_t * ptemp, server_rec * s)
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd "simple_open_logs: no listening sockets available, shutting down");
6116c12fdd3ed06d388fe6572e50a22e9320dfa5ndsimple_pre_config(apr_pool_t * pconf, apr_pool_t * plog, apr_pool_t * ptemp)
5652dbe450e4fcfdf36d4cfb42d7f2345ded29a4maczniak /* this is our first 'real' entry point, so setup everything here. */
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd "simple_core_init_once: Fatal Error Encountered");
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd sc->run_foreground = ap_exists_config_define("FOREGROUND");
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd "simple_pre_config: apr_proc_detach(%s) failed",
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd "simple_check_config: SimpleProcCount must be at most %d",
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd "simple_check_config: SimpleProcCount must be at least %d",
6116c12fdd3ed06d388fe6572e50a22e9320dfa5nd "simple_check_config: SimpleThreadCount must be at most %d",
return !OK;
return OK;
const char *arg)
return err;
return NULL;
const char *arg)
return err;
return NULL;
{NULL}