Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

traces_helper.c File Reference


Detailed Description

C helper file for traces library. Provides support for formatting buffers.

>

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include "traces_helper.h"
#include "traces_init.h"

Defines

#define ADD_BYTE(b)   theByte = (b); *thePtr++ = theByte;
#define ADD_U16(s)   theU16 = (s); *thePtr++ = (unsigned char)(theU16 >> 8); *thePtr++ = (unsigned char)theU16;
#define ADD_U32(l)   theU32 = (l); *thePtr++ = (unsigned char)(theU32 >> 24); *thePtr++ = (unsigned char)(theU32 >> 16); *thePtr++ = (unsigned char)(theU32 >> 8); *thePtr++ = (unsigned char)theU32;
#define kChunkSize   16384

Functions

void Trace_Send (TTraceSendParams *aParams)
void Trace_Close (TTracer *aTracer)
void Trace_SendText (TTraceSendParams *aParams, const char *aFormat, va_list anArgs)

Variables

TTracergTracer
CRITICAL_SECTION gSendCS
double dummy


Define Documentation

#define ADD_BYTE  )     theByte = (b); *thePtr++ = theByte;
 

#define ADD_U16  )     theU16 = (s); *thePtr++ = (unsigned char)(theU16 >> 8); *thePtr++ = (unsigned char)theU16;
 

#define ADD_U32  )     theU32 = (l); *thePtr++ = (unsigned char)(theU32 >> 24); *thePtr++ = (unsigned char)(theU32 >> 16); *thePtr++ = (unsigned char)(theU32 >> 8); *thePtr++ = (unsigned char)theU32;
 

#define kChunkSize   16384
 


Function Documentation

void Trace_Close TTracer aTracer  ) 
 

void Trace_Send TTraceSendParams aParams  ) 
 

void Trace_SendText TTraceSendParams aParams,
const char *  aFormat,
va_list  anArgs
 


Variable Documentation

double dummy
 

CRITICAL_SECTION gSendCS
 

TTracer* gTracer
 


Generated on Sat Dec 16 20:29:49 2006 for hiker-0.9 by  doxygen 1.4.4