Functions for interfacing the skinkit streaming device with the client stream implementations. More...
Functions | |
HqBool | registerStreamReader (const char *devname, const char *pFile, HqnReadStream *pRS) |
Register an input stream against a file name. More... | |
HqBool | registerStreamWriter (const char *devname, const char *pFile, HqnWriteStream *pWS) |
Register an output stream against a file name. More... | |
void | UnregisterStreamReaderWriter (const char *devname, const char *pFile) |
Unregister the input/output stream associated with the file. More... | |
Functions for interfacing the skinkit streaming device with the client stream implementations.
The streaming device is implemented in streamdev.c in the skinkit. It is a relative file device, but it supports just two special file descriptors: "/input"
and "/output"
. The input file will read its data from a HqnReadStream
structure; the output file will write its data to a HqnWriteStream
structure. The interfaces in this file provide a way for the outside world to connect the HqnReadStream
and HqnWriteStream
implementations to the streaming device. They also permit the implementation to be cleared again. When no implementation is connected, the streaming device will generate ioerrors upon attempting to access the abstract files.
HqBool registerStreamReader | ( | const char * | devname, |
const char * | pFile, | ||
HqnReadStream * | pRS | ||
) |
Register an input stream against a file name.
devname | device name; |
pFile | file name; |
pRS | input stream; |
HqBool registerStreamWriter | ( | const char * | devname, |
const char * | pFile, | ||
HqnWriteStream * | pWS | ||
) |
Register an output stream against a file name.
devname | device name; |
pFile | file name; |
pWS | write stream; |
void UnregisterStreamReaderWriter | ( | const char * | devname, |
const char * | pFile | ||
) |
Unregister the input/output stream associated with the file.
devname | device name; |
pFile | file name; |