summaryrefslogtreecommitdiff
path: root/genindex/ringbuffer.c
blob: d5fcf0b7b5d7978bb1dc0ad70aaf915e61593b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
 * ringbuffer.c: A ring buffer
 *
 * See the main source file 'genindex.c' for copyright information and
 * how to reach the author.
 *
 * Parts of this file were inspired by the 'ringbuffy.c' from the
 * LinuxDVB driver (see linuxtv.org).
 *
 * $Id: ringbuffer.c,v 1.2 2016/09/01 15:37:42 richard Exp $
 *
 * This was taken from the VDR package, which was released under the GPL.
 * Stripped down to make the PES parser happy
 */

#include "ringbuffer.h"
#include <stdlib.h>
#include <unistd.h>
#include "tools.h"

// --- cRingBuffer -----------------------------------------------------------

cRingBuffer::cRingBuffer(int Size, bool Statistics)
{
}

cRingBuffer::~cRingBuffer()
{
}

void cRingBuffer::WaitForPut(void)
{
}

void cRingBuffer::WaitForGet(void)
{
}

void cRingBuffer::EnablePut(void)
{
}

void cRingBuffer::EnableGet(void)
{
}

void cRingBuffer::SetTimeouts(int PutTimeout, int GetTimeout)
{
}

// --- cFrame ----------------------------------------------------------------

cFrame::cFrame(const uchar *Data, int Count, eFrameType Type, int Index)
{
}

cFrame::~cFrame()
{
}

// --- cRingBufferFrame ------------------------------------------------------

cRingBufferFrame::cRingBufferFrame(int Size, bool Statistics)
:cRingBuffer(Size, Statistics)
{
}

cRingBufferFrame::~cRingBufferFrame()
{
}

void cRingBufferFrame::Clear(void)
{
}

bool cRingBufferFrame::Put(cFrame *Frame)
{
  return false;
}

cFrame *cRingBufferFrame::Get(void)
{
  return 0;
}

void cRingBufferFrame::Drop(cFrame *Frame)
{
}

int cRingBufferFrame::Available(void)
{
  return 0;
}