Other Stream Functions

Other Stream Functions — Miscellaneous functions for streams

Functions

Includes

#include <libchimara/glk.h>

Description

This section includes functions for streams that don't fit anywhere else.

Functions

glk_stream_iterate ()

strid_t
glk_stream_iterate (strid_t str,
                    glui32 *rockptr);

Iterates through all the existing streams. See Iterating Through Opaque Objects.

Parameters

str

A stream, or NULL.

 

rockptr

Return location for the next window's rock, or NULL.

 

Returns

the next stream, or NULL if there are no more.


glk_stream_get_rock ()

glui32
glk_stream_get_rock (strid_t str);

Retrieves the stream str 's rock value. See Rocks. Window streams always have rock 0; all other streams return whatever rock you created them with.

Parameters

str

A stream.

 

Returns

A rock value.