spa: move dbus helpers out of bluez plugin

The file is moved into a new "include-private" directory. This is done
because otherwise adjustments would have to be made to the list of installed
headers, the way include tests currently work and which files are
used for generating documentation.
This commit is contained in:
Barnabás Pőcze 2023-12-30 01:08:31 +01:00 committed by Wim Taymans
parent ddf3be0a39
commit 4aa2e44796
9 changed files with 12 additions and 11 deletions

View file

@ -1,9 +1,9 @@
/* Spa Bluez5 DBus helpers */
/* Spa DBus helpers */
/* SPDX-FileCopyrightText: Copyright © 2023 PipeWire authors */
/* SPDX-License-Identifier: MIT */
#ifndef SPA_BLUEZ5_DBUS_HELPERS_H
#define SPA_BLUEZ5_DBUS_HELPERS_H
#ifndef SPA_PRIVATE_DBUS_HELPERS_H
#define SPA_PRIVATE_DBUS_HELPERS_H
#include <stdbool.h>
@ -69,4 +69,4 @@ SPA_DEFINE_AUTO_CLEANUP(DBusError, DBusError, {
dbus_error_free(thing);
})
#endif /* SPA_BLUEZ5_DBUS_HELPERS_H */
#endif /* SPA_PRIVATE_DBUS_HELPERS_H */

View file

@ -8,6 +8,7 @@
spa_dep = declare_dependency(
include_directories : [
include_directories('include'),
include_directories('include-private'),
],
dependencies : [atomic_dep],
version : spaversion,

View file

@ -16,9 +16,9 @@
#include <spa/utils/string.h>
#include <spa/utils/type.h>
#include <spa/param/audio/raw.h>
#include <spa-private/dbus-helpers.h>
#include "defs.h"
#include "dbus-helpers.h"
SPA_LOG_TOPIC_DEFINE_STATIC(log_topic, "spa.bluez5.hsphfpd");
#undef SPA_LOG_TOPIC_DEFAULT

View file

@ -26,6 +26,7 @@
#include <spa/utils/type.h>
#include <spa/utils/json.h>
#include <spa/param/audio/raw.h>
#include <spa-private/dbus-helpers.h>
#include "defs.h"
@ -33,7 +34,6 @@
#include <libusb.h>
#endif
#include "dbus-helpers.h"
#include "modemmanager.h"
#include "upower.h"

View file

@ -20,9 +20,9 @@
#include <spa/utils/type.h>
#include <spa/utils/result.h>
#include <spa/param/audio/raw.h>
#include <spa-private/dbus-helpers.h>
#include "defs.h"
#include "dbus-helpers.h"
#define INITIAL_INTERVAL_NSEC (500 * SPA_NSEC_PER_MSEC)
#define ACTION_INTERVAL_NSEC (3000 * SPA_NSEC_PER_MSEC)

View file

@ -32,10 +32,10 @@
#include <spa/utils/result.h>
#include <spa/utils/string.h>
#include <spa/utils/json.h>
#include <spa-private/dbus-helpers.h>
#include "config.h"
#include "codec-loader.h"
#include "dbus-helpers.h"
#include "player.h"
#include "iso-io.h"
#include "bap-codec-caps.h"

View file

@ -4,10 +4,10 @@
#include <errno.h>
#include <spa/utils/string.h>
#include <spa-private/dbus-helpers.h>
#include <ModemManager.h>
#include "dbus-helpers.h"
#include "modemmanager.h"
#define DBUS_INTERFACE_OBJECTMANAGER "org.freedesktop.DBus.ObjectManager"

View file

@ -7,9 +7,9 @@
#include <dbus/dbus.h>
#include <spa/utils/string.h>
#include <spa-private/dbus-helpers.h>
#include "defs.h"
#include "dbus-helpers.h"
#include "player.h"
#define PLAYER_OBJECT_PATH_BASE "/media_player"

View file

@ -4,8 +4,8 @@
#include <errno.h>
#include <spa/utils/string.h>
#include <spa-private/dbus-helpers.h>
#include "dbus-helpers.h"
#include "upower.h"
#define UPOWER_SERVICE "org.freedesktop.UPower"