Tanu Kaskinen
ada83601f0
module: Fix crash in pa_module_unload_all()
...
Previously, if there were no modules loaded when the daemon exited,
pa_module_unload_all() would crash due to giving zero count to
pa_xnew().
Thanks to Pierre Ossman for the patch.
2013-07-11 13:35:24 +03:00
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
Tanu Kaskinen
aacac20e76
module: Assign the index before calling init()
...
Any code that runs inside the init() callback sees an invalid module
index. Sometimes init() does things that cause hooks to be fired. This
means that any code that uses hooks may see an invalid module index.
Fix this by assigning the module index before init() is called.
There are no known issues in the upstream code base where an invalid
module index would be used, but an out-of-tree module
(module-murphy-ivi) had a problem with this.
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=63923
2013-06-04 00:38:41 +05:30
Ismo Puustinen
55571f8999
module: initialize module index to invalid value.
...
m->init() was called while m->index was uninitialized, which was bad
style.
2013-06-04 00:38:40 +05:30
Tanu Kaskinen
cfb609d4f6
module: Don't use lt_dlerror(), it's useless
2013-03-12 19:12:23 +02:00
David Henningsson
0785165e5c
module: Unload modules in reverse order
...
Unloading modules in the reverse order is the "more logical" thing
to do, and speeds up shutdown somewhat, e g by not loading
module-null-sink at shutdown.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
2013-02-16 21:03:46 +02:00
Tanu Kaskinen
2c666e3e16
idxset: Add pa_idxset_remove_all()
...
Slightly nicer than using pa_idxset_steal_first() in a loop.
2013-02-16 01:18:59 +02:00
Arti Trivedi Bora
96a52257a9
pulsecore: Use pa_streq instead of strcmp.
2012-06-09 16:22:13 +03:00
Harsh Prateek Bora
13c7a55599
pulsecore: Use PA_IDXSET_FOREACH wherever applicable.
...
Signed-off-by: Harsh Prateek Bora <harsh.bora@linaro.org>
2012-05-31 14:12:36 +02:00
Maarten Bosmans
dd9265ac78
Remove unnecessary #includes
2011-06-22 23:12:20 +01:00
Maarten Bosmans
684b89c639
Fix up some double spaces
2011-03-18 09:20:07 +00:00
Tanu Kaskinen
7ba22276d2
core: New function: pa_module_update_proplist().
2010-08-19 12:10:01 +03:00
Lennart Poettering
c224aace42
modules: introduce PA_MODULE_DEPRECATED() macro for marking modules deprecated
2009-05-28 02:47:36 +02: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
746dc2ac19
get rid of nonsensical late initialization of namereg/scache and things
2009-01-29 16:25:29 +01:00
Lennart Poettering
b43a45d184
allow setting properties for modules, too
2009-01-19 22:02:28 +01:00
Lennart Poettering
606cf8a2ec
get rid of pa_module_get_info because it is not used
2009-01-17 02:17:32 +01:00
Lennart Poettering
bae221cca9
rework module usage counter stuff to be pull based
2009-01-15 20:49:12 +01:00
Lennart Poettering
29c7a28817
kill autoload stuff as planned
2009-01-15 20:07:13 +01:00
Lennart Poettering
c5b8eb7edf
introduce new function pa_module_unload_request_by_index
2008-12-17 21:19:34 +01:00
Lennart Poettering
34bcba63a2
remove a few more gcc warnings
2008-08-30 01:22:41 +02:00
Lennart Poettering
b21840407a
fix bad memory access
2008-08-09 17:04:41 +02:00
Lennart Poettering
432b4e5f7d
don't use PA_GCC_UNUSED anymore
2008-08-09 16:20:29 +02:00
Lennart Poettering
34dd4a20f2
fix shutdown when --disallow-module-loading=1 is passed
2008-08-05 23:56:25 +02:00
Lennart Poettering
9bfd67f70f
store load_once flag for module
2008-08-03 18:55:42 +02:00
Lennart Poettering
36021b117b
modernize idxset a bit, reduce memory consumption, get rid of pa_idxset_foreach()
2008-06-27 20:34:14 +02:00
Lennart Poettering
8ae83d618e
get rid of svn $ keywords
2008-06-18 23:23:21 +03:00
Lennart Poettering
f7ff9e2dd2
install auto unload time event only when we have at least one auto unload module
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2509 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-11 16:55:26 +00:00
Lennart Poettering
045c1d602d
merge glitch-free branch back into trunk
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-05-15 23:34:41 +00:00
Lennart Poettering
f752882525
fix loading of load-once modules if no other modules was loaded before
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2049 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-13 17:35:48 +00:00
Lennart Poettering
e313fe1b3d
tag modules that may only be loaded once at most especially, and enforce that in the module loader
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2043 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-09 18:25:40 +00:00
Lennart Poettering
a67c21f093
merge 'lennart' branch back into trunk.
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-10-28 19:13:50 +00:00
Pierre Ossman
06211b7c8f
Add copyright notices to all relevant files. (based on svn log)
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-02-13 15:35:19 +00:00
Pierre Ossman
521daf6f0a
Huge trailing whitespace cleanup. Let's keep the tree pure from here on,
...
mmmkay?
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-01-04 13:43:45 +00:00
Lennart Poettering
e385d93e5a
remove all occurences of
...
pa_logXXX(__FILE__":
and replace them by
pa_logXXX("
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1272 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-08-18 21:38:40 +00:00
Lennart Poettering
f8e5f47e23
fix a compiler warning
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1210 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-08-12 02:16:47 +00:00
Lennart Poettering
ccf67d2988
deal properly with recursive module unloading
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1174 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-07-31 21:53:48 +00:00
Lennart Poettering
f44ba09265
big s/polyp/pulse/g
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1033 fefdeb5f-60dc-0310-8127-8f9354f1896f
2006-06-19 21:53:48 +00:00