2023-02-08 18:12:00 +01:00
|
|
|
/* PipeWire */
|
|
|
|
|
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
|
|
|
|
|
/* SPDX-License-Identifier: MIT */
|
2021-06-18 23:03:58 +02:00
|
|
|
|
|
|
|
|
#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;
|
2023-05-06 01:23:11 +02:00
|
|
|
struct pw_properties;
|
|
|
|
|
struct sample;
|
2021-06-18 23:03:58 +02:00
|
|
|
struct sample_play;
|
|
|
|
|
|
|
|
|
|
struct pending_sample {
|
|
|
|
|
struct spa_list link;
|
|
|
|
|
struct client *client;
|
|
|
|
|
struct sample_play *play;
|
|
|
|
|
struct spa_hook listener;
|
|
|
|
|
uint32_t tag;
|
2023-05-07 16:03:29 +02:00
|
|
|
unsigned replied:1;
|
2022-02-21 08:57:15 +01:00
|
|
|
unsigned done:1;
|
2021-06-18 23:03:58 +02:00
|
|
|
};
|
|
|
|
|
|
2023-05-06 01:23:11 +02:00
|
|
|
int pending_sample_new(struct client *client, struct sample *sample, struct pw_properties *props, uint32_t tag);
|
2021-06-18 23:03:58 +02:00
|
|
|
void pending_sample_free(struct pending_sample *ps);
|
|
|
|
|
|
|
|
|
|
#endif /* PULSE_SERVER_PENDING_SAMPLE_H */
|