~ubuntu-branches/ubuntu/trusty/glusterfs/trusty

« back to all changes in this revision

Viewing changes to libglusterfs/src/checksum.h

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2010-02-09 18:53:10 UTC
  • mfrom: (1.2.4 upstream) (4.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100209185310-ww8p82lsbosorg2u
* New upstream release.
* Uploading to unstable.
* Bump Standards-Version to 3.8.4 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
   Copyright (c) 2009 Gluster, Inc. <http://www.gluster.com>
 
3
   This file is part of GlusterFS.
 
4
 
 
5
   GlusterFS is free software; you can redistribute it and/or modify
 
6
   it under the terms of the GNU General Public License as published
 
7
   by the Free Software Foundation; either version 3 of the License,
 
8
   or (at your option) any later version.
 
9
 
 
10
   GlusterFS is distributed in the hope that it will be useful, but
 
11
   WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
   General Public License for more details.
 
14
 
 
15
   You should have received a copy of the GNU General Public License
 
16
   along with this program.  If not, see
 
17
   <http://www.gnu.org/licenses/>.
 
18
*/
 
19
 
 
20
#ifndef __CHECKSUM_H__
 
21
#define __CHECKSUM_H__
 
22
 
 
23
uint32_t
 
24
gf_rsync_weak_checksum (char *buf, int32_t len);
 
25
 
 
26
void
 
27
gf_rsync_strong_checksum (char *buf, int32_t len, uint8_t *sum);
 
28
 
 
29
#endif /* __CHECKSUM_H__ */