pipewire/src/modules/module-protocol-pulse/reply.h
Barnabás Pőcze 934ab3036e treewide: use SPDX tags to specify copyright information
SPDX tags make the licensing information easy to understand and clear,
and they are machine parseable.

See https://spdx.dev for more information.
2023-02-16 10:54:48 +00:00

22 lines
554 B
C

/* PipeWire */
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
/* SPDX-License-Identifier: MIT */
#ifndef PULSE_SERVER_REPLY_H
#define PULSE_SERVER_REPLY_H
#include <stdint.h>
#include "client.h"
struct message;
struct message *reply_new(const struct client *client, uint32_t tag);
int reply_error(struct client *client, uint32_t command, uint32_t tag, int res);
static inline int reply_simple_ack(struct client *client, uint32_t tag)
{
return client_queue_message(client, reply_new(client, tag));
}
#endif /* PULSE_SERVER_REPLY_H */