int avctp_send_passthrough(struct avctp *session, uint8_t op) { /* Auto release if key pressed */ if (session->key.timer > 0) release_pressed(session); return avctp_passthrough_press(session, op); }
static gboolean repeat_timeout(gpointer user_data) { struct avctp *session = user_data; avctp_passthrough_release(session, session->key.op); avctp_passthrough_press(session, session->key.op); return TRUE; }
int avctp_send_passthrough(struct avctp *session, uint8_t op, uint8_t *params, size_t params_len) { /* Auto release if key pressed */ if (session->key.timer > 0) release_pressed(session); return avctp_passthrough_press(session, op, params, params_len); }