Chengyi Zhao
7138fa0272
update master
2024-06-25 16:53:15 +08:00
Igor V. Kovalenko
733969ac19
socket-server: Move systemd socket activation code to pulsecore
...
There is no need to support server sockets in client library. Move all related
code and tcp-wrappers dependency to pulsecore library.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/640 >
2021-09-27 01:34:42 +00:00
Chengyi Zhao
1703683def
update upstream-2021-08-15
2021-08-15 02:35:23 +08:00
Patrick Gaskin
6222f610e8
win32: Misc Unix socket fixes
...
* Make pa_parse_address recognize Unix socket addresses with
Windows-style absolute paths.
* Treat WASEINVAL as a stale socket.
* Make HAVE_AF_UNIX in config templates recognize winsock2.h.
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/546 >
2021-06-16 09:05:58 +00:00
Edward Lee
4e5786ffdd
win32: Check WSAGetLastError() in pa_is_unix_socket_stale.
...
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/360 >
2020-12-16 11:05:28 -05:00
Ondrej Holecek
5effc83479
update FSF addresses to FSF web page
...
FSF addresses used in PA sources are no longer valid and rpmlint
generates numerous warnings during packaging because of this.
This patch changes all FSF addresses to FSF web page according to
the GPL how-to: https://www.gnu.org/licenses/gpl-howto.en.html
Done automatically by sed-ing through sources.
2015-01-14 22:20:40 +02:00
Colin Guthrie
467b4b9bee
socket-server: Add support for systemd socket activation.
...
This adds support to module-native-protocol-unix to take over already
listening sockets passed in via socket activation (e.g. from systemd)
Most of the code is isolated to socket-server but some cleanup code also
had to be tweaked to ensure we do not overzealously close open fds.
2014-11-03 12:32:23 +00: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
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
Maarten Bosmans
e8028304b3
win32: Avoid some compiler warnings when cross-compiling for mingw32
...
Autoconf documentation says that AC_FUNC_SELECT_ARGTYPES shouldn't be used anyway.
2011-11-27 16:24:48 +00:00
Maarten Bosmans
5818a2c63e
win32: Make some unused-variable warnings go away
2011-06-24 00:34:05 +01:00
Maarten Bosmans
dd9265ac78
Remove unnecessary #includes
2011-06-22 23:12:20 +01:00
Maarten Bosmans
c470680e1b
Use pulsecore/arpa-inet.h to make arpa/inet.h functionality available
...
Automatically use replacement function on platforms (win32) where not all arpa/inet.h is available natively.
2011-03-19 13:41:05 +01:00
Maarten Bosmans
4f1d4044f8
Use <pulsecore/socket.h> instead of <sys/socket.h>
...
The check whether POSIX socket.h or WIN32 winsock2.h must be included can be
made centrally. The downside is that some functionality of e.g. arpa/inet.h is
also implemented in winsock.h, so that some files that don't use socket
functions, but do use inet.h functions, must also include pulsecore/socket.h.
(as well as arpa/inet.h)
2011-02-17 11:58:21 +01:00
Lennart Poettering
a82c6b0cd5
socket-util: drop redundant casts
2009-10-30 04:55:13 +01:00
Lennart Poettering
75f7a971db
socket-util: allocate at least sizeof(sockaddr_storage) space
2009-10-30 04:54:55 +01:00
Lennart Poettering
65e7bc18a9
use cloexec wrappers wherever applicable
2009-10-30 03:32:38 +01:00
Colin Guthrie
86dee05aec
Use LGPL 2.1 on all files previously using LGPL 2
2009-03-03 20:23:02 +00:00
Iain Hibbert
dc590c7d0a
Optionally disable IPv6
...
Closes #79
2009-02-13 21:58:09 +01:00
Jared D. McNeill
ca6b79141b
It is more portable to assume that SO_RCVBUF/SO_SNDBUF takes and int instead of a size_t
...
Signed-off-by: Lennart Poettering <lennart@poettering.net>
2009-01-22 01:55:21 +01:00
Lennart Poettering
8ae83d618e
get rid of svn $ keywords
2008-06-18 23:23:21 +03:00
Lennart Poettering
30a8800210
add new functions pa_socket_is_local() and pa_socket_address_is_local()
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2532 fefdeb5f-60dc-0310-8127-8f9354f1896f
2008-06-16 18:45:17 +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
df47c7b828
Add a wrapper around close() to work around Windows' ass backwards way of
...
handling sockets.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1429 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-02-14 12:13:49 +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
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