FreeRDP
TPCircularBuffer.c File Reference
#include <winpr/wlog.h>
#include "TPCircularBuffer.h"
#include "rdpsnd_main.h"
#include <mach/mach.h>
#include <stdio.h>

Macros

#define reportResult(result, operation)   (_reportResult((result),(operation),__FILE__,__LINE__))
 

Functions

static bool _reportResult (kern_return_t result, const char *operation, const char *file, int line)
 
bool TPCircularBufferInit (TPCircularBuffer *buffer, int length)
 
void TPCircularBufferCleanup (TPCircularBuffer *buffer)
 
void TPCircularBufferClear (TPCircularBuffer *buffer)
 

Macro Definition Documentation

#define reportResult (   result,
  operation 
)    (_reportResult((result),(operation),__FILE__,__LINE__))

Function Documentation

static bool _reportResult ( kern_return_t  result,
const char *  operation,
const char *  file,
int  line 
)
inlinestatic
void TPCircularBufferCleanup ( TPCircularBuffer buffer)

Cleanup buffer

Releases buffer resources.

Here is the caller graph for this function:

void TPCircularBufferClear ( TPCircularBuffer buffer)

Clear buffer

Resets buffer to original, empty state.

This is safe for use by consumer while producer is accessing buffer.

Here is the caller graph for this function:

bool TPCircularBufferInit ( TPCircularBuffer buffer,
int  length 
)

Here is the caller graph for this function: