source: roaraudio/doc/man3/roar_disconnect.3 @ 6048:f37c7f362422

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

Updated connection object. (Closes: #188)

File size: 1.1 KB
RevLine 
[159]1.\" roar_simple_play.3:
2
[5296]3.TH "roar_connectionref" "3" "May 2011" "RoarAudio" "System Manager's Manual: RoarAudio"
[159]4
5.SH NAME
[5296]6roar_connectionref, roar_connectionunref \- change reference counter for RoarAudio connections
[159]7
8.SH SYNOPSIS
9
10#include <roaraudio.h>
11
[5296]12int roar_connectionref(struct roar_connection * con);
13
14int roar_connectionunref(struct roar_connection * con);
15
16#define roar_disconnect(x) roar_connectionunref((x))
[159]17
18.SH "DESCRIPTION"
[5296]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.
[159]25
26.SH "PARAMETERS"
27.TP
28\fBcon\fR
[5296]29The connection to be altered.
[159]30
31.SH "RETURN VALUE"
[4013]32On success these calls return 0.  On error, \-1 is returned.
[159]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.