Subversion Repositories f9daq

Rev

Rev 197 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
195 f9daq 1
/********************************************************************\
2
 
3
  Name:         rb.h
4
  Created by:   Stefan Ritt
5
 
6
  Contents:     Function declarations and constants for ring buffer
7
                routines
8
 
9
  $Id: rb.h 17217 2011-02-25 15:31:29Z ritt $
10
 
11
\********************************************************************/
12
 
13
#define RB_SUCCESS         1
14
#define RB_NO_MEMORY       2
15
#define RB_INVALID_PARAM   3
16
#define RB_INVALID_HANDLE  4
17
#define RB_TIMEOUT         5
18
 
19
#define POINTER_T unsigned int
20
 
21
int rb_set_nonblocking();
22
int rb_create(int size, int max_event_size, int *ring_buffer_handle);
23
int rb_delete(int ring_buffer_handle);
24
int rb_get_wp(int handle, void **p, int millisec);
25
int rb_increment_wp(int handle, int size);
26
int rb_get_rp(int handle, void **p, int millisec);
27
int rb_increment_rp(int handle, int size);
28
int rb_get_buffer_level(int handle, int * n_bytes);