From 28bbf3bf4a2162dabd2cca6a0bbbbc392ca41caf Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 23 Nov 2009 23:27:12 +0000 Subject: [PATCH] New file. --- src/internal.h | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/internal.h diff --git a/src/internal.h b/src/internal.h new file mode 100644 index 0000000..034eff8 --- /dev/null +++ b/src/internal.h @@ -0,0 +1,52 @@ +/* private.h -- Private header file for libotf + +Copyright (C) 2009 + National Institute of Advanced Industrial Science and Technology (AIST) + Registration Number H15PRO167 + +This file is part of libotf. + +Libotf is free software; you can redistribute it and/or modify it +under the terms of the GNU Lesser General Public License as published +by the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +Libotf 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 Lesser General Public +License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library, in a file named COPYING; if not, +write to the Free Software Foundation, Inc., 59 Temple Place, Suite +330, Boston, MA 02111-1307, USA. */ + +#ifndef _PRIVATE_H_ +#define _PRIVATE_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#define OTF_ERROR(err, arg) \ + return (otf__error ((err), errfmt, (arg)), errret) + +extern int otf__error (int err, const char *fmt, const void *arg); + +typedef struct +{ + int size; + int allocated; + OTF_Tag *tags; +} OTF_DriveLog; + +extern void set_drive_log (OTF *otf, OTF_DriveLog *log); + +extern OTF_DriveLog *get_drive_log (OTF *otf); + + +#ifdef __cplusplus +} +#endif + +#endif /* not _PRIVATE_H__ */ -- 1.7.10.4