<feed xmlns='http://www.w3.org/2005/Atom'>
<title>paraslash/daemon.c, branch next</title>
<subtitle>paraslash - network audio streaming tools</subtitle>
<id>https://git.tue.mpg.de/cgit/paraslash/atom?h=next</id>
<link rel='self' href='https://git.tue.mpg.de/cgit/paraslash/atom?h=next'/>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/'/>
<updated>2026-05-24T18:52:28Z</updated>
<entry>
<title>Don't discard const qualifier.</title>
<updated>2026-05-24T18:52:28Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2026-05-23T20:38:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=08a519cfe0677260e15883c736e5f4a4bb47d8e9'/>
<id>urn:sha1:08a519cfe0677260e15883c736e5f4a4bb47d8e9</id>
<content type='text'>
gcc-16 rightfully complains as follows:

	daemon.c:66:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
	   66 |         char *p = strchr(arg, ':');

In audiod.c, parse_stream_command() has the same issue, so fix both.
</content>
</entry>
<entry>
<title>Prefer paraslash_version() over PACKAGE_VERSION.</title>
<updated>2026-05-03T19:15:30Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2026-04-28T17:12:59Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=0fcf0ab6852d64d6b9941f850dbdcdcde1b60d1f'/>
<id>urn:sha1:0fcf0ab6852d64d6b9941f850dbdcdcde1b60d1f</id>
<content type='text'>
Currently we use at several places the package version, i.e. the version
that was checked out when the package was configured. The paraslash version
is recomputed every time the package is build, so this is more up-to-date.
So use paraslash_version() everywhere and remove PACKAGE_VERSION.
</content>
</entry>
<entry>
<title>Switch to SPDX identifiers.</title>
<updated>2026-03-17T22:45:43Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2026-03-15T14:57:29Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=ea0cecf96e08c489fdcc94d046019f4ce46f58e2'/>
<id>urn:sha1:ea0cecf96e08c489fdcc94d046019f4ce46f58e2</id>
<content type='text'>
Generated with

	sed -i 's|Copyright.*Andre Noll.*|SPDX-License-Identifier: GPL-2.0 */|g' *.c *.h

followed by manually tweaking the result a bit. No license change intended.
</content>
</entry>
<entry>
<title>Modify para_hostname() to return a static buffer.</title>
<updated>2025-08-07T12:49:36Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2025-07-09T23:54:11Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=51ad4f6ba4d91ffc0c37cf56882a5ac60fea81c3'/>
<id>urn:sha1:51ad4f6ba4d91ffc0c37cf56882a5ac60fea81c3</id>
<content type='text'>
All but one caller immediately free the result after using it. The exception
is daemon.c, which maintains a copy in struct daemon, and leaks it on exit.

All users can trivially be converted to use the new version, which does not
require to free the result.
</content>
</entry>
<entry>
<title>Include regex.h from para.h.</title>
<updated>2025-05-19T17:35:58Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2025-05-18T20:05:45Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=67388cd4fae0cfd1674aada937f4f4d2faeeee1f'/>
<id>urn:sha1:67388cd4fae0cfd1674aada937f4f4d2faeeee1f</id>
<content type='text'>
Every .c file includes it anyway.
</content>
</entry>
<entry>
<title>daemon: Improve documentation of daemon_open_log_or_die().</title>
<updated>2022-09-27T13:29:03Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2022-09-25T21:48:47Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=9252ec77c982331c7f4af81544318e9dd460c1b9'/>
<id>urn:sha1:9252ec77c982331c7f4af81544318e9dd460c1b9</id>
<content type='text'>
This function has no return value, so don't use \return.
</content>
</entry>
<entry>
<title>New audiod command: ll to change the log level at runtime.</title>
<updated>2022-07-02T19:29:17Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2021-10-19T20:19:25Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=27879fbdef3653aa7ba66eda97dc7cd731f2ce26'/>
<id>urn:sha1:27879fbdef3653aa7ba66eda97dc7cd731f2ce26</id>
<content type='text'>
The new public daemon_get_loglevel() is needed in the zero argument
case. Otherwise, the ll command handler parses the argument and calls
daemon_set_loglevel().

The lopsub stanza for the subcommand is stored in a separate file
which is currently only included by the lopsub suite for para_audiod,
but will be included as well by the server suite.

For similar reasons we implement the completer as a generic public
function, i9e_ll_completer(), although it only has one caller in
audioc.c. Another caller follows when the ll server command is added.
</content>
</entry>
<entry>
<title>daemon: Kill get_loglevel_by_name().</title>
<updated>2022-07-02T19:29:17Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2021-10-19T19:44:14Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=58ba5f61771636a39077478e290a130457f1a4df'/>
<id>urn:sha1:58ba5f61771636a39077478e290a130457f1a4df</id>
<content type='text'>
Open-code the logic in daemon_set_log_color_or_die() and get the
values from the new SEVERTIES macro rather than duplicating the
severity list in get_loglevel_by_name().

The SEVERTIES macro will turn out to be handy for the ll subcommands of
para_server and para_audiod which are introduced in subsequent commits.
</content>
</entry>
<entry>
<title>server/audiod: Don't parse loglevel argument unnecessarily.</title>
<updated>2022-07-02T19:29:07Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2021-10-19T19:28:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=a0cd2ac59b891751067512dce77cf6223104932f'/>
<id>urn:sha1:a0cd2ac59b891751067512dce77cf6223104932f</id>
<content type='text'>
Currently the severity string (debug, info, etc.) given to --loglevel
is parsed twice: Once by lopsub, which returns the loglevel as the
index into the array of severity strings. We turn this index into a
string and pass the string to daemon_set_loglevel() which parses the
string again to turn it back into a log level value (which happens
to coincide with the index value).

Clean this up by letting daemon_set_loglevel() receive a log level
value rather than a severity string. This also allows us to remove
the now unused ENUM_STRING_VAL() macro from audiod.c.
</content>
</entry>
<entry>
<title>daemon: Improve documentation of daemon_set_log_color_or_die().</title>
<updated>2021-11-25T20:29:47Z</updated>
<author>
<name>Andre Noll</name>
<email>maan@tuebingen.mpg.de</email>
</author>
<published>2021-10-19T19:36:54Z</published>
<link rel='alternate' type='text/html' href='https://git.tue.mpg.de/cgit/paraslash/commit/?id=9ca668fd7277ef4d330c647cfc5947673e199077'/>
<id>urn:sha1:9ca668fd7277ef4d330c647cfc5947673e199077</id>
<content type='text'>
The function receives a severity string, not a log level number.
</content>
</entry>
</feed>
