tools: update pw-reserve so don't need to include the c file

This commit is contained in:
Peter Hutterer 2021-10-18 08:44:22 +10:00
parent 1bced6b2ef
commit b78371f702
3 changed files with 4 additions and 1 deletions

View file

@ -70,6 +70,7 @@ summary({'Build pw-cat tool': build_pw_cat}, bool_yn: true, section: 'pw-cat/pw-
if dbus_dep.found() if dbus_dep.found()
executable('pw-reserve', executable('pw-reserve',
'reserve.h', 'reserve.h',
'reserve.c',
'pw-reserve.c', 'pw-reserve.c',
install: true, install: true,
dependencies : [dbus_dep, pipewire_dep], dependencies : [dbus_dep, pipewire_dep],

View file

@ -32,8 +32,9 @@
#include <spa/support/dbus.h> #include <spa/support/dbus.h>
#include "pipewire/pipewire.h" #include "pipewire/pipewire.h"
#include "pipewire/log.h"
#include "reserve.c" #include "reserve.h"
struct impl { struct impl {
struct pw_main_loop *mainloop; struct pw_main_loop *mainloop;

View file

@ -29,6 +29,7 @@
#include "reserve.h" #include "reserve.h"
#include <spa/utils/string.h> #include <spa/utils/string.h>
#include <pipewire/log.h>
#define SERVICE_PREFIX "org.freedesktop.ReserveDevice1." #define SERVICE_PREFIX "org.freedesktop.ReserveDevice1."
#define OBJECT_PREFIX "/org/freedesktop/ReserveDevice1/" #define OBJECT_PREFIX "/org/freedesktop/ReserveDevice1/"