forked from mischasan/hx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhx_.h
36 lines (32 loc) · 1.45 KB
/
hx_.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (C) 2009-2013 Mischa Sandberg <[email protected]>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License Version 2 as
// published by the Free Software Foundation. You may not use, modify or
// distribute this program under any other version of the GNU General
// Public License.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// IF YOU ARE UNABLE TO WORK WITH GPL2, CONTACT ME.
//-------------------------------------------------------------------
// hx_.h: interface definitions for record-type library implementers.
#ifndef HX__H
#define HX__H
#include "hx.h"
int diff(char const *, char const *, char const *, int);
HXHASH hash(char const *, char const *, int);
int load(char *, int recsize, char const *, char const *, int);
int save(char const *, int reclen, char *, int bufsize, char const *, int);
int test(char const *, int reclen, char const *, int);
#ifndef __unused
# define __unused __attribute__((unused))
#endif
#endif //HX__H