Lennart Poettering
c9375aa5e9
libpulse: add missing includes
2009-10-12 21:21:26 +02:00
Colin Guthrie
0ff2a6b434
device-manager: Rather than flagging the device as available, just include the sink/source index with PA_INVALID_INDEX meaning unavailable
2009-10-10 15:45:49 +01:00
Lennart Poettering
d0b478e9a6
Merge remote branch 'coling/history'
2009-10-07 03:46:06 +02:00
Tanu Kaskinen
019331d25b
Merge branch 'master' into dbus-work
...
Conflicts:
src/daemon/daemon-conf.c
2009-10-02 17:24:44 +03:00
Colin Guthrie
f9b2d6500b
device-manager: Change the prefer/defer options to a single 'reorder' command.
...
We put in the devices from the wire into a hashmap and then add all like type device in the database
and then order them based on priority (with the ones specified on the wire always being in that order at
the top of the list.
2009-10-01 09:08:32 +01:00
Colin Guthrie
8b2cc4def3
device-manager: Expose the priority lists in the protocol extension.
...
Also leave space for 'icon' and 'available' details too, althought currently this info is dummy.
2009-10-01 09:08:32 +01:00
Colin Guthrie
f8ec8f382f
device-manager: Change the write function to a rename function.
...
The structure itself will contain various bits of info so exposing this fully to the client is a bad idea.
By keeping to a rename operation we keep what we do store abstracted from the clients.
Also fix some doxy comments.
2009-10-01 09:08:29 +01:00
Colin Guthrie
aebe4787f2
device-manager: Provide a method for prefering/defering a device.
...
This allows clients to edit the priroity order. What is not yet in place is the initialisation of that priority list
when new devices are detected or the cleaning (remove holes) when devices are removed.
In order to keep the storage transparent I will likely remove the write functionality and replace it with a
simple rename method.
I also still need to expose the priority itself when reading the data.
2009-10-01 09:08:29 +01:00
Colin Guthrie
103897a1e3
device-manager: Provide a way for clients to enable/disable role-based device-priority routing.
...
The routing logic itself does not yet exist, but the command currently will unload/load module-stream-restore as approriate.
(module-stream-restore would conflict with the role-based priority-routing).
2009-10-01 09:08:29 +01:00
Colin Guthrie
9357bdf4e7
device-manager: Update docs version -> 0.9.19 (predicted)
2009-10-01 09:08:29 +01:00
Colin Guthrie
464e1a8986
device-manager: Fix copy+paste leftover
2009-10-01 09:08:29 +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
Colin Guthrie
8f4940b17a
libpulse: Add *_NOFLAGS flags with value 0 for various enums
...
This avoids the need for ugly casting in client implementations.
2009-09-22 18:43:03 +01:00
Lennart Poettering
f84d755d6a
mainloop: fix detection of rt clocks
2009-09-18 22:16:25 +02:00
Lennart Poettering
d6291511a2
mainloop: pass monotonic times back to user if he passed monotonic times to us
2009-09-18 04:21:01 +02:00
Lennart Poettering
c024aeaae9
timeval: make timeval conversion routines handle PA_USEC_INVALID special
2009-09-18 04:14:39 +02:00
Lennart Poettering
a1da83b206
timeval: add UNLIKELY annotation
2009-09-18 04:14:38 +02:00
Lennart Poettering
05f6236a83
timeval: make pa_timeval_sub saturating
2009-09-18 04:14:38 +02:00
Lennart Poettering
f7d38965b3
timeval: introduce PA_USEC_MAX
2009-09-18 04:14:37 +02:00
Lennart Poettering
fb4a2a1bbb
mainloop: sum up dispatched events in an unsigned to clarify range
2009-09-18 04:14:37 +02:00
Lennart Poettering
18d69c5d9d
mainloop: use PA_LLIST_FOREACH macros where applicable
2009-09-18 04:14:37 +02:00
Lennart Poettering
b32f5994e9
mainloop: don't initialize fields we don't have to
2009-09-18 04:14:36 +02:00
Lennart Poettering
a049909a70
mainloop: calculate in pa_usec_t everywhere
2009-09-18 04:14:36 +02:00
Lennart Poettering
a43118b730
mainloop: properly convert time to wallclock time when handing it to the user
2009-09-18 04:14:36 +02:00
Lennart Poettering
94f28b9d4b
proplist: introduce PA_PROP_WINDOW_DESKTOP property
2009-09-17 02:22:41 +02: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
6b8fdc4169
CANCELLED vs. CANCELED
...
Define CANCELLED as alias for CANCELED
2009-09-17 01:19:55 +02:00
Lennart Poettering
12f211105e
gccmacro: enable weakrefs only on ELF
2009-09-15 04:31:54 +02:00
Lennart Poettering
5919337433
proplist: define properties for storing window position
2009-09-11 02:16:17 +02:00
Lennart Poettering
42b795b408
doxygen: don't confuse doxygen with spurious ..
2009-09-11 01:49:55 +02:00
Lennart Poettering
4e3f7d5577
doxygen: add rtclock.h to documentation
2009-09-11 01:49:39 +02:00
Lennart Poettering
297f318206
doxygen: drop references to pacat.c and paplay.c as examples since tehy are not useful as such and in the case of paplay not even existant anymore
2009-09-11 01:49:16 +02:00
Lennart Poettering
54609675e5
libpulse: add new error code PA_ERR_BUSY
2009-09-11 01:20:45 +02:00
Lennart Poettering
12c7460e40
libpulse: don't support pa_context_get_card_info_list() on servers that cannot handle it
2009-09-10 02:16:00 +02:00
Lennart Poettering
05506d7dc2
utf8: minor simplification
2009-09-08 23:49:42 +02:00
Lennart Poettering
f5046759cd
llvm-clang-analyzer: drop a few unnecessary assignments and other trivial fixes
2009-09-08 23:46:23 +02:00
Lennart Poettering
08a4d57ce2
libpulse: allow invocation of pa_context_play_sample_with_proplist() with NULL proplist
2009-09-07 22:43:35 +02:00
Lennart Poettering
41a0dc1e99
volume: if pa_cvolume_set_{balance|fade}() is called with invalid fade/balance value log, but don't assert
2009-09-07 20:11:11 +02:00
Lennart Poettering
d000dd6f4b
volume: when passing NULL as channel map to pa_cvolume_scale_mask() handle this the same way as pa_cvolume_scale()
2009-09-07 20:11:08 +02:00
Lennart Poettering
9755bfa58a
volume: drop some redundant but expensive validity checks
2009-09-07 20:09:52 +02:00
Lennart Poettering
cc6c4fe91f
volume: add a couple of validity checks for pa_volume_t arguments
2009-09-07 19:59:18 +02:00
Lennart Poettering
3bbc5e6a4d
volume: fix definition of PA_VOLUME_MAX and introduce PA_VOLUME_INVALID and use it wherever applicable
2009-09-07 19:53:39 +02:00
Lennart Poettering
5cf0c1e544
introspect: rearrange order of functions a bit
2009-09-06 23:14:15 +02:00
Lennart Poettering
e6a666d8d5
libpulse: introduce PA_BYTES_SNPRINT_MAX and make use of it wherever applicable
2009-09-06 22:33:04 +02:00
Tanu Kaskinen
0ad2d55cbe
Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-work
...
Conflicts:
src/modules/module-stream-restore.c
2009-08-30 20:07:31 +03:00
Andy Shevchenko
300384ce0a
Fix checking for NULL after usage
...
The pa_xmalloc calls oom() in case of NULL pointer returned by malloc() on one
hand and dereferencing of pointer is happen early than actual check on other
hand. Thus, just remove useless checks.
2009-08-28 17:12:44 +02:00
Lennart Poettering
35fcb27a81
proplist: allow setting of zero-length data properties
2009-08-27 05:33:45 +02:00
Tanu Kaskinen
2f3fc2f1d6
Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-work
...
Conflicts:
src/Makefile.am
2009-08-24 14:43:11 +03:00
Tanu Kaskinen
187c4f32cf
proplist: A couple of documentation fixes.
2009-08-24 14:23:49 +03:00
Tanu Kaskinen
1e4e26c87f
proplist: Return early from pa_proplist_equal() if the pointers are equal.
2009-08-24 14:22:32 +03:00