pipewire/src/modules/module-protocol-pulse/extension.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

27 lines
632 B
C

/* PipeWire */
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
/* SPDX-License-Identifier: MIT */
#ifndef PULSE_SERVER_EXTENSION_H
#define PULSE_SERVER_EXTENSION_H
#include <stdint.h>
struct client;
struct message;
struct extension_sub {
const char *name;
uint32_t command;
int (*process)(struct client *client, uint32_t command, uint32_t tag, struct message *m);
};
struct extension {
const char *name;
uint32_t index;
int (*process)(struct client *client, uint32_t tag, struct message *m);
};
const struct extension *extension_find(uint32_t index, const char *name);
#endif /* PULSE_SERVER_EXTENSION_H */