Wim Taymans
5c6bd8e5c7
free() can handle NULL just fine so skip the check
...
Fixes #117
2018-12-20 09:32:28 +01:00
Wim Taymans
73aac68908
flatpak: only update permissions on sandboxed clients
2018-12-12 15:47:01 +01:00
maxice8
67a0b33dc8
module-rtkit: define RLIMIT_RTTIME in case it isn't defined.
...
musl libc doesn't define RLIMIT_RTTIME
2018-11-26 12:22:38 +00:00
maxice8
5dcaa450ff
meson: don't add systemd_dep to dependencies if systemd option is false.
2018-11-26 12:22:24 +00:00
Wim Taymans
6f918561c9
flatpak: also check for client property changes
...
If a client changes the "pipewire.access" property to "flatpak",
start handling the client as a flatpak client and do portal
checks. This is useful when the portal makes a connection for the
client and needs to for portal checks.
2018-11-06 13:28:36 +01:00
Wim Taymans
e29229b6e0
protocol-native: return errno when server failed
...
this gives a better error code
2018-10-18 11:15:27 +02:00
Wim Taymans
6266cd0f48
protocol-native: -1 is for invalid fd, not 1
2018-10-18 11:14:52 +02:00
Wim Taymans
e5dcacdefb
add systemd socket activation
2018-10-18 10:47:21 +02:00
Wim Taymans
9ea266f789
protocol: don't log error on disconnect
...
Just log an info message on disconnect. Fixes #33
2018-08-17 13:18:00 +02:00
Wim Taymans
5eac8f7675
remove last debug includes
...
Fixes #82
2018-08-16 13:26:49 +02:00
Wim Taymans
d8525e3732
hooks: enforce version on hook emission
...
Pass the minimum required version to the hook emission and only call
events when the handler is recent enough.
Add some macros to make event emission easier to read.
2018-08-15 11:53:23 +02:00
Wim Taymans
9d36b85dd6
remove spalib
2018-08-14 12:33:53 +02:00
Wim Taymans
d3b9a52ec4
don't link with spalib when we don't have to
2018-08-13 17:22:55 +02:00
Wim Taymans
872a1131fa
pod: move compare and filter functions out of the library
2018-08-13 17:17:23 +02:00
Wim Taymans
c5380162ac
build: fix module install directory
2018-07-31 14:56:34 +02:00
Wim Taymans
a223a35a5b
Revert "Drop api version suffix from library name"
...
This reverts commit 76ab7eb9fb .
2018-07-27 11:26:29 +02:00
Jan Grulich
76ab7eb9fb
Drop api version suffix from library name
2018-07-27 10:48:22 +02:00
Wim Taymans
4574adcd2e
clean up listeners
2018-06-15 13:12:10 +02:00
Wim Taymans
d1e2f69324
connection: reset number of fds
2018-06-15 12:59:08 +02:00
Wim Taymans
fb7a51c6e7
client-node: fix mem_offset of io areas
2018-03-14 16:00:04 +01:00
Wim Taymans
1b2e73de0c
node: export method to update ports
2018-03-14 15:55:35 +01:00
Wim Taymans
153bf51ef1
client-node: safely remove source
...
Remove the source from the data_loop with invoke to make sure it
really is removed before we destroy the node.
Based on patch by David Svensson Fors <davidsf at axis.com>
2018-03-14 14:52:22 +01:00
Wim Taymans
992f20f805
protocol-native: debug connection after remap
2018-03-01 18:31:56 +01:00
Wim Taymans
ea182ba194
client-node: reference memory with id
...
Reference the memory with id because it could be relocated.
2018-03-01 18:30:39 +01:00
David Svensson Fors
6365ea18d9
module-node-factory: remove destroyed node from node list
2018-03-01 17:43:19 +01:00
Wim Taymans
135a0a18d8
client-node: track memory for client
...
Keep track of the memory we sent to the client to only send memory
once and choose better memid values.
2018-03-01 14:46:49 +01:00
Wim Taymans
7bc9230a79
client-node: proxy -> node
2018-03-01 12:13:00 +01:00
Wim Taymans
b91a2a4207
link-factory: don't leak properties
2018-02-27 12:49:22 +01:00
Wim Taymans
760e046dcf
client-node: handle port set_io
2018-02-26 16:16:53 +01:00
Wim Taymans
bc669f5def
audio-dsp: small cleanups
...
Fix some compilation errors
implement port cleanup
2018-02-26 16:09:47 +01:00
Wim Taymans
944d205e8e
protocol-native: print connection info after remap
...
Print the connection messages after mapping the ids or else we
can't really make sense of the ids.
2018-02-26 12:36:16 +01:00
Wim Taymans
e2f01c5838
protocol-native: disconnect remote
...
Disconnect the node and all the streams instead of just changing the
state.
2018-02-26 12:29:02 +01:00
Wim Taymans
6f61ac9357
fix some signed vs unsigned comparisons
2018-02-20 18:19:11 +01:00
Wim Taymans
5f92c152e3
remove module-jack
...
It's better to make a replacement client library
2018-02-20 18:17:01 +01:00
Wim Taymans
20e0d8b4ea
dsp: use format in the port.dsp property
2018-02-20 15:49:10 +01:00
Wim Taymans
58667d6ced
params: make method on node and port to enum params
...
Do not pass the params of the node in the node_info, instead,
make a method to enumerate the params. This makes it possible for
clients to only enumerate what they need and when they need it.
Improve introspection of a port, add the name and properties.
Add an enum_param method on the port that can be used to enumerate
port formats.
Change -monitor and -cli and add support for enum_params on the node
and port.
2018-02-20 10:31:55 +01:00
Wim Taymans
a9a95a4205
audio-dsp: start counting from 1, to match jack ports
2018-02-20 10:01:10 +01:00
Wim Taymans
0e5a1b6327
props: use macro for property alternatives
2018-02-20 09:36:05 +01:00
Wim Taymans
f039238288
audio-dsp: implement buffer size param
2018-02-16 18:15:37 +01:00
Wim Taymans
3db9a44679
dsp: make separate nodes for sinks and sources
...
Make separate nodes for sinks and sources
Add aliases for ports
2018-02-16 12:02:39 +01:00
Wim Taymans
0173180e78
module-audio-dsp: add dsp module
...
Add an audio dsp module that adds an interleaver for each audio sink
and only allows 1 buffer size and format on the ports. The idea is that
dsp (pro-audio) nodes can be inserted in this part of the pipeline.
2018-02-15 17:54:08 +01:00
Wim Taymans
6c000229f0
port: add port globals
...
Expose all ports as globals, linking is then done by specifying
the global id of the ports.
Add method to destroy objects. not much security on this one but
yet but it should allow priviledged clients to kill connections
and other clients etc.
Make events on the global object. Implement the bind with the event,
handle destroy of the globals.
Add link properties
Use append to preserve the order.
2018-02-15 17:49:04 +01:00
Wim Taymans
b86f141273
add more debug info
2018-02-15 11:41:07 +01:00
Wim Taymans
95e27c27ca
protocol: signal when connection was closed
2018-02-15 10:49:01 +01:00
Wim Taymans
fdfce79edb
connection: return false on read error
...
Return false to indicate that there is no more data to read or else
we add the -1 to buffer_size and things go wrong..
2018-02-12 17:32:09 +01:00
Wim Taymans
70687e466d
client-node: update port properties
...
Handle port properties
Set the client name
2018-02-09 18:10:51 +01:00
Wim Taymans
9d4b0d8358
dbus: move rtkit to module
...
Move the rtkit code to a module.
Make sure we don't need to include the dbus headers in the spa dbus
interface. This removes the dependency on dbus.
2018-02-08 10:02:17 +01:00
Wim Taymans
2fe6a8245d
control: keep track of prop_id
...
Keep track of the property id which describes the property
functionality.
Link controls based on the property instead of the param_id.
2018-02-07 17:56:35 +01:00
Wim Taymans
053f251be8
client-node: handle io reset
2018-02-07 17:54:43 +01:00
Wim Taymans
d14c7abe11
protocol: make connect async
...
Make the protocol client connect call async with a callback when it
completes.
Move the connect methods into separate files, add an empty connect
method that will use the screencast portal to get a pipewire fd.
Use the remote intention to get the connect method.
Add some better error reporting.
2018-01-30 15:11:39 +01:00