2023-02-08 18:12:00 +01:00
|
|
|
/* PipeWire */
|
|
|
|
|
/* SPDX-FileCopyrightText: Copyright © 2020 Wim Taymans */
|
|
|
|
|
/* SPDX-License-Identifier: MIT */
|
2021-06-18 23:51:54 +02:00
|
|
|
|
|
|
|
|
#ifndef PULSE_SERVER_EXTENSION_H
|
|
|
|
|
#define PULSE_SERVER_EXTENSION_H
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
|
|
struct client;
|
|
|
|
|
struct message;
|
2024-01-23 12:22:45 +01:00
|
|
|
struct module;
|
2021-06-18 23:51:54 +02:00
|
|
|
|
|
|
|
|
struct extension {
|
|
|
|
|
const char *name;
|
2024-01-23 12:22:45 +01:00
|
|
|
uint32_t command;
|
|
|
|
|
int (*process)(struct module *module, struct client *client, uint32_t command,
|
|
|
|
|
uint32_t tag, struct message *m);
|
2021-06-18 23:51:54 +02:00
|
|
|
};
|
|
|
|
|
|
2024-01-23 12:22:45 +01:00
|
|
|
int extension_process(struct module *module, struct client *client, uint32_t tag, struct message *m);
|
2021-06-18 23:51:54 +02:00
|
|
|
|
|
|
|
|
#endif /* PULSE_SERVER_EXTENSION_H */
|