New file.
[m17n/libotf.git] / src / internal.h
1 /* private.h -- Private header file for libotf
2
3 Copyright (C) 2009
4   National Institute of Advanced Industrial Science and Technology (AIST)
5   Registration Number H15PRO167
6
7 This file is part of libotf.
8
9 Libotf is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published
11 by the Free Software Foundation; either version 2.1 of the License, or
12 (at your option) any later version.
13
14 Libotf is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
17 License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library, in a file named COPYING; if not,
21 write to the Free Software Foundation, Inc., 59 Temple Place, Suite
22 330, Boston, MA 02111-1307, USA.  */
23
24 #ifndef _PRIVATE_H_
25 #define _PRIVATE_H_
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 #define OTF_ERROR(err, arg)     \
32   return (otf__error ((err), errfmt, (arg)), errret)
33
34 extern int otf__error (int err, const char *fmt, const void *arg);
35
36 typedef struct
37 {
38   int size;
39   int allocated;
40   OTF_Tag *tags;
41 } OTF_DriveLog;
42
43 extern void set_drive_log (OTF *otf, OTF_DriveLog *log);
44
45 extern OTF_DriveLog *get_drive_log (OTF *otf);
46
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #endif /* not _PRIVATE_H__ */