/*--- session.c -------------------------------------------------------------*/
+SR_PRIV int sr_session_iteration(gboolean block);
SR_PRIV int sr_session_send(const struct sr_dev_inst *sdi,
const struct sr_datafeed_packet *packet);
SR_PRIV int sr_session_stop_sync(void);
void *cb_data);
/* Session control */
-SR_API int sr_session_iteration(gboolean block);
SR_API int sr_session_start(void);
SR_API int sr_session_run(void);
SR_API int sr_session_stop(void);
* but driven by another scheduler, this can be used to poll the devices
* from within that scheduler.
*
+ * @param block If TRUE, this call will wait for any of the session's
+ * sources to fire an event on the file descriptors, or
+ * any of their timeouts to activate. In other words, this
+ * can be used as a select loop.
+ * If FALSE, all sources have their callback run, regardless
+ * of file descriptor or timeout status.
+ *
* @return SR_OK upon success, SR_ERR on errors.
*/
-SR_API int sr_session_iteration(gboolean block)
+SR_PRIV int sr_session_iteration(gboolean block)
{
unsigned int i;
int ret;