Lennart Poettering [Fri, 11 Aug 2006 17:12:54 +0000 (17:12 +0000)]
use the HAL UDI for naming input/output devices
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1200
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:58:21 +0000 (16:58 +0000)]
do not export name validity checking routes and apply them only to sink/source names, not sample names
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1199
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:56:47 +0000 (16:56 +0000)]
fix bad memory access and a leak when detructing ALSA fd lists
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1198
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:38:51 +0000 (16:38 +0000)]
rework name register a litle to only allow "valid" names.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1197
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:38:05 +0000 (16:38 +0000)]
Build HAL support only when either OSS or ALSA is available
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1196
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 16:29:46 +0000 (16:29 +0000)]
remove OSS specific code from module-hal-detect if HAVE_OSS is not set. Same for ALSA
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1195
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 15:08:09 +0000 (15:08 +0000)]
ALSA: handle write()/read() errors properly by unloading the driver module. This should fix problems when removing USB audio device while pulseaudio is running.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1194
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 15:06:03 +0000 (15:06 +0000)]
change order of the ALSA event dispatch code to make sure that the code survives if the event dispatcher frees the ALSA client
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1193
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 11 Aug 2006 15:05:02 +0000 (15:05 +0000)]
use the copied udi string as hash key for the device table, because the temporary one is freed when the function exits
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1192
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Shahms E. King [Tue, 8 Aug 2006 19:26:06 +0000 (19:26 +0000)]
add HAL support for OSS devices and capability changes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1191
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Shahms E. King [Mon, 7 Aug 2006 20:29:31 +0000 (20:29 +0000)]
clean up hal patch to use pa_xnew and timeval compatibility wrappers
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1190
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 7 Aug 2006 16:50:15 +0000 (16:50 +0000)]
try to reduce volume updates in the ALSA sinks/sources: only touch the shadowed hw volme if necessary
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1189
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 6 Aug 2006 19:14:07 +0000 (19:14 +0000)]
* add SVN $Id$ tags
* add a const
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1188
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 6 Aug 2006 16:16:50 +0000 (16:16 +0000)]
merge HAL support from Shams E. King
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1187
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:34:22 +0000 (22:34 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1186
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:33:54 +0000 (22:33 +0000)]
implement "pactl move-source-output"
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1185
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:33:11 +0000 (22:33 +0000)]
implement pa_context_move_source_output_by_{name,index}()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1184
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:32:23 +0000 (22:32 +0000)]
wrap pa_source_output_move_to() in the native protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1183
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:31:35 +0000 (22:31 +0000)]
add new CLI command move-source-output as wrapper around pa_source_output_move_to()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1182
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:30:45 +0000 (22:30 +0000)]
Implement pa_source_input_move_to() for moving record streams between sources
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1181
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 3 Aug 2006 22:29:55 +0000 (22:29 +0000)]
- don't call pa_sink_notify in pa_sink_input_new() because the virtual methods are not yet initialized at this time
- some minor cleanups
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1180
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 1 Aug 2006 21:04:43 +0000 (21:04 +0000)]
bump API and protocol version. Return PA_ERR_NOTSUPPORTED if pa_context_move_sink_input_by_*()is called for servers that don't support it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1179
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:55:42 +0000 (21:55 +0000)]
add new "move-sink-input" command to pactl
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1178
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:55:09 +0000 (21:55 +0000)]
wrap PA_COMMAND_MOVE_SINK_INPUT for libpulse
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1177
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:54:46 +0000 (21:54 +0000)]
add new native protocol function for moving sink inputs between sinks
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1176
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:54:20 +0000 (21:54 +0000)]
add new commands opcode for moving sink inputs and source outputs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1175
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:53:48 +0000 (21:53 +0000)]
deal properly with recursive module unloading
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1174
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 31 Jul 2006 21:53:21 +0000 (21:53 +0000)]
fix bad memory access if a non-existing entry shall be removed from a pa_idxset by index
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1173
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 17:42:25 +0000 (17:42 +0000)]
fix module-gconf initialization
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1172
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 17:20:08 +0000 (17:20 +0000)]
don't hit an assetr if there are operations outstanding when the pa_context is destroyed
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1171
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:34:36 +0000 (15:34 +0000)]
fix two typos (pierre, have you been sleeping? next time please the comments wrong but the code right, not the other way round! ;-))
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1170
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:07:15 +0000 (15:07 +0000)]
add new CLI function "move-sink-input" as wrapper around pa_sink_input_move_to()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1169
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:06:49 +0000 (15:06 +0000)]
* implement "hot" moving of playback streams between sinks (pa_sink_input_move_to()).
* optimize the adjusting of the volume in pa_sink_input_peek() a little
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1168
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:04:17 +0000 (15:04 +0000)]
free the memblockq if we decide not to play it
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1167
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:03:26 +0000 (15:03 +0000)]
if the memblockq is empty, return -1 in all cases
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1166
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:02:53 +0000 (15:02 +0000)]
fix calculation of pa_usec_to_bytes, to make sure that it never returns fractions of a frame size
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1165
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 29 Jul 2006 15:02:24 +0000 (15:02 +0000)]
handle EOF correctly if it is read before the stream was created
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1164
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 28 Jul 2006 23:29:37 +0000 (23:29 +0000)]
for the playing field of pa_timing_info use pa_sink_input::state == PA_SINK_INPUT_RUNNING. This means that this variable will now refer to the current state and not to the expected future state, which is probably more what clients expect.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1163
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 28 Jul 2006 23:27:16 +0000 (23:27 +0000)]
fold the seperate variable pa_sink_input::playing into pa_sink_input::state as state PA_SINK_INPUT_DRAINED. The following mappings hold:
old PA_SINK_RUNNING + playing set = new PA_SINK_RUNNING
old PA_SINK_RUNNING + playing not set = new PA_SINK_DRAINED
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1162
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 28 Jul 2006 22:52:28 +0000 (22:52 +0000)]
introduce pa_play_memblockq() which creates a playback stream and passes the data from the memblockq to it. after that is done, frees the memblockq
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1161
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 18:40:01 +0000 (18:40 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1160
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 18:35:17 +0000 (18:35 +0000)]
load module-gconf in default install
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1159
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 18:02:59 +0000 (18:02 +0000)]
introduce three virtual sink/source names: @DEFAULT_SINK@, @DEFAULT_SOURCE@, @DEFAULT_MONITOR@. Especially the latter is useful for connecting to the monitor source of the default sink.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1158
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 16:51:20 +0000 (16:51 +0000)]
if possible do not unload already loaded modules when the gconf settings change. instead try to reuse already loaded modules as much as possible
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1157
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 16:50:26 +0000 (16:50 +0000)]
because gconf doesn't provide real transactions we emulate our own with a "locked" gconf key
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1156
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 27 Jul 2006 16:49:44 +0000 (16:49 +0000)]
remove superfluous code
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1155
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 22:39:56 +0000 (22:39 +0000)]
remove two superfluous lines
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1154
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 22:39:06 +0000 (22:39 +0000)]
mainloop fixes: when disabling time events when dispatching them, make sure to adjust the cache time event and enabled time event counters
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1153
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 18:28:31 +0000 (18:28 +0000)]
add some protection that the gconf helper process will be killed when the daemon process dies. make sure the gconf helper process doesn't keep open file descriptors belonging to the daemon; if gconf helper path
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1152
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 17:46:51 +0000 (17:46 +0000)]
add missing configure.ac checks for module-gconf
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1151
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 26 Jul 2006 17:36:14 +0000 (17:36 +0000)]
add new module "module-gconf" which reads configuration information from gconf. this will be used in my upcoming paconf module
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1150
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:51:15 +0000 (20:51 +0000)]
add new command line option --no-cpu-limit. This is useful when running PulseAudio in valgrind's massif or callgrind tools
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1149
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:39:34 +0000 (20:39 +0000)]
Results of profiling PulseAudio with valgrind's callgrind module: rework the default event loop implementation to use PA_LLIST_xxx instead of pa_idxset; don't generate weakeup events if we aren't in STATE_POLLING; minimize dispatching of io events; cache next time event instead of traversing the list of time events on every event loop iteration; other optimizations
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1148
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:10:47 +0000 (20:10 +0000)]
split a few asserts
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1147
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:10:30 +0000 (20:10 +0000)]
split a few assert()s
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1146
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 25 Jul 2006 20:09:22 +0000 (20:09 +0000)]
add a few more g_assert()s and change all assert()s to g_assert()s
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1145
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 24 Jul 2006 20:03:27 +0000 (20:03 +0000)]
add autogen.sh for jhbuild (for you, elmarco!)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1144
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 24 Jul 2006 17:48:33 +0000 (17:48 +0000)]
bump version and sonames
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1142
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 23 Jul 2006 22:36:08 +0000 (22:36 +0000)]
add massif target to Makefile
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1141
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 23 Jul 2006 22:35:30 +0000 (22:35 +0000)]
as a result of memory profiling with valgrind/massif: decrease default hash table size from 1024 to 127. the hashtables are sparsely filled most of the time, so there is no point in allocating to much memory by default.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1140
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sun, 23 Jul 2006 19:23:12 +0000 (19:23 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1139
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Sat, 22 Jul 2006 00:54:23 +0000 (00:54 +0000)]
fix horribly broken glib timeout event handling
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1138
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Fri, 21 Jul 2006 21:19:11 +0000 (21:19 +0000)]
Use proper @libdir@ in pc.in files to handle x86_64 machines.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1137
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Fri, 21 Jul 2006 19:59:52 +0000 (19:59 +0000)]
raise the default value for RLIMIT_NOFILE to 200 since 25 is apparently too small if every single GNOME apps thinks it needs to create its own server connection!
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1136
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 23:21:57 +0000 (23:21 +0000)]
Get ACL:s to work on Win32.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1134
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 23:12:18 +0000 (23:12 +0000)]
remove access group setting from default client.conf
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1133
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 23:04:59 +0000 (23:04 +0000)]
fix a few @@ replacments
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1132
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 22:58:37 +0000 (22:58 +0000)]
even more FreeBSD portability (thanks Flameeyes, again!)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1131
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 22:46:41 +0000 (22:46 +0000)]
add missing #ifdef HAVE_CREDS (thanks, Flameeyes)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1130
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 22:44:38 +0000 (22:44 +0000)]
some more FreeBSD compat from Flameeyes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1129
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 21:48:49 +0000 (21:48 +0000)]
bump release and sonames
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1128
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 21:28:44 +0000 (21:28 +0000)]
remove configurable client access group, since can never work on Linux anway, since SCM_CREDENTAILS doesn't allow sending supplementary GIDs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1127
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 18:43:38 +0000 (18:43 +0000)]
update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1126
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 18:43:20 +0000 (18:43 +0000)]
implement "auth-ip-acl=" in the native and esound protocols
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1125
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 16:56:06 +0000 (16:56 +0000)]
actually ship src/pulsecore/creds.h in the tarballs
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1124
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 16:48:26 +0000 (16:48 +0000)]
add IP address ACL subsystem
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1123
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 13:28:50 +0000 (13:28 +0000)]
Fix incorrect call to nonexistant pa_log_warning().
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1122
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 13:24:57 +0000 (13:24 +0000)]
Only warn when running as root and not --system.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1121
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 13:24:04 +0000 (13:24 +0000)]
Centralise check if we're running as root.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1120
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 13:19:16 +0000 (13:19 +0000)]
Move check for SUID into the caps functions.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1119
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 13:16:23 +0000 (13:16 +0000)]
Handle user switch in a more platform independent manner.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1118
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 13:07:01 +0000 (13:07 +0000)]
Make sure parse_rlimit is only used when rlimits are supported.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1117
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 01:25:37 +0000 (01:25 +0000)]
add support to set resource limits for the daemon and set some of them to some sane values
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1116
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Thu, 20 Jul 2006 00:52:44 +0000 (00:52 +0000)]
undo r1111 in some way: include sys/socket.h and sys/un.h but wrap it in #ifdef
HAVE_xxx_H. This should be safe because config.h should be the first included
header in all .c files and creds.h is never included by any external tools
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1115
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 00:28:18 +0000 (00:28 +0000)]
Add missing header.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1114
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 00:21:50 +0000 (00:21 +0000)]
Make -1 mean "current group/user" so that some platform dependent calls
can be centralised.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1113
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 00:13:12 +0000 (00:13 +0000)]
Protect platform dependent headers with ifdefs.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1112
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Pierre Ossman [Thu, 20 Jul 2006 00:12:52 +0000 (00:12 +0000)]
Remove unneeded headers.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1111
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 19 Jul 2006 23:16:02 +0000 (23:16 +0000)]
add a few comments
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1110
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 19 Jul 2006 21:48:35 +0000 (21:48 +0000)]
* add new function pa_check_in_group()
* abstract credential APis a little bit by introducing HAVE_CREDS and a structure pa_creds
* rework credential authentication
* fix module-volume-restore and friends for usage in system-wide instance
* remove loopback= argument from moulde-*-protocol-tcp since it is a superset of listen= and usually a bad idea anyway since the user shouldn't load the TCP module at all if he doesn't want remote access
* rename a few variables in the jack modules to make sure they don't conflict with symbols defined in the system headers
* add server address for system-wide daemons to the default server list for the the client libs
* update todo
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1109
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 19 Jul 2006 18:14:14 +0000 (18:14 +0000)]
use access group dedclared in ~/.pulse/client.conf instead of PA_ACCESS_GROUP
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1108
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 19 Jul 2006 18:11:12 +0000 (18:11 +0000)]
update @@ tokens according to recent Makefile.am change
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1107
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 19 Jul 2006 18:08:29 +0000 (18:08 +0000)]
fix sed scripts according to #define renames
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1106
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Wed, 19 Jul 2006 17:44:19 +0000 (17:44 +0000)]
* add new --system command line parameter to the daemon for running PulseAudio as system-wide instance
* add PA_ prefixes to all global #defines
* modify auth-by-creds: define a new group "pulse-access" which is used for authentication
* add proper privilige dropping when running in --system mode
* create runtime directory once on startup and not by each module seperately
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1105
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 18 Jul 2006 19:53:29 +0000 (19:53 +0000)]
remove glib 1.2 adapter. It started to bitrot and wasn't used by anything anyway.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1104
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 18 Jul 2006 19:50:09 +0000 (19:50 +0000)]
add two more \since
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1103
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 18 Jul 2006 19:19:52 +0000 (19:19 +0000)]
fix module-detect on FreeBSD (patch from Diego "Flameeyes" Pettenó)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1102
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 18 Jul 2006 18:52:13 +0000 (18:52 +0000)]
turn the glib adapter into a single GSource instead of creating a bunch of seperate GSources for each event
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1101
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Tue, 18 Jul 2006 18:51:35 +0000 (18:51 +0000)]
define proper typdefs for callback prototypes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1100
fefdeb5f-60dc-0310-8127-
8f9354f1896f
Lennart Poettering [Mon, 17 Jul 2006 21:20:31 +0000 (21:20 +0000)]
change licensing blurb form "Library GPL" to "Lesser GPL" on request of Loic Minier. Effectively this means using the same license blurb like in all other source files.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1099
fefdeb5f-60dc-0310-8127-
8f9354f1896f