pipewire/src/modules/module-protocol-pulse/pending-sample.h

29 lines
580 B
C
Raw Normal View History

/* PipeWire */
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
/* SPDX-License-Identifier: MIT */
#ifndef PULSE_SERVER_PENDING_SAMPLE_H
#define PULSE_SERVER_PENDING_SAMPLE_H
#include <stdint.h>
#include <spa/utils/list.h>
#include <spa/utils/hook.h>
struct client;
struct sample_play;
struct pending_sample {
struct spa_list link;
struct client *client;
struct sample_play *play;
struct spa_hook listener;
uint32_t tag;
unsigned ready:1;
unsigned done:1;
};
void pending_sample_free(struct pending_sample *ps);
#endif /* PULSE_SERVER_PENDING_SAMPLE_H */