Tanu Kaskinen
34fa29bd06
Revert "conf-parser: Remove redundant feof() call"
...
This reverts commit 6733caf114 .
Apparently, the EOF bit gets set only after there has been an attempt
to read more data than the file contains, so just reading the last
byte isn't sufficient.
2013-03-23 08:38:43 +02:00
Tanu Kaskinen
6733caf114
conf-parser: Remove redundant feof() call
...
fgets() returns NULL in case there's an error or f is at EOF. The
while condition just checked that f is not at EOF, therefore an error
must have happened.
2013-03-22 21:14:08 +02:00
poljar (Damir Jelić)
e9fd829877
conf-parser: Initialize the state to zero immediately.
...
Set the state variable immediately to zero so if we fail to open the
configuration file we don't check an uninitialized pointer and free an
nonexistent proplist.
2012-06-30 10:53:15 +03:00
Tanu Kaskinen
d3bced8bee
conf-parser: Add support for parsing property lists.
2012-06-29 13:23:07 +03:00
Tanu Kaskinen
7449f6d9e5
conf-parser: Pass parser state in a struct also for parse callbacks.
...
As suggested by Maarten Bosmans:
http://article.gmane.org/gmane.comp.audio.pulseaudio.general/12079
2012-06-29 13:23:07 +03:00
Tanu Kaskinen
9a1647500c
conf-parser: Pass parser state in a struct instead of function parameters.
...
I don't like long function parameter lists, and I plan to
add some more state data to the parser which would make the
parameter lists even longer without this refactoring.
2012-06-29 13:20:05 +03:00
Lennart Poettering
0c7c9653b1
conf-parser: make use of pa_strip() wherever applicable
2010-02-21 22:00:16 +01:00
Lennart Poettering
168be3830a
use pa_fopen_cloexec() where applicable
2009-10-30 04:54:19 +01:00
Lennart Poettering
1516b7c047
conf-parser: properly initialize variable we free() later (llvm-clang-analyzer)
2009-09-08 23:51:39 +02:00
Lennart Poettering
8998cba683
conf: add pa_config_parse_not_bool() for parsing inverse boolean configuration options
2009-08-12 20:14:31 +02:00
Lennart Poettering
7de7b012fd
conf-parse: implement .include directive
2009-06-17 03:11:47 +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
194d8991d7
make sure we don't choke on overly long lines in .desktop files
2009-02-21 23:47:08 +01:00
Lennart Poettering
d6201cfc3a
parse ini-style sections properly
2009-02-05 04:11:26 +01:00
Lennart Poettering
d4c6342032
add pa_config_parse_unsigned()
2008-10-21 18:38:55 +02:00
Lennart Poettering
79ad4e63f6
Make the shared memory segment size configurable
...
This is useful only on systems where memory overcommit is not available
or disabled.
2008-10-01 01:14:36 +02:00
Lennart Poettering
432b4e5f7d
don't use PA_GCC_UNUSED anymore
2008-08-09 16:20:29 +02:00
Lennart Poettering
8ae83d618e
get rid of svn $ keywords
2008-06-18 23:23:21 +03:00
Lennart Poettering
b343497d64
make the bool config parser actually parse bools
...
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2007 fefdeb5f-60dc-0310-8127-8f9354f1896f
2007-11-01 00:31:59 +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
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