- GPollFD *pollfd, int timeout, sr_receive_data_callback cb,
- void *cb_data, gintptr poll_object, gboolean is_usb);
+ int timeout, sr_receive_data_callback cb, void *cb_data,
+ gintptr poll_object);
+SR_PRIV int sr_session_source_poll_add(struct sr_session *session,
+ gintptr poll_object, gintptr fd, int events);
+SR_PRIV int sr_session_source_remove_internal(struct sr_session *session,
+ gintptr poll_object);
+SR_PRIV int sr_session_source_poll_remove(struct sr_session *session,
+ gintptr poll_object, gintptr fd);