feedback-dummy: Add getter for duration
Useful in tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -13,4 +13,6 @@ G_BEGIN_DECLS
|
||||
|
||||
G_DECLARE_FINAL_TYPE (FbdFeedbackDummy, fbd_feedback_dummy, FBD, FEEDBACK_DUMMY, FbdFeedbackBase);
|
||||
|
||||
guint fbd_feedback_dummy_get_duration (FbdFeedbackDummy *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user