Mercurial > repos > ktnyt > gembassy
diff GEMBASSY-1.0.3/gsoap/extras/soapdefs.h @ 0:8300eb051bea draft
Initial upload
author | ktnyt |
---|---|
date | Fri, 26 Jun 2015 05:19:29 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/GEMBASSY-1.0.3/gsoap/extras/soapdefs.h Fri Jun 26 05:19:29 2015 -0400 @@ -0,0 +1,28 @@ +// soapdefs.h +// Place this file in the same directory as stdsoap2.h +// This file will be included in stdsoap2.h when compiling with +// -DWITH_SOAPDEFS_H (see stdsoap2.h line 16) +// See extras/logging.cpp for customer logging +// +// Runtime/Customer logging by Mike Helmick +// Copyright (c) 2002 - Mike Helmick. Convergys IMG. All Rights Reserved. +// This contributed code si covered under the MPL 1.1 license + +#ifndef SOAPDEFS_H +#define SOAPDEFS_H + +#ifdef DEBUG_CALLBACKS +#ifndef DEBUG +#define DEBUG +#endif +#define SOAP_MESSAGE sprintf +#define DBGLOG(DBGFILE, CMD) \ +{ char fdebug[SOAP_BUFLEN+1];\ + CMD;\ + soap_dispatch_callback(soap, SOAP_INDEX_##DBGFILE, fdebug, strlen(fdebug));\ +} +#define DBGMSG(DBGFILE, MSG, LEN) soap_dispatch_callback(soap, SOAP_INDEX_##DBGFILE, MSG, LEN); +void soap_dispatch_callback(struct soap*, int, const char*, size_t); +#endif + +#endif