]> git.tue.mpg.de Git - paraslash.git/log
paraslash.git
17 years agofix client args info memory leak
Andre Noll [Tue, 13 Feb 2007 18:25:17 +0000 (19:25 +0100)]
fix client args info memory leak

17 years agofilter_chain.c, recv_common.c: Fix another memory leak
Andre Noll [Sun, 11 Feb 2007 23:18:14 +0000 (00:18 +0100)]
filter_chain.c, recv_common.c: Fix another memory leak

There was still one leak left: argv[0] gets strdupped, but never freed.

17 years agodccp_recv.c: Fix memory leak in dccp_recv_open()
Andre Noll [Sun, 11 Feb 2007 23:11:09 +0000 (00:11 +0100)]
dccp_recv.c: Fix memory leak in dccp_recv_open()

Missing freeaddrinfo().

17 years agoaudiod.c: fix memory leak in audiod_status_dump()
Andre Noll [Sun, 11 Feb 2007 23:03:25 +0000 (00:03 +0100)]
audiod.c: fix memory leak in audiod_status_dump()

missing free() for decoder flags. Quite serious: We leaked some bytes on each
status change.

17 years agofilter_chain(): Fix memory leak in parse_filter_args
Andre Noll [Sun, 11 Feb 2007 22:47:57 +0000 (23:47 +0100)]
filter_chain(): Fix memory leak in parse_filter_args

Same bug as in parse_receiver_args(): argv must be freed (see previous patch).

17 years agorecv_common: fix memory leak and invalid free in error path
Andre Noll [Sun, 11 Feb 2007 22:45:52 +0000 (23:45 +0100)]
recv_common: fix memory leak and invalid free in error path

