Commit graph

88 commits

Author SHA1 Message Date
Peter Meerwald
c6b95d5235 pstream: Fix spelling of 'receive'.
These functions are not exported in the map file and thus do
not form part of the API and can be corrected without any problem.
2011-12-12 22:36:39 +00:00
Colin Guthrie
7563e0bbb5 libpulse: Always return a three part version number in API calls.
For both the headers and the library we should provide clean, three part
strings as this has been what we've previously done in the past
and some external systems apparently rely on this format. While it's not
something we've officially commented on before, there is no real advantage
to us to change it so let's not try to tidy things up too much
considering some third party apps (e.g. Skype) seem to dislike a two
part version string.
2011-10-01 13:21:03 +01:00
Maarten Bosmans
b4e938e194 Move i18n.[ch] to src/pulsecore
The header is used in files troughout the tree and is not included in the public api,
so it belongs in pulsecore, not in pulse.
2011-08-11 13:23:42 +02:00
Colin Guthrie
fc0a6ee239 device-restore: Various fixes for the protocol extension.
* Fix extension API function export list.
 * Ensure we trigger a subscription event when things change.
 * Send the index with our subscription events.
 * Clear out any existing formats when saving.
 * Call the correct extension command for subscriptions.
2011-08-09 11:01:01 +02:00
Maarten Bosmans
dd9265ac78 Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
Colin Guthrie
35f99c6e31 device-restore: Add a new protocol extension for device-restore.
This simply exposes the formats that a device supports
via a simple protocol extension that will allow clients
to setup what a connected receiver supports format wise.
2011-06-22 23:12:19 +01:00
Maarten Bosmans
b3721a12c5 Fixup #include directives according to Coding Style
Use #include "header.h" if functionality of header.h is implemented
and #include <header.h> if functionality of header.h is used.
2011-03-11 11:49:39 +00:00
Maarten Bosmans
bb12ff8356 Apply #ifdefs around functionality not available on win32
And also the reverse: around some win32 specific functionality
2011-02-17 11:58:22 +01:00
Maarten Bosmans
4f1d4044f8 Use <pulsecore/socket.h> instead of <sys/socket.h>
The check whether POSIX socket.h or WIN32 winsock2.h must be included can be
made centrally.  The downside is that some functionality of e.g. arpa/inet.h is
also implemented in winsock.h, so that some files that don't use socket
functions, but do use inet.h functions, must also include pulsecore/socket.h.
(as well as arpa/inet.h)
2011-02-17 11:58:21 +01:00
Jan Kratochvil
6c66c0585e pulse: make sure legacy_dir is not static 2010-11-25 16:36:18 +00:00
Lennart Poettering
66dbca1e06 dbus: remove filter functions only if they were actually set before
This fixes an assert when destructing modules that have not been fully
initialized.

https://bugzilla.redhat.com/show_bug.cgi?id=548525
2010-02-09 22:28:17 +00:00
Lennart Poettering
21cbcc1a8a client: introduce auto-connect-display= following the scheme of auto-connect-localhost=
Just connecting to a PA server just because X11's $DISPLAY is set might
be a security hole.
2010-01-13 22:15:52 +01:00
Lennart Poettering
3d6cc026e2 client: introduce auto-connect-localhost= option in client.conf
Partly fixes:

http://pulseaudio.org/ticket/773

Also fixes a security hole since listening on the default port is not
access controlled right now.
2010-01-13 22:08:59 +01:00
Tanu Kaskinen
4c793cfc76 libpulse: Store pa_stream pointers to hashmaps instead of dynarrays.
Since the stream identifiers (channels) are monotonically growing integer, it
isn't a good idea to use them as index to a dynamic array, because the array
will grow all the time. This is not a problem with client connections that
don't create many streams, but, for example, long-running clients that use
libcanberra for playing event sounds, this means that the client connection
effectively leaks memory.
2009-12-03 21:47:46 +00:00
Lennart Poettering
4538523a29 libpulse: introduce pa_context_get_tile_size() call 2009-10-28 23:26:48 +01:00
Colin Guthrie
37e82cec0a device-manager: Add an untested protocol extension.
This is effectively copied from the stream restore extension.
2009-10-01 09:08:28 +01:00
Lennart Poettering
cdbeac6b69 libpulse: as a special exception, don't require a non-NULL context in pa_context_errno 2009-09-17 01:37:23 +02:00
Lennart Poettering
5921324fd3 context: document why we only do minimal cleanups before the autospawn exec() 2009-08-12 21:40:12 +02:00
Lennart Poettering
8343360da1 client: minor modernizations 2009-07-25 03:11:09 +02:00
Lennart Poettering
6ce7d208f0 client: if a child we created was already reaped, assume that it was successful 2009-07-25 01:29:36 +02:00
Lennart Poettering
f6763917ee autospawn: refuse autospawning if process disabled waitpid() 2009-07-24 18:22:13 +02:00
Lennart Poettering
b174a51120 libpulse: minor cleanups 2009-07-01 14:26:07 +02:00
Lennart Poettering
f753ef2a23 rtclock: enable rtclock for our own mainloop implementations 2009-06-22 23:49:40 +02:00
Marc-André Lureau
e4d914c945 rtclock: fix issues found by Lennart 2009-06-20 17:29:34 +03:00
Marc-André Lureau
0955e3d45b Base mainloop on pa_rtclock_now()
Move the mainloop to monotonic based time events.

Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.

Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.

