VLC  4.0.0-dev
Data Structures | Macros | Typedefs | Functions
notify.h File Reference
Include dependency graph for notify.h:

Go to the source code of this file.

Data Structures

struct  vlc_playlist_listener_id
 
struct  vlc_playlist_state
 

Macros

#define vlc_playlist_listener_foreach(listener, playlist)   vlc_list_foreach(listener, &(playlist)->listeners, node)
 
#define vlc_playlist_NotifyListener(playlist, listener, event, ...)
 
#define vlc_playlist_Notify(playlist, event, ...)
 

Typedefs

typedef struct vlc_playlist vlc_playlist_t
 

Functions

void vlc_playlist_state_Save (vlc_playlist_t *playlist, struct vlc_playlist_state *state)
 
void vlc_playlist_state_NotifyChanges (vlc_playlist_t *playlist, struct vlc_playlist_state *saved_state)
 
void vlc_playlist_NotifyMediaUpdated (vlc_playlist_t *playlist, input_item_t *media)
 

Macro Definition Documentation

◆ vlc_playlist_listener_foreach

#define vlc_playlist_listener_foreach (   listener,
  playlist 
)    vlc_list_foreach(listener, &(playlist)->listeners, node)

◆ vlc_playlist_Notify

#define vlc_playlist_Notify (   playlist,
  event,
  ... 
)
Value:
do { \
vlc_playlist_AssertLocked(playlist); \
vlc_playlist_listener_id *listener; \
vlc_playlist_listener_foreach(listener, playlist) \
vlc_playlist_NotifyListener(playlist, listener, event, ##__VA_ARGS__); \
} while(0)

◆ vlc_playlist_NotifyListener

#define vlc_playlist_NotifyListener (   playlist,
  listener,
  event,
  ... 
)
Value:
do { \
if (listener->cbs->event) \
listener->cbs->event(playlist, ##__VA_ARGS__, listener->userdata); \
} while (0)

Typedef Documentation

◆ vlc_playlist_t

typedef struct vlc_playlist vlc_playlist_t

Function Documentation

◆ vlc_playlist_NotifyMediaUpdated()

void vlc_playlist_NotifyMediaUpdated ( vlc_playlist_t playlist,
input_item_t media 
)

◆ vlc_playlist_state_NotifyChanges()

void vlc_playlist_state_NotifyChanges ( vlc_playlist_t playlist,
struct vlc_playlist_state saved_state 
)

◆ vlc_playlist_state_Save()

void vlc_playlist_state_Save ( vlc_playlist_t playlist,
struct vlc_playlist_state state 
)