]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/subversion/subversion/include/private/svn_adler32.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / subversion / subversion / include / private / svn_adler32.h
1 /**
2  * @copyright
3  * ====================================================================
4  *    Licensed to the Apache Software Foundation (ASF) under one
5  *    or more contributor license agreements.  See the NOTICE file
6  *    distributed with this work for additional information
7  *    regarding copyright ownership.  The ASF licenses this file
8  *    to you under the Apache License, Version 2.0 (the
9  *    "License"); you may not use this file except in compliance
10  *    with the License.  You may obtain a copy of the License at
11  *
12  *      http://www.apache.org/licenses/LICENSE-2.0
13  *
14  *    Unless required by applicable law or agreed to in writing,
15  *    software distributed under the License is distributed on an
16  *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17  *    KIND, either express or implied.  See the License for the
18  *    specific language governing permissions and limitations
19  *    under the License.
20  * ====================================================================
21  * @endcopyright
22  *
23  * @file svn_adler32.h
24  * @brief Subversion's take on Adler-32 calculation
25  */
26
27 #ifndef SVN_ADLER32_H
28 #define SVN_ADLER32_H
29
30 #include <apr.h>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35
36
37 /**
38  * Return an adler32 checksum based on CHECKSUM, updated with
39  * DATA of size LEN.
40  *
41  * @since New in 1.7.
42  */
43 apr_uint32_t
44 svn__adler32(apr_uint32_t checksum, const char *data, apr_off_t len);
45
46
47 #ifdef __cplusplus
48 }
49 #endif /* __cplusplus */
50
51
52 #endif /* SVN_ADLER32_H */