profile/ivi/pulseaudio-panda.git
18 years ago- don't call pa_sink_notify in pa_sink_input_new() because the virtual methods are...
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

18 years agobump API and protocol version. Return PA_ERR_NOTSUPPORTED if pa_context_move_sink_inp...
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

18 years agoadd new "move-sink-input" command to pactl
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

18 years agowrap PA_COMMAND_MOVE_SINK_INPUT for libpulse
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

18 years agoadd new native protocol function for moving sink inputs between sinks
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

18 years agoadd new commands opcode for moving sink inputs and source outputs
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

18 years agodeal properly with recursive module unloading
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

18 years agofix bad memory access if a non-existing entry shall be removed from a pa_idxset by...
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

18 years agofix module-gconf initialization
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

18 years agodon't hit an assetr if there are operations outstanding when the pa_context is destroyed
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

18 years agofix two typos (pierre, have you been sleeping? next time please the comments wrong...
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

18 years agoadd new CLI function "move-sink-input" as wrapper around pa_sink_input_move_to()
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

18 years ago* implement "hot" moving of playback streams between sinks (pa_sink_input_move_to()).
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

18 years agofree the memblockq if we decide not to play it
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

18 years agoif the memblockq is empty, return -1 in all cases
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

18 years agofix calculation of pa_usec_to_bytes, to make sure that it never returns fractions...
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

18 years agohandle EOF correctly if it is read before the stream was created
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

18 years agofor the playing field of pa_timing_info use pa_sink_input::state == PA_SINK_INPUT_RUN...
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

18 years agofold the seperate variable pa_sink_input::playing into pa_sink_input::state as state...
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

18 years agointroduce pa_play_memblockq() which creates a playback stream and passes the data...
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

18 years agoupdate todo
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

18 years agoload module-gconf in default install
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

18 years agointroduce three virtual sink/source names: @DEFAULT_SINK@, @DEFAULT_SOURCE@, @DEFAULT...
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

18 years agoif possible do not unload already loaded modules when the gconf settings change....
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

18 years agobecause gconf doesn't provide real transactions we emulate our own with a "locked...
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

18 years agoremove superfluous code
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

18 years agoremove two superfluous lines
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

18 years agomainloop fixes: when disabling time events when dispatching them, make sure to adjust...
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

18 years agoadd some protection that the gconf helper process will be killed when the daemon...
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

18 years agoadd missing configure.ac checks for module-gconf
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

18 years agoadd new module "module-gconf" which reads configuration information from gconf. this...
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

18 years agoadd new command line option --no-cpu-limit. This is useful when running PulseAudio...
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

18 years agoResults of profiling PulseAudio with valgrind's callgrind module: rework the default...
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

18 years agosplit a few asserts
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

18 years agosplit a few assert()s
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

18 years agoadd a few more g_assert()s and change all assert()s to g_assert()s
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

18 years agoadd autogen.sh for jhbuild (for you, elmarco!)
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

18 years agobump version and sonames
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

18 years agoadd massif target to Makefile
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

18 years agoas a result of memory profiling with valgrind/massif: decrease default hash table...
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

18 years agoupdate todo
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

18 years agofix horribly broken glib timeout event handling
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

18 years agoUse proper @libdir@ in pc.in files to handle x86_64 machines.
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

18 years agoraise the default value for RLIMIT_NOFILE to 200 since 25 is apparently too small...
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

18 years agoGet ACL:s to work on Win32.
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

18 years agoremove access group setting from default client.conf
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

18 years agofix a few @@ replacments
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

18 years agoeven more FreeBSD portability (thanks Flameeyes, again!)
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

18 years agoadd missing #ifdef HAVE_CREDS (thanks, Flameeyes)
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

18 years agosome more FreeBSD compat from Flameeyes
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

18 years agobump release and sonames
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

18 years agoremove configurable client access group, since can never work on Linux anway, since...
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

18 years agoupdate todo
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

18 years agoimplement "auth-ip-acl=" in the native and esound protocols
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

18 years agoactually ship src/pulsecore/creds.h in the tarballs
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

18 years agoadd IP address ACL subsystem
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

18 years agoFix incorrect call to nonexistant pa_log_warning().
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

18 years agoOnly warn when running as root and not --system.
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

18 years agoCentralise check if we're running as root.
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

18 years agoMove check for SUID into the caps functions.
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

18 years agoHandle user switch in a more platform independent manner.
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

18 years agoMake sure parse_rlimit is only used when rlimits are supported.
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

18 years agoadd support to set resource limits for the daemon and set some of them to some sane...
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

18 years agoundo r1111 in some way: include sys/socket.h and sys/un.h but wrap it in #ifdef
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

18 years agoAdd missing header.
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

18 years agoMake -1 mean "current group/user" so that some platform dependent calls
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

18 years agoProtect platform dependent headers with ifdefs.
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

18 years agoRemove unneeded headers.
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

18 years agoadd a few comments
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

18 years ago* add new function pa_check_in_group()
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

18 years agouse access group dedclared in ~/.pulse/client.conf instead of PA_ACCESS_GROUP
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

18 years agoupdate @@ tokens according to recent Makefile.am change
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

18 years agofix sed scripts according to #define renames
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

18 years ago* add new --system command line parameter to the daemon for running PulseAudio as...
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

18 years agoremove glib 1.2 adapter. It started to bitrot and wasn't used by anything anyway.
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

18 years agoadd two more \since
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

18 years agofix module-detect on FreeBSD (patch from Diego "Flameeyes" Pettenó)
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

18 years agoturn the glib adapter into a single GSource instead of creating a bunch of seperate...
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

18 years agodefine proper typdefs for callback prototypes
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

18 years agochange licensing blurb form "Library GPL" to "Lesser GPL" on request of Loic Minier...
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

18 years agoForgot to protect one access to with_creds with an ifdef.
Pierre Ossman [Mon, 17 Jul 2006 11:42:25 +0000 (11:42 +0000)]
Forgot to protect one access to with_creds with an ifdef.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1098 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoRestore SIGPIPE warning when the platform doesn't have MSG_NOSIGNAL.
Pierre Ossman [Mon, 17 Jul 2006 11:26:29 +0000 (11:26 +0000)]
Restore SIGPIPE warning when the platform doesn't have MSG_NOSIGNAL.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1097 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agomake pulseaudio compile again on FreeBSD (patch from Diego "Flameeyes" Petteno)
Lennart Poettering [Sun, 16 Jul 2006 23:20:27 +0000 (23:20 +0000)]
make pulseaudio compile again on FreeBSD (patch from Diego "Flameeyes" Petteno)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1096 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agotodo
Lennart Poettering [Sun, 16 Jul 2006 17:42:29 +0000 (17:42 +0000)]
todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1095 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoshow summary after "configure" has run (closes: #22)
Lennart Poettering [Sun, 16 Jul 2006 17:38:45 +0000 (17:38 +0000)]
show summary after "configure" has run (closes: #22)

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1094 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoshow value of PA_SINK_HARDWARE/PA_SOURCE_HARDWARE in pactl
Lennart Poettering [Sun, 16 Jul 2006 17:29:09 +0000 (17:29 +0000)]
show value of PA_SINK_HARDWARE/PA_SOURCE_HARDWARE in pactl

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1093 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoset is_hardware flag for a few hw plugins
Lennart Poettering [Sun, 16 Jul 2006 17:28:41 +0000 (17:28 +0000)]
set is_hardware flag for a few hw plugins

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1092 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd new PA_SOURCE_HARDWARE/PA_SINK_HARDWARE flag
Lennart Poettering [Sun, 16 Jul 2006 17:28:10 +0000 (17:28 +0000)]
add new PA_SOURCE_HARDWARE/PA_SINK_HARDWARE flag

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1091 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd a new boolean variable is_hardware to pa_sink/pa_source to denote wether the...
Lennart Poettering [Sun, 16 Jul 2006 17:26:55 +0000 (17:26 +0000)]
add a new boolean variable is_hardware to pa_sink/pa_source to denote wether the specific device is a hardware device or virtual/software

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1090 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Sat, 15 Jul 2006 12:40:27 +0000 (12:40 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1089 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoimprove latency calculation of NULL sink
Lennart Poettering [Fri, 14 Jul 2006 23:59:42 +0000 (23:59 +0000)]
improve latency calculation of NULL sink

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1088 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Fri, 14 Jul 2006 23:08:14 +0000 (23:08 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1087 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoremove checking for SIGPIPE blocking from client code. Because we use
Lennart Poettering [Fri, 14 Jul 2006 23:06:44 +0000 (23:06 +0000)]
remove checking for SIGPIPE blocking from client code. Because we use
send(,,MSG_NOSIGNAL) for most socket writes now the reason for SIGPIPE blocking
is no longer give. We keep this check for the server side however, because
pipes create SIGPIPE too but cannot be used with MSG_NOSIGNAL. Some modules use
pipes for internal and external communication.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1086 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agodon't send SCM_CREDENTIALS on every sendmsg(), instead do it only on handshake
Lennart Poettering [Fri, 14 Jul 2006 23:00:57 +0000 (23:00 +0000)]
don't send SCM_CREDENTIALS on every sendmsg(), instead do it only on handshake

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1085 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agodon't set MSG_NOSIGNAL for recvmsg(), since it doesn't make sense there
Lennart Poettering [Fri, 14 Jul 2006 23:00:20 +0000 (23:00 +0000)]
don't set MSG_NOSIGNAL for recvmsg(), since it doesn't make sense there

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1084 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agotry to use send(,,MSG_NOSIGNAL) instead of write() wherever possible (which
Lennart Poettering [Fri, 14 Jul 2006 22:42:01 +0000 (22:42 +0000)]
try to use send(,,MSG_NOSIGNAL) instead of write() wherever possible (which
will allow us to drop the SIGPIPE check). Cache the results of the last
write()/send() to make sure that we do not issue more than necessary system
calls.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1083 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoremove vi'ism
Lennart Poettering [Fri, 14 Jul 2006 10:20:57 +0000 (10:20 +0000)]
remove vi'ism

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1082 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoupdate todo
Lennart Poettering [Fri, 14 Jul 2006 10:19:46 +0000 (10:19 +0000)]
update todo

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1081 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoMake sure the win32 default conf gets shipped.
Pierre Ossman [Fri, 14 Jul 2006 10:08:53 +0000 (10:08 +0000)]
Make sure the win32 default conf gets shipped.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1080 fefdeb5f-60dc-0310-8127-8f9354f1896f

18 years agoadd new test get-binary-name-test for testing pa_get_binary_name()
Lennart Poettering [Fri, 14 Jul 2006 00:19:09 +0000 (00:19 +0000)]
add new test get-binary-name-test for testing pa_get_binary_name()

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1079 fefdeb5f-60dc-0310-8127-8f9354f1896f