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

◆ reportResult

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

Function Documentation

◆ _reportResult()

static bool _reportResult ( kern_return_t  result,
const char *  operation,
const char *  file,
int  line 
)
inlinestatic
Here is the call graph for this function:

◆ TPCircularBufferCleanup()

void TPCircularBufferCleanup ( TPCircularBuffer buffer)

Cleanup buffer

Releases buffer resources.

Here is the caller graph for this function:

◆ TPCircularBufferClear()

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:

◆ TPCircularBufferInit()

bool TPCircularBufferInit ( TPCircularBuffer buffer,
int  length 
)
Here is the call graph for this function:
Here is the caller graph for this function: