poljar (Damir Jelić)
d806b19714
Remove pa_bool_t and replace it with bool.
...
commands used for this (executed from the pulseaudio/src directory):
find . -regex '\(.*\.[hc]\|.*\.cc\|.*\.m4\)' -not -name 'macro.h' \
-a -not -name 'reserve.[ch]' -a -not -name 'reserve-monitor.[ch]' \
-a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
-a -not -name 'glib-mainloop.c' -a -not -name 'gkt-test.c' \
-a -not -name 'poll-win32.c' -a -not -name 'thread-win32.c' \
-a -not -name 'dllmain.c' -a -not -name 'gconf-helper.c' \
-exec sed -i -e 's/\bpa_bool_t\b/bool/g' \
-e 's/\bTRUE\b/true/g' -e 's/\bFALSE\b/false/g' {} \;
and:
sed -i -e '181,194!s/\bpa_bool_t\b/bool/' \
-e '181,194!s/\bTRUE\b/true/' -e \
'181,194!s/\bFALSE\b/false/' pulsecore/macro.h
2013-07-04 12:25:30 +03:00
poljar (Damir Jelić)
97da92d894
Whitespace cleanup: Remove all multiple newlines
...
This patch removes all occurrences of double and triple
newlines.
Command used for this:
find . -type d \( -name ffmpeg \) -prune -o \
-regex '\(.*\.[hc]\|.*\.cc\)' \
-a -not -name 'adrian-aec.*' -a -not \
-name reserve.c -a -not -name 'rtkit.*' \
-exec sed -i -e '/^$/{N;s/^\n$//}' {} \;
Two passes were needed to remove triple newlines.
The excluded files are mirrored files from external sources.
2013-06-24 16:56:24 +03:00
Martin Pitt
ef199c8a81
console-kit, systemd-login: Check for logind, not for systemd
...
It is possible to build systemd without logind, in which case sd_booted() wo
succeed. Check for /run/systemd/seats to test for logind instead, as
recommended by systemd upstream.
For details, see:
<https://mail.gnome.org/archives/desktop-devel-list/2013-March/msg00092.html
Drop the now unnecessary linking against libsystemd-daemon, and stop linking
the consolekit module to any systemd library.
https://bugs.freedesktop.org/show_bug.cgi?id=62593
2013-03-29 13:33:18 +02:00
Tanu Kaskinen
8872c238ba
hashmap: Use pa_free_cb_t instead of pa_free2_cb_t
...
The previous patch removed module-gconf's dependency on the userdata
pointer of the free callback, and that was the only place where the
userdata pointer of pa_free2_cb_t was used, so now there's no need for
pa_free2_cb_t in pa_hashmap_free(). Using pa_free_cb_t instead allows
removing a significant amount of repetitive code.
2013-02-16 01:12:21 +02:00
Lennart Poettering
860d1cf3a7
systemd: complement module-console-kit with module-systemd-login
...
ConsoleKit has been deprecated and replaced by systemd's logind daemon,
hence provide the same functionality of module-console-kit in
module-systemd-login. This also makes sure that the CK module becomes a
NOP if the system is booted with systemd, resp. that the systemd module
becomes a NOP if the system is booted without systemd, thus being nice
to OSes such as Debian which want to support multiple init systems.
2012-03-17 01:52:41 +01:00
Maarten Bosmans
dd9265ac78
Remove unnecessary #includes
2011-06-22 23:12:20 +01:00
Maarten Bosmans
ecf09f2cd6
Fix up according to Coding Style
...
Only whitespace changes in here
2011-03-11 11:49:35 +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
2223a9f938
dbus: never return DBUS_HANDLER_RESULT_HANDLED in filter callbacks, since other callbacks might stell want to have the messages
2009-08-19 00:59:23 +02:00
Marc-André Lureau
eb93e2537a
dbus: split dbus-util into dbus-shared
...
modules: fix dbus-util include
pulse: get dbus at context connection
2009-03-30 20:56:55 +03: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
4a06af6081
make use of new functions pa_dbus_add_matches/pa_dbus_remove_matches
2009-01-29 03:31:42 +01:00
Lennart Poettering
a3695dd9eb
port missing modules to new pa_client_new() API
2009-01-15 18:21:57 +01:00
Lennart Poettering
e3fb086681
make module-hal and module-ck live together in peace
2008-07-24 03:02:09 +02:00
Lennart Poettering
49f09d6d0e
fix destruction of dbus modules: make sure we don't leave filter function registered after unreffing the dbus connection
2008-07-24 02:21:58 +02:00
Lennart Poettering
888256b0be
reset dbus error struct before retrying parsing messages
2008-07-24 01:31:33 +02:00
Lennart Poettering
32e93d5c89
follow consolekit's recent D-Bus API change, original patch from William Jon McCan
2008-07-23 16:59:55 +02:00
Lennart Poettering
8ae83d618e
get rid of svn $ keywords
2008-06-18 23:23:21 +03:00
Lennart Poettering
5c149e2a79
fix a minor memory leak when unloading m-c-k
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2523 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-13 21:06:08 +00:00
Lennart Poettering
d39d6c9213
drop hal inclusion from module-console-kit.c
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2522 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-12 18:14:46 +00:00
Lennart Poettering
2cc95df859
add new module-console-kit which tracks ck sessions to avoid termination when there is still some session using the PA instance
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2508 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 14:28:35 +00:00