FreeRDP
|
#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) |
#define reportResult | ( | result, | |
operation | |||
) | (_reportResult((result), (operation), __FILE__, __LINE__)) |
|
inlinestatic |
void TPCircularBufferCleanup | ( | TPCircularBuffer * | buffer | ) |
Cleanup buffer
Releases buffer resources.
void TPCircularBufferClear | ( | TPCircularBuffer * | buffer | ) |
Clear buffer
Resets buffer to original, empty state.
This is safe for use by consumer while producer is accessing buffer.
bool TPCircularBufferInit | ( | TPCircularBuffer * | buffer, |
int | length | ||
) |