dbus: dbus_tracklist: add missing inline qualifier

Those functions are defined in a header file which will not use them
directly. `static` only will imply that the function will be used in the
file including it or the header itself. `static inline` is much more
suitable and will remove the unused function warning.
This commit is contained in:
Alexandre Janniaux 2023-07-10 00:57:55 +02:00 committed by Jean-Baptiste Kempf
parent 17ada6c55f
commit 8ce9af051b
1 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ void tracklist_append_event_destroy( tracklist_append_event_t *event );
void tracklist_remove_event_destroy( tracklist_remove_event_t *event );
/* Gets next event in the list */
static tracklist_append_event_t *
static inline tracklist_append_event_t *
tracklist_append_event_next( tracklist_append_event_t *event ) {
if( !event )
return NULL;
@ -83,7 +83,7 @@ tracklist_append_event_next( tracklist_append_event_t *event ) {
(p - offsetof(struct tracklist_append_event, change_ev));
}
static tracklist_remove_event_t *
static inline tracklist_remove_event_t *
tracklist_remove_event_next( tracklist_remove_event_t *event ) {
if( !event )
return NULL;