roar_vio_close(3)

roar_vio_close3

Close a roaraudio virtual io object

Usage

#include <roaraudio.h>

int roar_vio_close (struct roar_vio_calls * vio);

Overview

Closes a VIO object. Also ensures all data to be fushed to disk or send via sockets. The given vio object itself is not freed as normally located in the applications stack. if you want it to be freed you need to call free(3) yourself.

Parameters

vio

The VIO object to be closed.

Return value

On success these calls return 0. On error, -1 is returned.

Examples

struct roar_vio_calls obj;

roar_vio_open_fh(&obj, ROAR_STDOUT);

roar_vio_puts(&obj, "Hello World!\n");

roar_vio_close(&obj);

Releases

6 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7–8
  3. 9–11

From libroar-dev 1.0~beta12-4 in Debian 11 (Bullseye). Parsed by carta from the page's man source.