source: roaraudio/doc/man3/roar_disconnect.3 @ 5296:b7fd2c45243e

Last change on this file since 5296:b7fd2c45243e was 5296:b7fd2c45243e, checked in by phi, 12 years ago

Updated connection object. (Closes: #188)

File size: 1.1 KB
Line 
1.\" roar_simple_play.3:
2
3.TH "roar_connectionref" "3" "May 2011" "RoarAudio" "System Manager's Manual: RoarAudio"
4
5.SH NAME
6roar_connectionref, roar_connectionunref \- change reference counter for RoarAudio connections
7
8.SH SYNOPSIS
9
10#include <roaraudio.h>
11
12int roar_connectionref(struct roar_connection * con);
13
14int roar_connectionunref(struct roar_connection * con);
15
16#define roar_disconnect(x) roar_connectionunref((x))
17
18.SH "DESCRIPTION"
19Those functions change the reference counter for connection objects
20previously opend via \fBroar_connect\fR(3), \fBroar_connect_fh\fR(3) or \fBroar_simple_connect\fR(3).
21If the reference counter hints zero the connection is closed and the object is destroyed.
22.PP
23The \fBroar_disconnect\fR(3) macro is provided to be source compatible (recompile needed)
24with RoarAudio 0.4 or older.
25
26.SH "PARAMETERS"
27.TP
28\fBcon\fR
29The connection to be altered.
30
31.SH "RETURN VALUE"
32On success these calls return 0.  On error, \-1 is returned.
33
34.SH "EXAMPLES"
35FIXME
36
37.SH "SEE ALSO"
38\fBroar_simple_connect\fR(3),
39\fBlibroar\fR(7),
40\fBRoarAudio\fR(7).
41
42.\" ll
Note: See TracBrowser for help on using the repository browser.