This patch has received several iterations, and this one as been
largely untested.

Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
2009-06-20 17:29:31 +03:00
Marc-André Lureau
86caf4520f context: don't fail if session bus is not there
Also invert the order of bus tracking since we expect session_bus to
be present when we check for it. Although that should not change
anything in practise.
2009-05-12 01:33:37 +02:00
Marc-André Lureau
344eea4f58 pulse/context: when NOFAIL, don't try_next_connection() if c->client 2009-04-17 22:41:26 +02:00
Lennart Poettering
4cc4cbd641 client-conf: make setting a default server independant from the autospawn setting 2009-04-13 22:25:09 +02:00
Finn Thain
80e18c8da3 make dbus optional during build
On Tue, 31 Mar 2009, Lennart Poettering wrote:

[snip]
>
> I have now merged your patch. I had to change a few things to make it
> apply cleanly. Since I have no access to Solaris I am unable to test
> this though, so please check if things still work for you.
>
> I also worked around the realpath() issue mostly. It should work fine on
> Solaris now, as well.

Thanks. 0.9.15-test7 seems to work fine.

The only new issue is that configure --without-dbus no longer builds. I
don't need dbus for my purposes (network audio server) and it seems that
dbus is not included with Solaris. A patch for this follows.

Finn
2009-04-10 02:14:07 +02:00
Lennart Poettering
373b5efe51 properly account for seeks in the requested_bytes counter 2009-04-01 23:05:09 +02:00
Lennart Poettering
29a282a41b allow nofail mode only when no server string was specified 2009-03-30 20:31:03 +00:00
Lennart Poettering
b6135b34b3 minor cleanups 2009-03-30 21:07:41 +02:00
Lennart Poettering
3df9eef9d0 take org.pulseaudio.Server instead of org.pulseaudio to match the interface name already used in the HAL module 2009-03-30 21:07:23 +02:00
Lennart Poettering
d33be12fde Merge commit 'elmarco/dbus' 2009-03-30 20:26:27 +02:00
Marc-André Lureau
1dad83b73c pulse: client connect to dbus 2009-03-30 21:05:31 +03:00
Lennart Poettering
65b787d000 notify clients about tlength changes 2009-03-30 18:46:12 +02:00
Lennart Poettering
3122008704 try to detect when stupid clients forks and refuse all service from then on 2009-03-05 04:33:40 +01:00
Colin Guthrie
86dee05aec Use LGPL 2.1 on all files previously using LGPL 2 2009-03-03 20:23:02 +00:00
Lennart Poettering
2d0c68af93 check for ENABLE_LEGACY_RUNTIME_DIR with #ifdef, not #if 2009-02-21 04:14:51 +01:00
Lennart Poettering
b0c0106824 Merge commit 'elmarco/legacy-dir' 2009-02-19 05:02:52 +01:00
Lennart Poettering
be81a681ac if we fail to import a memblock fill in silence to guarantee stability of timing 2009-02-18 21:55:55 +01:00
Marc-André Lureau
05b7440481 pulse/context: add --enable-legacy-runtime-dir 2009-02-18 17:16:01 +02:00
Lennart Poettering
c0fb91db54 drop check for PA_PROP_APPLICATION_NAME since often enough we can deduce this better from g_get_application_name() 2009-02-13 18:01:00 +01:00
Lennart Poettering
823431e447 allow sending meta/policy events to clients 2009-02-12 03:18:05 +01:00
Lennart Poettering
b23efc0a4d add missing eof checks 2009-01-20 02:15:43 +01:00
Lennart Poettering
79ad4e63f6 Make the shared memory segment size configurable
This is useful only on systems where memory overcommit is not available
or disabled.
2008-10-01 01:14:36 +02:00
Lennart Poettering
fb837f0cac rework autospawning to allow to multiple parallel autospawning contexts 2008-09-05 03:22:13 +02:00
Lennart Poettering
994ff984f0 connect to localhost via IP address instead of host name, to avoid needless NSS lookup 2008-09-05 03:20:33 +02:00
Lennart Poettering
13018d62c1 fix a few compiler warnings on older gcc 2008-08-29 23:53:55 +02:00
Lennart Poettering
b7026bf248 add a few more gcc warning flags and fix quite a few problems found by doing so 2008-08-19 22:39:54 +02:00