Support for identification of source Streams.
We identify uniquelly a given source Stream by a triple of numbers: the filesystem id, the device id inside the filesystem, and the inode id.
This commit is contained in:
11
src/stream.h
11
src/stream.h
@ -67,6 +67,17 @@ struct Iso_Stream
|
||||
* 1 if stream is repeatable, 0 if not, < 0 on error
|
||||
*/
|
||||
int (*is_repeatable)(IsoStream *stream);
|
||||
|
||||
/**
|
||||
* Get an unique identifier for the IsoStream. If your implementation
|
||||
* is unable to return a valid identifier, this function should return
|
||||
* 0.
|
||||
*
|
||||
* @return
|
||||
* 1 on success, 0 if idenfier is not valid, < 0 error
|
||||
*/
|
||||
int (*get_id)(IsoStream *stream, unsigned int *fs_id, dev_t *dev_id,
|
||||
ino_t *ino_id);
|
||||
|
||||
/**
|
||||
* Free implementation specific data. Should never be called by user.
|
||||
|
Reference in New Issue
Block a user