1251881Speter/**
2251881Speter * @copyright
3251881Speter * ====================================================================
4251881Speter *    Licensed to the Apache Software Foundation (ASF) under one
5251881Speter *    or more contributor license agreements.  See the NOTICE file
6251881Speter *    distributed with this work for additional information
7251881Speter *    regarding copyright ownership.  The ASF licenses this file
8251881Speter *    to you under the Apache License, Version 2.0 (the
9251881Speter *    "License"); you may not use this file except in compliance
10251881Speter *    with the License.  You may obtain a copy of the License at
11251881Speter *
12251881Speter *      http://www.apache.org/licenses/LICENSE-2.0
13251881Speter *
14251881Speter *    Unless required by applicable law or agreed to in writing,
15251881Speter *    software distributed under the License is distributed on an
16251881Speter *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17251881Speter *    KIND, either express or implied.  See the License for the
18251881Speter *    specific language governing permissions and limitations
19251881Speter *    under the License.
20251881Speter * ====================================================================
21251881Speter * @endcopyright
22251881Speter *
23251881Speter * @file svn_adler32.h
24251881Speter * @brief Subversion's take on Adler-32 calculation
25251881Speter */
26251881Speter
27251881Speter#ifndef SVN_ADLER32_H
28251881Speter#define SVN_ADLER32_H
29251881Speter
30251881Speter#include <apr.h>
31251881Speter
32251881Speter#ifdef __cplusplus
33251881Speterextern "C" {
34251881Speter#endif /* __cplusplus */
35251881Speter
36251881Speter
37251881Speter/**
38251881Speter * Return an adler32 checksum based on CHECKSUM, updated with
39251881Speter * DATA of size LEN.
40251881Speter *
41251881Speter * @since New in 1.7.
42251881Speter */
43251881Speterapr_uint32_t
44251881Spetersvn__adler32(apr_uint32_t checksum, const char *data, apr_off_t len);
45251881Speter
46251881Speter
47251881Speter#ifdef __cplusplus
48251881Speter}
49251881Speter#endif /* __cplusplus */
50251881Speter
51251881Speter
52251881Speter#endif /* SVN_ADLER32_H */
53