1251876Speter/* Licensed to the Apache Software Foundation (ASF) under one or more
2251876Speter * contributor license agreements.  See the NOTICE file distributed with
3251876Speter * this work for additional information regarding copyright ownership.
4251876Speter * The ASF licenses this file to You under the Apache License, Version 2.0
5251876Speter * (the "License"); you may not use this file except in compliance with
6251876Speter * the License.  You may obtain a copy of the License at
7251876Speter *
8251876Speter *     http://www.apache.org/licenses/LICENSE-2.0
9251876Speter *
10251876Speter * Unless required by applicable law or agreed to in writing, software
11251876Speter * distributed under the License is distributed on an "AS IS" BASIS,
12251876Speter * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13251876Speter * See the License for the specific language governing permissions and
14251876Speter * limitations under the License.
15251876Speter */
16251876Speter
17251876Speter#include "apr_general.h" /* for APR_STRINGIFY */
18251876Speter
19251876Speter#include "apu.h"
20251876Speter#include "apu_version.h"
21251876Speter
22251876SpeterAPU_DECLARE(void) apu_version(apr_version_t *pvsn)
23251876Speter{
24251876Speter    pvsn->major = APU_MAJOR_VERSION;
25251876Speter    pvsn->minor = APU_MINOR_VERSION;
26251876Speter    pvsn->patch = APU_PATCH_VERSION;
27251876Speter#ifdef APU_IS_DEV_VERSION
28251876Speter    pvsn->is_dev = 1;
29251876Speter#else
30251876Speter    pvsn->is_dev = 0;
31251876Speter#endif
32251876Speter}
33251876Speter
34251876SpeterAPU_DECLARE(const char *) apu_version_string(void)
35251876Speter{
36251876Speter    return APU_VERSION_STRING;
37251876Speter}
38