X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Ftpath.h;h=4ed39bf3bb814a641a4f14239a7f5ed0a6f49e1e;hb=6c35039e69102dbbce08e8f39a2fbbade4406c16;hp=f93ba637da9a88b0ac6cb07e5f83e9fb29f172be;hpb=d9ee01635f03f9095a66f71b73580560d48798e8;p=yaz-moved-to-github.git diff --git a/include/yaz/tpath.h b/include/yaz/tpath.h index f93ba63..4ed39bf 100644 --- a/include/yaz/tpath.h +++ b/include/yaz/tpath.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-1997, Index Data. + * Copyright (c) 1995-2004, Index Data. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -23,31 +23,30 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * - * $Log: tpath.h,v $ - * Revision 1.1 1999-11-30 13:47:11 adam - * Improved installation. Moved header files to include/yaz. - * - * Revision 1.4 1997/10/31 12:20:08 adam - * Improved memory debugging for xmalloc/nmem.c. References to NMEM - * instead of ODR in n ESPEC-1 handling in source d1_espec.c. - * Bug fix: missing fclose in data1_read_espec1. + * $Id: tpath.h,v 1.6 2004-10-15 00:18:59 adam Exp $ * */ +/** + * \file tpath.h + * \brief Header for path fopen + */ #ifndef TPATH_H #define TPATH_H #include -#ifdef __cplusplus -extern "C" { -#endif +YAZ_BEGIN_CDECL -YAZ_EXPORT FILE *yaz_path_fopen(const char *path, - const char *name, const char *mode); +YAZ_EXPORT FILE *yaz_fopen(const char *path, const char *name, + const char *mode, const char *base); +YAZ_EXPORT FILE *yaz_path_fopen(const char *path, const char *name, + const char *mode); -#ifdef __cplusplus -} -#endif +YAZ_EXPORT int yaz_fclose(FILE *f); + +YAZ_EXPORT int yaz_is_abspath (const char *p); + +YAZ_END_CDECL #endif