lfb-event: Avoid allocation when getting profile

We can return the const *. This makes it consistent with other getters.

This is an API change we didn't find any users and the API is declared
unstable.
This commit is contained in:
Guido Günther
2023-04-17 12:21:06 +02:00
parent 31a592e18e
commit 1a5cd090de
3 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ gboolean lfb_event_end_feedback_finish (LfbEvent *self,
void lfb_event_set_timeout (LfbEvent *self, gint timeout);
gint lfb_event_get_timeout (LfbEvent *self);
void lfb_event_set_feedback_profile (LfbEvent *self, const char *profile);
char *lfb_event_get_feedback_profile (LfbEvent *self);
const char *lfb_event_get_feedback_profile (LfbEvent *self);
const char *lfb_event_get_event (LfbEvent *self);
LfbEventState lfb_event_get_state (LfbEvent *self);
LfbEventEndReason lfb_event_get_end_reason (LfbEvent *self);