summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/core-util.h
Commit message (Collapse)AuthorAgeFilesLines
* alsa-mixer: Get rid of a compiler warning.Tanu Kaskinen2011-03-281-0/+1
| | | | | | | | | | On 64-bit systems LONG_MAX is greater than the largest possible value of a uint32_t variable, which caused the compiler to warn about a comparison that is always false. On 32-bit systems pa_atou() can return a value that will overflow when assigned to e->volume_limit, which has type long, so the comparison was necessary. This dilemma is resolved by using pa_atol() instead of pa_atou().
* Move compile-time checks around pa_run_from_build_tree to core-utilMaarten Bosmans2011-03-241-0/+5
| | | | To make the code cleaner and have the checks all in one place.
* Find modules and config files relative to the installed libraries.Maarten Bosmans2011-03-191-0/+4
| | | | Do not use replace %PULSE_ROOT% from the environment.
* Use <pulsecore/socket.h> instead of <sys/socket.h>Maarten Bosmans2011-02-171-1/+1
| | | | | | | | 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)
* core-util: introduce generic function pa_strip()Lennart Poettering2010-02-211-0/+1
|
* core-util: add call to detect if we are called from within a VMLennart Poettering2009-11-051-0/+3
|
* daemon: make sure pa has its own session and process group, but is not its ↵Lennart Poettering2009-10-311-0/+2
| | | | leader so that we cannot acquire a tty ever
* core-util: introduce pa_fopen_cloexec()Lennart Poettering2009-10-301-0/+1
|
* core-util: introduce FD_CLOEXEC wrappers for open/socket/pipe/acceptLennart Poettering2009-10-301-0/+6
|
* Merge branch 'master' into dbus-workTanu Kaskinen2009-10-021-0/+4
|\ | | | | | | | | Conflicts: src/daemon/daemon-conf.c
| * core-util: unify how we determine the temporary directoryLennart Poettering2009-09-171-0/+2
| |
| * core-util: add api for setting env vars and record them so that we can undo ↵Lennart Poettering2009-09-021-0/+2
| | | | | | | | them n fork
* | Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-workTanu Kaskinen2009-08-241-0/+4
|\| | | | | | | | | Conflicts: src/Makefile.am
| * adjust various data/library paths automatically if we are run from a build treeLennart Poettering2009-08-211-0/+4
| |
* | Merge branch 'master' of git://0pointer.de/pulseaudio into dbus-workTanu Kaskinen2009-08-161-0/+7
|\| | | | | | | | | | | | | | | | | | | Conflicts: src/Makefile.am src/daemon/daemon-conf.c src/daemon/daemon.conf.in src/modules/module-stream-restore.c src/pulse/client-conf.c src/pulsecore/namereg.c
| * core-util: move personality resetting into core-utilLennart Poettering2009-08-121-0/+2
| |
| * core-util: replace remaining fixed size destination string functions by ↵Lennart Poettering2009-08-011-0/+2
| | | | | | | | | | | | | | | | | | | | _malloc() versions This helps portability to GNU/Hurd. Patch originally from Samuel Thibault but modified. Closes ticket #546
| * pipe: replace PIPE_BUF macro pa pa_pipe_buf callLennart Poettering2009-08-011-0/+3
| | | | | | | | | | | | | | This should help portability to platforms that lack PIPE_BUF. Based on a patch from Samuel Thibault. See ticket #546
* | Finish the Core dbus interface.Tanu Kaskinen2009-07-211-0/+7
|/
* core: use rtkit to acquire high-priority schedulingLennart Poettering2009-06-191-3/+0
|
* core-util: implement pa_maybe_prefix_path()Lennart Poettering2009-06-171-0/+2
|
* core-util: implement pa_split_spaces_strv()Lennart Poettering2009-06-171-0/+2
|
* core-util: implement pa_xstrfreev()Lennart Poettering2009-06-171-0/+6
|
* core-util: introduce pa_disable_sigpipe()Lennart Poettering2009-05-261-0/+2
|
* core-util: introduce pa_get_host_name_malloc() and pa_get_user_name_malloc()Lennart Poettering2009-04-291-0/+3
|
* core-util: add pa_session_id()Lennart Poettering2009-04-131-0/+1
|
* introduce pa_realpath()Lennart Poettering2009-02-181-0/+2
|
* export pa_match()Lennart Poettering2009-02-181-0/+2
|
* add new calls pa_replace() and pa_unescape()Lennart Poettering2009-02-041-0/+4
|
* add API pa_ncpus()Lennart Poettering2009-01-221-0/+2
|
* add new function pa_strnaLennart Poettering2009-01-221-1/+4
|
* build: fix few warningsMarc-André Lureau2009-01-131-0/+1
|
* Add new pa_reduce() and pa_gcd() functionsLennart Poettering2009-01-101-0/+3
|
* add new API function pa_in_valgrind() to check forLennart Poettering2008-10-041-0/+13
|
* include build and runtime host information in debug outputLennart Poettering2008-09-051-0/+1
|
* rework pa_ulog2 and base it on __builtin_clz if available, make ↵Lennart Poettering2008-08-291-15/+21
| | | | pa_make_power_of_two based on it
* add a few more gcc warning flags and fix quite a few problems found by doing soLennart Poettering2008-08-191-2/+2
|
* Modify pa_state_path() to take an additional argument for prepending the ↵Lennart Poettering2008-08-071-1/+1
| | | | machine id to the file name.
* add new function pa_machine_id()Lennart Poettering2008-08-071-0/+2
|
* get rid of svn $ keywordsLennart Poettering2008-06-181-2/+0
|
* replace pa_atof() by pa_atod() because floats are lameLennart Poettering2008-06-111-1/+1
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2506 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new functions pa_state_path()/pa_get_state_dir(), change return value of ↵Lennart Poettering2008-05-211-2/+8
| | | | | | pa_startswith()/pa_endswith() pa_bool, add pa_in_system_mode() and pa_streq(); alow pa_unlock_lockfile() without file name spec git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2470 fefdeb5f-60dc-0310-8127-8f9354f1896f
* merge glitch-free branch back into trunkLennart Poettering2008-05-151-4/+55
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2445 fefdeb5f-60dc-0310-8127-8f9354f1896f
* make rtprio and nice level actually configurableLennart Poettering2007-11-011-2/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2014 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new function pa_yes_no()Lennart Poettering2007-11-011-0/+5
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2005 fefdeb5f-60dc-0310-8127-8f9354f1896f
* add new pa_readlink() APILennart Poettering2007-10-291-0/+2
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1974 fefdeb5f-60dc-0310-8127-8f9354f1896f
* merge 'lennart' branch back into trunk.Lennart Poettering2007-10-281-7/+37
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Add a wrapper around close() to work around Windows' ass backwards way ofPierre Ossman2007-02-141-1/+3
| | | | | | | handling sockets. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1429 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Add copyright notices to all relevant files. (based on svn log)Pierre Ossman2007-02-131-0/+3
| | | | git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1426 fefdeb5f-60dc-0310-8127-8f9354f1896f
* Huge trailing whitespace cleanup. Let's keep the tree pure from here on,Pierre Ossman2007-01-041-3/+3
| | | | | | | mmmkay? git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1418 fefdeb5f-60dc-0310-8127-8f9354f1896f