/** Unsupported operation. */
CTF_MSG_ITER_MEDIUM_STATUS_UNSUPPORTED = -3,
- /** Invalid argument. */
- CTF_MSG_ITER_MEDIUM_STATUS_INVAL = -2,
-
/** General error. */
CTF_MSG_ITER_MEDIUM_STATUS_ERROR = -1,
*/
CTF_MSG_ITER_STATUS_AGAIN = CTF_MSG_ITER_MEDIUM_STATUS_AGAIN,
- /** Invalid argument. */
- CTF_MSG_ITER_STATUS_INVAL = CTF_MSG_ITER_MEDIUM_STATUS_INVAL,
-
/** Unsupported operation. */
CTF_MSG_ITER_STATUS_UNSUPPORTED = CTF_MSG_ITER_MEDIUM_STATUS_UNSUPPORTED,
CTF_MSG_ITER_STATUS_OK = CTF_MSG_ITER_MEDIUM_STATUS_OK,
};
-/**
- * CTF message iterator seek operation directives.
- */
-enum ctf_msg_iter_seek_whence {
- /**
- * Set the iterator's position to an absolute offset in the underlying
- * medium.
- */
- CTF_MSG_ITER_SEEK_WHENCE_SET,
-};
-
/**
* Medium operations.
*
* Repositions the underlying stream's position.
*
* This *optional* method repositions the underlying stream
- * to a given absolute or relative position, as indicated by
- * the whence directive.
+ * to a given absolute position in the medium.
*
- * @param whence One of #ctf_msg_iter_seek_whence values
* @param offset Offset to use for the given directive
* @param data User data
* @returns One of #ctf_msg_iter_medium_status values
*/
- enum ctf_msg_iter_medium_status (* seek)(
- enum ctf_msg_iter_seek_whence whence,
- off_t offset, void *data);
+ enum ctf_msg_iter_medium_status (* seek)(off_t offset, void *data);
/**
* Returns a stream instance (weak reference) for the given
return "EOF";
case CTF_MSG_ITER_MEDIUM_STATUS_AGAIN:
return "AGAIN";
- case CTF_MSG_ITER_MEDIUM_STATUS_INVAL:
- return "INVAL";
case CTF_MSG_ITER_MEDIUM_STATUS_ERROR:
return "ERROR";
case CTF_MSG_ITER_MEDIUM_STATUS_OK:
return "EOF";
case CTF_MSG_ITER_STATUS_AGAIN:
return "AGAIN";
- case CTF_MSG_ITER_STATUS_INVAL:
- return "INVAL";
case CTF_MSG_ITER_STATUS_ERROR:
return "ERROR";
case CTF_MSG_ITER_STATUS_OK: