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;
|
|
|
|
|
|
|
|
|
|
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;
|
2022-01-17 11:28:40 +01:00
|
|
|
uint32_t index;
|
2021-06-18 23:51:54 +02:00
|
|
|
int (*process)(struct client *client, uint32_t tag, struct message *m);
|
|
|
|
|
};
|
|
|
|
|
|
2022-01-17 11:28:40 +01:00
|
|
|
const struct extension *extension_find(uint32_t index, const char *name);
|
2021-06-18 23:51:54 +02:00
|
|
|
|
|
|
|
|
#endif /* PULSE_SERVER_EXTENSION_H */
|