pulse-server: compile extensions separately

Avoid including other C source files. Compile them separately.
This commit is contained in:
Barnabás Pőcze 2021-10-18 15:00:33 +02:00
parent b78371f702
commit 80ae688cc6
6 changed files with 30 additions and 10 deletions

View file

@ -25,15 +25,9 @@
#include <spa/utils/defs.h>
#include <spa/utils/string.h>
#include "defs.h"
#include "extension.h"
static int do_extension_device_manager(struct client *client, uint32_t tag, struct message *m)
{
return -ENOTSUP;
}
#include "extensions/ext-device-restore.c"
#include "extensions/ext-stream-restore.c"
#include "extensions/registry.h"
static const struct extension extensions[] = {
{ "module-stream-restore", 0 | EXTENSION_FLAG, do_extension_stream_restore, },