~ubuntu-branches/ubuntu/natty/orbit2/natty

« back to all changes in this revision

Viewing changes to src/orb/GIOP/giop-debug.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Waters
  • Date: 2002-03-25 17:24:03 UTC
  • Revision ID: james.westby@ubuntu.com-20020325172403-8lexv63608acfqgt
Tags: upstream-2.3.107
ImportĀ upstreamĀ versionĀ 2.3.107

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __GIOP_DEBUG__
 
2
#define __GIOP_DEBUG__
 
3
 
 
4
#include "../orb-core/orbit-debug.h"
 
5
 
 
6
#ifndef G_ENABLE_DEBUG
 
7
 
 
8
#define do_giop_dump(fh, ptr, len, off)
 
9
#define do_giop_dump_send(buff)
 
10
#define do_giop_dump_recv(buff)
 
11
 
 
12
#else /* G_ENABLE_DEBUG */
 
13
 
 
14
#define do_giop_dump(fh, ptr, len, off)         G_STMT_START {  \
 
15
        if (_orbit_debug_flags & ORBIT_DEBUG_GIOP)              \
 
16
                giop_dump (fh, ptr, len, off);                  \
 
17
} G_STMT_END
 
18
 
 
19
#define do_giop_dump_send(buff)                 G_STMT_START {  \
 
20
        if (_orbit_debug_flags & ORBIT_DEBUG_GIOP)              \
 
21
                giop_dump_send (buff);                          \
 
22
} G_STMT_END
 
23
 
 
24
#define do_giop_dump_recv(buff)                 G_STMT_START {  \
 
25
        if (_orbit_debug_flags & ORBIT_DEBUG_GIOP)              \
 
26
                giop_dump_recv (buff);                          \
 
27
} G_STMT_END
 
28
 
 
29
#endif /* G_ENABLE_DEBUG */
 
30
 
 
31
void giop_dump      (FILE *out, guint8 const *ptr, guint32 len, guint32 offset);
 
32
void giop_dump_send (GIOPSendBuffer *send_buffer);
 
33
void giop_dump_recv (GIOPRecvBuffer *recv_buffer);
 
34
 
 
35
#endif /* __GIOP_DEBUG__ */