#include <linux/time.h>
#include <linux/slab.h>
#include <sound/core.h>
#include "seq_timer.h"
#include "seq_prioq.h"
struct snd_seq_prioq *snd_seq_prioq_new(void)
{ … }
void snd_seq_prioq_delete(struct snd_seq_prioq **fifo)
{ … }
static inline int compare_timestamp(struct snd_seq_event *a,
struct snd_seq_event *b)
{ … }
static inline int compare_timestamp_rel(struct snd_seq_event *a,
struct snd_seq_event *b)
{ … }
int snd_seq_prioq_cell_in(struct snd_seq_prioq * f,
struct snd_seq_event_cell * cell)
{ … }
static int event_is_ready(struct snd_seq_event *ev, void *current_time)
{ … }
struct snd_seq_event_cell *snd_seq_prioq_cell_out(struct snd_seq_prioq *f,
void *current_time)
{ … }
int snd_seq_prioq_avail(struct snd_seq_prioq * f)
{ … }
static void prioq_remove_cells(struct snd_seq_prioq *f,
bool (*match)(struct snd_seq_event_cell *cell,
void *arg),
void *arg)
{ … }
struct prioq_match_arg { … };
static inline bool prioq_match(struct snd_seq_event_cell *cell, void *arg)
{ … }
void snd_seq_prioq_leave(struct snd_seq_prioq *f, int client, int timestamp)
{ … }
struct prioq_remove_match_arg { … };
static bool prioq_remove_match(struct snd_seq_event_cell *cell, void *arg)
{ … }
void snd_seq_prioq_remove_events(struct snd_seq_prioq * f, int client,
struct snd_seq_remove_events *info)
{ … }