From: Adam Dickmeiss Date: Tue, 9 Dec 2003 12:51:16 +0000 (+0000) Subject: Added missing C decl macros for soap.h and srw.h. X-Git-Tag: YAZ.2.0.7~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=5b417578fa8bce4671d29d59201ae0ad0c7e5653;p=yaz-moved-to-github.git Added missing C decl macros for soap.h and srw.h. --- diff --git a/CHANGELOG b/CHANGELOG index e9460f7..6ed1441 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,8 @@ Possible compatibility problems with earlier versions marked with '*'. +Added missing C decl macros for include/yaz/{soap.h,srw.h}, so that +functions from there can be used from C++. + --- 2.0.6 2003/12/04 Frontend server now transfers memory from decoded packages to stream diff --git a/include/yaz/soap.h b/include/yaz/soap.h index 79264f6..09695b5 100644 --- a/include/yaz/soap.h +++ b/include/yaz/soap.h @@ -2,7 +2,7 @@ * Copyright (c) 2002-2003, Index Data. * See the file LICENSE for details. * - * $Id: soap.h,v 1.4 2003-03-24 22:26:50 adam Exp $ + * $Id: soap.h,v 1.5 2003-12-09 12:51:16 adam Exp $ */ #ifndef YAZ_SOAP_H @@ -10,6 +10,8 @@ #include +YAZ_BEGIN_CDECL + typedef struct { char *fault_code; char *fault_string; @@ -54,4 +56,5 @@ YAZ_EXPORT int z_soap_error(ODR o, Z_SOAP *p, const char *fault_code, const char *fault_string, const char *details); +YAZ_END_CDECL #endif diff --git a/include/yaz/srw.h b/include/yaz/srw.h index 99dfd59..bf61fda 100644 --- a/include/yaz/srw.h +++ b/include/yaz/srw.h @@ -2,7 +2,7 @@ * Copyright (c) 2002-2003, Index Data. * See the file LICENSE for details. * - * $Id: srw.h,v 1.7 2003-03-23 20:27:16 adam Exp $ + * $Id: srw.h,v 1.8 2003-12-09 12:51:16 adam Exp $ */ #ifndef YAZ_SRW_H @@ -10,6 +10,8 @@ #include +YAZ_BEGIN_CDECL + typedef struct { char *recordSchema; int recordPacking; @@ -102,5 +104,6 @@ YAZ_EXPORT int yaz_diag_bib1_to_srw (int bib1_code); YAZ_EXPORT int yaz_diag_srw_to_bib1(int srw_code); +YAZ_END_CDECL #endif