As split_args() returns pointers that point within the given string,
it is wrong to free the individual pieces. However, the array of
substrings must be freed. parse_receiver_args() got both of these
wrong :(

17 years agocosmetics
Andre Noll [Sun, 11 Feb 2007 22:41:36 +0000 (23:41 +0100)]
cosmetics

17 years agocrypt.c: fix memory leak in para_decrypt_buffer()
Andre Noll [Sun, 11 Feb 2007 22:11:28 +0000 (23:11 +0100)]
crypt.c: fix memory leak in para_decrypt_buffer()

The client side had more or less the same memory leak as the server side:
The rsa structure wasn't freed.

17 years agofix a memory leak in the RSA key handling
Andre Noll [Sun, 11 Feb 2007 21:37:49 +0000 (22:37 +0100)]
fix a memory leak in the RSA key handling

RSA keys must be freed by using openssl's RSA_free() rather than the
usual free(). This leak turns out to be more serious as the amount
of leaked memory increased by about 300 bytes every time para_server
reread the user list (i.e. the hup command was executed or para_server
received SIGHUP).

17 years agouser_list.c: Fix a memory leak
Andre Noll [Sun, 11 Feb 2007 21:09:06 +0000 (22:09 +0100)]
user_list.c: Fix a memory leak

get_rsa_key() already allocates space for the rsa key pointer. Moreover,
u->perms was set to zero twice. Kill one instance.

17 years agosimplify lookup_user()
Andre Noll [Sun, 11 Feb 2007 20:57:49 +0000 (21:57 +0100)]
simplify lookup_user()

It's easier to just pass the name of the user to be looked up. This
fixes a memory leak btw. because u.name was strdupped and never freed.
That leak wasn't serious though as is happened in the child process.

17 years agolist.h, ortp.h: Add missing documentation
Andre Noll [Sun, 11 Feb 2007 19:29:15 +0000 (20:29 +0100)]
list.h, ortp.h: Add missing documentation

17 years agomysql_selector.c: Fix mbox command
Andre Noll [Sun, 11 Feb 2007 19:28:40 +0000 (20:28 +0100)]
mysql_selector.c: Fix mbox command

An additional space crept in.

17 years agopara.h fix a typo
Andre Noll [Sun, 11 Feb 2007 19:27:01 +0000 (20:27 +0100)]
para.h fix a typo

17 years agoREADME: minor cleanups
Andre Noll [Sun, 11 Feb 2007 19:26:28 +0000 (20:26 +0100)]
README: minor cleanups

17 years agoadd para.h to the files used by doxygen
Andre Noll [Sun, 11 Feb 2007 19:25:42 +0000 (20:25 +0100)]
add para.h to the files used by doxygen

17 years agomove gui-related symbols from para.h to new gui.h
Andre Noll [Sun, 11 Feb 2007 18:09:36 +0000 (19:09 +0100)]
move gui-related symbols from para.h to new gui.h

17 years agomore doxygen docu, some small cleanups
Andre Noll [Sun, 11 Feb 2007 18:00:57 +0000 (19:00 +0100)]
more doxygen docu, some small cleanups

17 years agopara.h: Add documentation of PARA_MAX, PARA_MIN, PARA_ABS
Andre Noll [Sun, 11 Feb 2007 16:54:30 +0000 (17:54 +0100)]
para.h: Add documentation of PARA_MAX, PARA_MIN, PARA_ABS

17 years agokill STRINGSIZE macro
Andre Noll [Sun, 11 Feb 2007 16:49:50 +0000 (17:49 +0100)]
kill STRINGSIZE macro

It's kind of silly. Just open code the desired value.

17 years agoplaylist_selector.c, random_selector.c: make update_audio_file() static
Andre Noll [Sun, 11 Feb 2007 16:19:29 +0000 (17:19 +0100)]
playlist_selector.c, random_selector.c: make update_audio_file() static

17 years agocommand_util.sh: Make it read the function prototype from the source file
Andre Noll [Sun, 11 Feb 2007 16:06:46 +0000 (17:06 +0100)]
command_util.sh: Make it read the function prototype from the source file

This is much cleaner as the commands differ by gcc attribute usage,
e.g. __a_unused.  But it also means that in the source code

(a) the opening bracket for the function body must not be on
the same line (com_hist got this wrong),

(b) for all command handlers, the parameters must be called
fd, argc and argv,

(c) If a command handler uses __noreturn, that attribute must
be the first word, see audiod's com_term().

So change the few occasions where this was not the case.

17 years agocompress.c, wav.c: add documentation
Andre Noll [Sun, 11 Feb 2007 15:08:09 +0000 (16:08 +0100)]
compress.c, wav.c: add documentation

17 years agoMerge /home/maan/scm/paraslash_fml/paraslash
Andre Noll [Sat, 10 Feb 2007 19:02:04 +0000 (20:02 +0100)]
Merge /home/maan/scm/paraslash_fml/paraslash

17 years agoadd more missing documentation
Andre Noll [Sat, 10 Feb 2007 18:54:26 +0000 (19:54 +0100)]
add more missing documentation

17 years agodon't set the initial_delay_barrier if time diff is unreliable
Andre Noll [Thu, 8 Feb 2007 09:41:33 +0000 (10:41 +0100)]
don't set the initial_delay_barrier if time diff is unreliable

17 years agoMerge /fml/ag-raetsch/home/maan/scm/paraslash_meins/paraslash/
Andre Noll [Tue, 6 Feb 2007 08:46:24 +0000 (09:46 +0100)]
Merge /fml/ag-raetsch/home/maan/scm/paraslash_meins/paraslash/

Conflicts:

Makefile.in

17 years agoaudiod: Add missing documentation
Andre Noll [Mon, 5 Feb 2007 23:13:22 +0000 (00:13 +0100)]
audiod: Add missing documentation

17 years agoalsa_write.c: Add missing documentation
Andre Noll [Mon, 5 Feb 2007 22:31:43 +0000 (23:31 +0100)]
alsa_write.c: Add missing documentation

17 years agoaudiod.c: Kill unused variable pcd
Andre Noll [Mon, 5 Feb 2007 22:19:09 +0000 (23:19 +0100)]
audiod.c: Kill unused variable pcd

17 years agoaudiod.h: Kill unused struct audiod_task
Andre Noll [Mon, 5 Feb 2007 22:18:07 +0000 (23:18 +0100)]
audiod.h: Kill unused struct audiod_task

The audiod task is an ordinary struct task.

17 years agofade.c: [trivial] whitespace cleanup
Andre Noll [Mon, 5 Feb 2007 21:30:48 +0000 (22:30 +0100)]
fade.c: [trivial] whitespace cleanup

17 years agosdl_gui.ggo: Kill duplicate authorship info
Andre Noll [Mon, 5 Feb 2007 21:28:36 +0000 (22:28 +0100)]
sdl_gui.ggo: Kill duplicate authorship info

This info is already provided by the HANDLE_VERSION_FLAG macro

17 years agogui.c: make command pipe a nonblocking fd
Andre Noll [Mon, 5 Feb 2007 21:22:52 +0000 (22:22 +0100)]
gui.c: make command pipe a nonblocking fd

17 years agoaudiod.c: [trivial] move close_stat_pipe() closer to its callers
Andre Noll [Mon, 5 Feb 2007 20:55:24 +0000 (21:55 +0100)]
audiod.c: [trivial] move close_stat_pipe() closer to its callers

17 years agoaudiod: kill handle_signal()
Andre Noll [Mon, 5 Feb 2007 20:44:01 +0000 (21:44 +0100)]
audiod: kill handle_signal()

It was only called from singal_event_handler(), so move the code there.
Also, remove the redundant check for t->ret != -E_SIGNAL_CAUGHT which
can never happen.

17 years agoaudiod: fix mode cycling
Andre Noll [Mon, 5 Feb 2007 20:29:02 +0000 (21:29 +0100)]
audiod: fix mode cycling

This was quite buggy all the time, but wasn't noticed due to the typo bug
which was fixed in 1b46ae4193cddb7d589b0f2f7d8158b84f7e9f6d.

Now, the status task no longer has an event handler as both its pre_select
and its post_select functions always succeed and the status task is supposed
to never terminate. Unlike the client task whose event handler now does all
the cleanup if the connection to para_server breaks down for whatever reason.

17 years agoclient_common.c: invalidate the private client data pointer on errors.
Andre Noll [Mon, 5 Feb 2007 20:22:22 +0000 (21:22 +0100)]
client_common.c: invalidate the private client data pointer on errors.

Not really neccessary, but clean.

17 years agouse own version handler for all commands.
Andre Noll [Sun, 4 Feb 2007 19:19:21 +0000 (20:19 +0100)]
use own version handler for all commands.

This makes the man pages generated by help2man look much nicer.

17 years agoclient: combine client_open() and client_parse_config()
Andre Noll [Sun, 4 Feb 2007 17:55:12 +0000 (18:55 +0100)]
client: combine client_open() and client_parse_config()

Both users (client.c and audiod.c) called client_open() right
after calling client_parse_config(), so call client_open() from
client_parse_config() and make client_open() static.

While we're at it, rename client_open() to client_connect() as this
is what the function does. Also rename client_parse_config() to
client_open() and change audiod.c and client.c to call client_open()
instead of client_parse_config().

This patch fixes a segfault in para_client was it was run without
specifying a command. In this case, the private client data struct
was used by para_log after being freed -- Ouch. Fortunately, this
bug didn't affect para_audiod as it never calls these functions with
no command.

Another bug due to a typo in client_close() is also fixed. This code
needs closer investigation and lacks documentation btw.

17 years agopara.h: Kill unused LICESE macro
Andre Noll [Sun, 4 Feb 2007 15:06:44 +0000 (16:06 +0100)]
para.h: Kill unused LICESE macro

17 years agoMerge ../paraslash_meins/paraslash
Andre Noll [Fri, 2 Feb 2007 08:31:40 +0000 (09:31 +0100)]
Merge ../paraslash_meins/paraslash

17 years agofix typo in FEATURES
Andre Noll [Thu, 1 Feb 2007 23:33:25 +0000 (00:33 +0100)]
fix typo in FEATURES

17 years agostring.c: Add missing \return in documentation
Andre Noll [Thu, 1 Feb 2007 23:31:40 +0000 (00:31 +0100)]
string.c: Add missing \return in documentation

17 years agonew feature list, merge of README and FEATURES
Andre Noll [Thu, 1 Feb 2007 23:16:52 +0000 (00:16 +0100)]
new feature list, merge of README and FEATURES

README and FEATURES contained quite some overlap, so merge them
into a single document (README) and change FEATURES to contain only
a bullet list.

17 years agoremove old server and audiod screenshots
Andre Noll [Thu, 1 Feb 2007 21:20:20 +0000 (22:20 +0100)]
remove old server and audiod screenshots

17 years agoupdate para_server and para_audiod "screenshots"
Andre Noll [Thu, 1 Feb 2007 21:19:29 +0000 (22:19 +0100)]
update para_server and para_audiod "screenshots"

use current versions of the startup log messages.

17 years agooverview.sk: Update to 0.2.15
Andre Noll [Thu, 1 Feb 2007 20:52:36 +0000 (21:52 +0100)]
overview.sk: Update to 0.2.15

audiod does not fork and exec anymore for quite some time now.

17 years agomove s_a_r() and s_a_r_list() from string.c to mysql_selector.c
Andre Noll [Thu, 1 Feb 2007 20:03:03 +0000 (21:03 +0100)]
move s_a_r() and s_a_r_list() from string.c to mysql_selector.c

And make them static as they are only used in mysql_selector.c.

This reduces the stripped code size of all executables (except
para_server of course) by about 1K.

17 years agostring.c: Documentation update
Andre Noll [Thu, 1 Feb 2007 19:43:30 +0000 (20:43 +0100)]
string.c: Documentation update

- Add documentation of return value to all functions.
- Replace \a by \p which looks nicer in the html output.
- Clarify s_a_r documentation

17 years agoMerge ../paraslash_meins/paraslash
Andre Noll [Wed, 31 Jan 2007 10:44:50 +0000 (11:44 +0100)]
Merge ../paraslash_meins/paraslash

17 years agomake man dirs before calling help2man and friends
Andre Noll [Wed, 31 Jan 2007 10:44:46 +0000 (11:44 +0100)]
make man dirs before calling help2man and friends

Also, make sure we call help2man on the executables in the
current dir.

17 years agoMerge ../paraslash.fml/paraslash
Andre Noll [Tue, 30 Jan 2007 18:31:33 +0000 (19:31 +0100)]
Merge ../paraslash.fml/paraslash

17 years agoclarify documentation of mysql_selector_init()
Andre Noll [Mon, 29 Jan 2007 22:59:09 +0000 (23:59 +0100)]
clarify documentation of mysql_selector_init()

17 years agomysql_selector.c: free(NULL) is OK.
Andre Noll [Mon, 29 Jan 2007 22:47:37 +0000 (23:47 +0100)]
mysql_selector.c: free(NULL) is OK.

No need to check for NULL. Moreover, stream, meta, atts and dir are
set in any case so kill the NULL initialization.

17 years agoMakefile.in: minor cleanups
Andre Noll [Mon, 29 Jan 2007 22:37:31 +0000 (23:37 +0100)]
Makefile.in: minor cleanups

move target para_recv down and kill unneccessary -o option for the
mysql_selector.o target.

17 years agocheck_writer_arg(): change writer arg to const char *
Andre Noll [Mon, 29 Jan 2007 22:29:31 +0000 (23:29 +0100)]
check_writer_arg(): change writer arg to const char *

17 years agomake osx_write_parse_config() static and change arg to const char*
Andre Noll [Mon, 29 Jan 2007 22:27:40 +0000 (23:27 +0100)]
make osx_write_parse_config() static and change arg to const char*

17 years agoserver.ggo: make the documentation match the parameter name
Andre Noll [Mon, 29 Jan 2007 22:19:02 +0000 (23:19 +0100)]
server.ggo: make the documentation match the parameter name

The parameter is called 'name', but in the documentation it was refered to
as 'username'. Similar with 'groupname'.

17 years agofile_write.c: make file_write_parse_config() static and change arg to const char*
Andre Noll [Mon, 29 Jan 2007 22:16:36 +0000 (23:16 +0100)]
file_write.c: make file_write_parse_config() static and change arg to const char*

Same comment as for the previous patch to alsa_write.c applies.

17 years agoalsa_write.c: make alsa_parse_config() static and change parameter to const
Andre Noll [Mon, 29 Jan 2007 22:12:00 +0000 (23:12 +0100)]
alsa_write.c: make alsa_parse_config() static and change parameter to const

alsa_cmdline_parser_string() which is generated by gengetopt takes a const
char *.

17 years agochange email address from tu-darmstadt to systemlinux.org
Andre Noll [Mon, 29 Jan 2007 20:57:45 +0000 (21:57 +0100)]
change email address from tu-darmstadt to systemlinux.org

17 years agoalsa_write.c: fix compiler warning on x86_64.
Andre Noll [Mon, 29 Jan 2007 09:14:37 +0000 (10:14 +0100)]
alsa_write.c: fix compiler warning on x86_64.

Simple %d -> %zd format string mismatch.

17 years agoMerge ../paraslash.meins/paraslash
Andre Noll [Mon, 29 Jan 2007 08:56:07 +0000 (09:56 +0100)]
Merge ../paraslash.meins/paraslash

17 years agoNEWS update
Andre [Sun, 28 Jan 2007 22:47:01 +0000 (23:47 +0100)]
NEWS update

17 years agocommand.c: remove an unused variable
Andre [Sun, 28 Jan 2007 22:28:56 +0000 (23:28 +0100)]
command.c: remove an unused variable

17 years agocommand.c: add documentation of handle_connect()
Andre [Sun, 28 Jan 2007 22:26:10 +0000 (23:26 +0100)]
command.c: add documentation of handle_connect()

17 years agomake another function of command.c static
Andre [Sun, 28 Jan 2007 21:31:49 +0000 (22:31 +0100)]
make another function of command.c static

17 years agocommand.c: make two functions static
Andre [Sun, 28 Jan 2007 21:29:27 +0000 (22:29 +0100)]
command.c: make two functions static

17 years agorename "synopsis" to "usage".
Andre [Sun, 28 Jan 2007 21:27:46 +0000 (22:27 +0100)]
rename "synopsis" to "usage".

17 years agocommand.c help: nicify help output
Andre [Sun, 28 Jan 2007 21:12:36 +0000 (22:12 +0100)]
command.c help: nicify help output

17 years agoserver.cmd: update hup help text
Andre [Sun, 28 Jan 2007 21:11:57 +0000 (22:11 +0100)]
server.cmd: update hup help text

17 years agovss_status_tohuman(): change permission status flags
Andre [Sat, 27 Jan 2007 15:09:35 +0000 (16:09 +0100)]
vss_status_tohuman(): change permission status flags

d (dbtool) -> a (audio file selector)
a (audio file sender) -> v (virtual streaming system)

17 years agoadd links to all man pages to documentation web site
Andre [Sat, 27 Jan 2007 13:36:28 +0000 (14:36 +0100)]
add links to all man pages to documentation web site

17 years agoMakefile.in: Always make man pages of each binary, supported or not.
Andre [Sat, 27 Jan 2007 13:35:46 +0000 (14:35 +0100)]
Makefile.in: Always make man pages of each binary, supported or not.

17 years agoMakefile.in: use man pages generated by command_util.sh for tarball
Andre [Sat, 27 Jan 2007 12:37:50 +0000 (13:37 +0100)]
Makefile.in: use man pages generated by command_util.sh for tarball

17 years agoMakefile.in: More trivial cleanups
Andre [Sat, 27 Jan 2007 11:49:13 +0000 (12:49 +0100)]
Makefile.in: More trivial cleanups

17 years agoMakefile.in: Kill unused TGZ_PREFIX
Andre [Sat, 27 Jan 2007 11:45:55 +0000 (12:45 +0100)]
Makefile.in: Kill unused TGZ_PREFIX

17 years agoMakefile.in: trivial cleanups
Andre [Sat, 27 Jan 2007 11:42:39 +0000 (12:42 +0100)]
Makefile.in: trivial cleanups

17 years agoMakefile.in: Add target man
Andre [Sat, 27 Jan 2007 11:37:29 +0000 (12:37 +0100)]
Makefile.in: Add target man

17 years agoMakefile.in: Kill Changelog target
Andre [Sat, 27 Jan 2007 10:56:30 +0000 (11:56 +0100)]
Makefile.in: Kill Changelog target

It's unused for ages.

17 years agoMakefile.in: add targets for man page generation
Andre [Sat, 27 Jan 2007 10:47:41 +0000 (11:47 +0100)]
Makefile.in: add targets for man page generation

17 years agoaudiod.cmd: add SN tag
Andre [Sat, 27 Jan 2007 10:33:44 +0000 (11:33 +0100)]
audiod.cmd: add SN tag

17 years agosimplify com_man() of command_util.sh
Andre [Sat, 27 Jan 2007 10:33:08 +0000 (11:33 +0100)]
simplify com_man() of command_util.sh

17 years agoadd SN tag to *_selector.cmd
Andre [Sat, 27 Jan 2007 10:31:28 +0000 (11:31 +0100)]
add SN tag to *_selector.cmd

17 years agoserver.cmd: add SN tag and fix some typos
Andre [Thu, 25 Jan 2007 19:57:03 +0000 (20:57 +0100)]
server.cmd: add SN tag and fix some typos

17 years agocommand_util.sh: improve man page generation
Andre [Thu, 25 Jan 2007 19:56:34 +0000 (20:56 +0100)]
command_util.sh: improve man page generation

Read the global tag SN (section name) and output simple *roff text.

17 years agocommand_util.sh: Make sure the "handler" pointer is NULL if a line handler exists.
Andre [Sun, 21 Jan 2007 21:11:10 +0000 (22:11 +0100)]
command_util.sh: Make sure the "handler" pointer is NULL if a line handler exists.

This becomes neccessary because the array of commands is no longer static,
i.e. the standard does not guarantee that uninitialized members are zeroed out.

17 years agonuke the AN (array name) header field
Andre [Sun, 21 Jan 2007 21:00:37 +0000 (22:00 +0100)]
nuke the AN (array name) header field

The previous patches changed that name to ${file_name%command_list}cmds,
so it is a derived string that does not need to be specified any more.

17 years agorename audiod command array from cmds to audiod_cmds
Andre [Sun, 21 Jan 2007 20:54:37 +0000 (21:54 +0100)]
rename audiod command array from cmds to audiod_cmds

17 years agorename mysql selector command array from cmds to mysql_selector_cmds
Andre [Sun, 21 Jan 2007 20:50:49 +0000 (21:50 +0100)]
rename mysql selector command array from cmds to mysql_selector_cmds

17 years agorename server command array from cmd_struct to server_cmds
Andre [Sun, 21 Jan 2007 20:48:19 +0000 (21:48 +0100)]
rename server command array from cmd_struct to server_cmds

17 years agoswitch to a single rule for all command lists
Andre [Sun, 21 Jan 2007 20:17:28 +0000 (21:17 +0100)]
switch to a single rule for all command lists

17 years agocommand_util.sh: rename proto to header and array to c_file
Andre [Sun, 21 Jan 2007 19:02:21 +0000 (20:02 +0100)]
command_util.sh: rename proto to header and array to c_file

17 years agomove header include info from Makefile.in to *.cmd
Andre [Sun, 21 Jan 2007 18:51:33 +0000 (19:51 +0100)]
move header include info from Makefile.in to *.cmd

17 years agomake audiod use command_util.sh
Andre [Sat, 20 Jan 2007 21:03:56 +0000 (22:03 +0100)]
make audiod use command_util.sh

17 years agomake the playlist selector use command_util.sh
Andre [Sat, 20 Jan 2007 18:11:36 +0000 (19:11 +0100)]
make the playlist selector use command_util.sh

Also, add random_selector.cmd which should have been includes already in the
previous patch.

17 years agomake the random selector use command_util.sh
Andre [Sat, 20 Jan 2007 18:00:32 +0000 (19:00 +0100)]
make the random selector use command_util.sh

17 years agomake the mysql_selector use command_util.sh
Andre [Sat, 20 Jan 2007 17:38:54 +0000 (18:38 +0100)]
make the mysql_selector use command_util.sh

17 years agopara_server: switch to generated command list
Andre [Fri, 19 Jan 2007 19:39:50 +0000 (20:39 +0100)]
para_server: switch to generated command list