feedback-dummy: Add getter for duration

Useful in tests
This commit is contained in:
Guido Günther
2022-12-08 10:05:47 +01:00
parent 53677e29ef
commit 29bbe38fb3
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -126,3 +126,11 @@ static void
fbd_feedback_dummy_init (FbdFeedbackDummy *self)
{
}
guint
fbd_feedback_dummy_get_duration (FbdFeedbackDummy *self)
{
g_return_val_if_fail (FBD_IS_FEEDBACK_DUMMY (self), 0);
return self->duration;
}