0
|
1 // soapdefs.h
|
|
2 // Place this file in the same directory as stdsoap2.h
|
|
3 // This file will be included in stdsoap2.h when compiling with
|
|
4 // -DWITH_SOAPDEFS_H (see stdsoap2.h line 16)
|
|
5 // See extras/logging.cpp for customer logging
|
|
6 //
|
|
7 // Runtime/Customer logging by Mike Helmick
|
|
8 // Copyright (c) 2002 - Mike Helmick. Convergys IMG. All Rights Reserved.
|
|
9 // This contributed code si covered under the MPL 1.1 license
|
|
10
|
|
11 #ifndef SOAPDEFS_H
|
|
12 #define SOAPDEFS_H
|
|
13
|
|
14 #ifdef DEBUG_CALLBACKS
|
|
15 #ifndef DEBUG
|
|
16 #define DEBUG
|
|
17 #endif
|
|
18 #define SOAP_MESSAGE sprintf
|
|
19 #define DBGLOG(DBGFILE, CMD) \
|
|
20 { char fdebug[SOAP_BUFLEN+1];\
|
|
21 CMD;\
|
|
22 soap_dispatch_callback(soap, SOAP_INDEX_##DBGFILE, fdebug, strlen(fdebug));\
|
|
23 }
|
|
24 #define DBGMSG(DBGFILE, MSG, LEN) soap_dispatch_callback(soap, SOAP_INDEX_##DBGFILE, MSG, LEN);
|
|
25 void soap_dispatch_callback(struct soap*, int, const char*, size_t);
|
|
26 #endif
|
|
27
|
|
28 #endif
|