source: roaraudio/doc/man3/roar_vs_iterate.3 @ 5057:9fdd843b0bbf

Last change on this file since 5057:9fdd843b0bbf was 5057:9fdd843b0bbf, checked in by phi, 13 years ago

some new manpages (See: #4)

File size: 1.3 KB
Line 
1.TH "roar_vs_iterate" "3" "June 2011" "RoarAudio" "RoarAudio Programmer's Manual"
2
3.SH NAME
4roar_vs_iterate, roar_vs_run \- Iterate streams
5
6.SH SYNOPSIS
7
8#include <roaraudio.h>
9
10int     roar_vs_iterate       (roar_vs_t * vss, int wait, int * error);
11
12int     roar_vs_run           (roar_vs_t * vss, int * error);
13
14.SH "DESCRIPTION"
15\fBroar_vs_iterate()\fR sends a block of data from the local buffer to the server or reads data from the
16server into the local buffer in blocking mode, or pushes or pulls data to or from server in file mode.
17
18\fBroar_vs_run()\fR does the same as roar_vs_iterate() but loops until EOF or error.
19
20.SH "PARAMETERS"
21.TP
22\fBvss\fR
23The VS object to be used.
24
25.TP
26\fBwait\fR
27If ROAR_VS_WAIT roar_vs_iterate() will block until data has been synced with the server.
28If ROAR_VS_NOWAIT roar_vs_iterate() will not block if no data can be send to or read from the server.
29
30.TP
31\fBerror\fR
32This is a pointer to a integer used to store the error value in case of error.
33This can be NULL if not used but it is very recommended to use this error value to report
34good error messages to the user.
35
36.SH "RETURN VALUE"
37On EOF these calls return 0. roar_vs_iterate() returns a positive value on non-EOF success.
38On error, \-1 is returned.
39
40.SH "EXAMPLES"
41FIXME
42
43.SH "SEE ALSO"
44\fBroarvs\fR(7),
45\fBlibroar\fR(7),
46\fBRoarAudio\fR(7).
47
48.\" ll
Note: See TracBrowser for help on using the repository browser.