Apache HTTPD
apr_getopt.h
Go to the documentation of this file.
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef APR_GETOPT_H
18#define APR_GETOPT_H
19
25#include "apr_pools.h"
26
27#ifdef __cplusplus
28extern "C" {
29#endif /* __cplusplus */
30
42typedef void (apr_getopt_err_fn_t)(void *arg, const char *err, ...);
43
46
56 void *errarg;
58 int ind;
60 int opt;
62 int reset;
64 int argc;
66 const char **argv;
68 char const* place;
75};
76
79
85 const char *name;
87 int optch;
91 const char *description;
92};
93
104 int argc, const char * const *argv);
105
122APR_DECLARE(apr_status_t) apr_getopt(apr_getopt_t *os, const char *opts,
123 char *option_ch, const char **option_arg);
124
152 int *option_ch,
153 const char **option_arg);
156#ifdef __cplusplus
157}
158#endif
159
160#endif /* ! APR_GETOPT_H */
APR memory allocation.
void const char * arg
Definition http_vhost.h:63
const void apr_status_t(*) apr_status_t(* APR_DECLARE)(void) apr_pool_pre_cleanup_register(apr_pool_t *p
Definition apr_pools.h:646
apr_size_t size
int apr_status_t
Definition apr_errno.h:44
const char char const char ** option_arg
Definition apr_getopt.h:123
const char char * option_ch
Definition apr_getopt.h:123
apr_pool_t int const char *const * argv
Definition apr_getopt.h:104
apr_pool_t int argc
Definition apr_getopt.h:104
const char * opts
Definition apr_getopt.h:122
apr_pool_t * cont
Definition apr_getopt.h:103
void() apr_getopt_err_fn_t(void *arg, const char *err,...)
Definition apr_getopt.h:42
apr_int32_t apr_int32_t apr_int32_t err
const char * name
Definition apr_getopt.h:85
const char * description
Definition apr_getopt.h:91
const char ** argv
Definition apr_getopt.h:66
void * errarg
Definition apr_getopt.h:56
apr_pool_t * cont
Definition apr_getopt.h:52
apr_getopt_err_fn_t * errfn
Definition apr_getopt.h:54
char const * place
Definition apr_getopt.h:68