Sam James
2cec77e7df
*: unify config.h handling
...
config.h needs to be consistently included before any standard headers
if we ever want to set feature test macros (like _GNU_SOURCE or whatever)
inside. It can lead to hard-to-debug issues without that.
It can also be problematic just for our own HAVE_* that it may define
if it's not consistently made available before our own headers. Just
always include it first, before everything.
We already did this in many files, just not consistently.
2025-05-30 10:24:13 +00:00
Wim Taymans
819c73907e
modules: use the right module name in the docs
...
Fixes #4172
2024-08-01 11:37:33 +02:00
Barnabás Pőcze
542e6c652c
pipewire: module-portal: watch only relevant NameOwnerChanged signals
2024-02-05 13:03:20 +00:00
Barnabás Pőcze
6e609c93e5
pipewire: module-portal: do not repeat portal service name
2024-02-05 13:03:20 +00:00
Barnabás Pőcze
499468c19f
pipewire: module-portal: cancel pending dbus call on module destroy
2024-02-05 13:03:20 +00:00
Barnabás Pőcze
e7c9b26001
pipewire: module-portal: use dbus helpers
2024-02-05 13:03:20 +00:00
Pauli Virtanen
fdcb02ed75
modules: add Module Name section to the module reference docs
2023-11-20 08:41:13 +00:00
Pauli Virtanen
eca773fc12
modules: strip "PipeWire Module:" from Doxygen page name
...
Make them appear nicer in the output.
2023-11-19 16:39:15 +00:00
Barnabás Pőcze
934ab3036e
treewide: use SPDX tags to specify copyright information
...
SPDX tags make the licensing information easy to understand and clear,
and they are machine parseable.
See https://spdx.dev for more information.
2023-02-16 10:54:48 +00:00
Wim Taymans
164e343dbf
remove pipewire/private.h includes when possible
...
In many places this is not needed.
Expose pw_impl_node_set_param() for adapter.
2023-01-20 16:08:38 +01:00
Peter Hutterer
d8de1cb255
modules: switch to new property helpers
2021-10-13 07:12:00 +00:00
Peter Hutterer
14112fd168
modules: use the new topic-based logging from various pipewire modules
2021-09-28 09:35:39 +02:00
Peter Hutterer
b6a8f67764
module-portal: use spa_atoi32 for safer PID parsing
2021-07-30 07:24:24 +00:00
Peter Hutterer
82e427745d
doc: structure the portal documentation a bit better
2021-07-30 07:24:24 +00:00
Pauli Virtanen
2b515b5e50
dbus: keep a ref to DBusConnection if reconnecting is not handled
...
Several places in the code don't handle reconnecting DBus connections
yet. In those cases, a ref to the DBusConnection handle needs to be
kept, so that there's no use-after-free if it gets freed by spa_dbus
if the connection is broken.
Adjust spa_dbus so that others keeping additional refs is safe.
2021-06-26 16:11:40 +03:00
Peter Hutterer
f181232a61
doc: add the documentation infrastructure for pipewire modules
...
All empty pages for now but at least this makes them show up in the
documentation.
2021-06-25 08:42:24 +00:00
Stefano Ragni
243d534476
dbus: fix bus type reported in logs
2021-06-25 08:26:00 +00:00
Peter Hutterer
e0471c6757
pipewire: allow NULL pointers in pw_properties_free()
...
Just like the real free() we should just ignore a NULL pointer, makes the
caller code easier for those instances where properties are optional.
Patch generated with concinelle with a few manual fixes.
2021-06-02 10:56:46 +00:00
James Henstridge
733ad43d3f
module-portal: direct GetConnectionUnixProcessID call to /org/freedesktop/DBus
...
The D-Bus specification says that the message bus accepts method calls
on other object paths for backwards compatibility, and may reject
security sensitive calls on unexpected object paths:
https://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-messages
2021-05-27 11:24:04 +00:00
Peter Hutterer
522f87d5ea
treewide: replace strcmp() != 0 with !spa_streq
...
This change is only done in source files for now, header files will be done
separately.
2021-05-18 22:10:27 +10:00
Peter Hutterer
7697ed0757
treewide: replace strcmp() == 0 with spa_streq()
...
This change is only done in source files for now, header files will be done
separately.
2021-05-18 22:10:27 +10:00
Wim Taymans
bdea557fb1
module-portal: improve error message
...
Pass some error messages and errno around to give a better error
message (instead of ENOMEM) when the connection with dbus fails.
2021-03-11 15:18:28 +01:00
George Kiagiadakis
0ce6de8fdf
src: change license (LGPL -> MIT) on left-over LGPL files
...
Discussed with and approved by Wim
2021-02-10 11:52:09 +00:00
Wim Taymans
be107317f5
Silence some dbus errors
...
Log info when a service is not running and disable it.
2021-01-14 17:11:42 +01:00
Wim Taymans
3162465f6f
portal: error->warn when the portal pid is unknown
2021-01-14 15:07:42 +01:00
Wim Taymans
3d93b2492c
portal: improve error message
2020-11-29 16:51:33 +01:00
Wim Taymans
a6c35d1df4
module-portal: don't leak dbus error
2020-11-09 16:50:47 +01:00
Wim Taymans
91d4806611
permission: add some helpers
...
Add PW_PERM_ALL as a shortcut for all permissions
Add PW_PERMISSION_FORMAT and PW_PERMISSION_ARGS to nicely format
permissions.
2020-07-30 16:26:29 +02:00
Wim Taymans
5731447357
add portal module again
...
This access module now only checks if the connection is comming
from the portal and tags the ACCESS property with portal in that
case. It will no longer do permission store checks, that's for
the session manager.
2020-07-17 14:12:10 +02:00
Wim Taymans
a295901329
Move portal module to session manager
2020-07-16 17:54:18 +02:00
Wim Taymans
7d56b78bce
remove some unused fields
2020-07-16 17:47:30 +02:00
Wim Taymans
51ae60b0c4
portal: fix small leak
2020-06-05 15:49:39 +02:00
Wim Taymans
9e6a047788
portal: add portal module again
...
Add this again for now until we can integrate this into the
session manager somehow.
2020-05-18 16:30:09 +02:00