paraslash.git
10 years agoflacdec: Avoid busy loop.
Andre Noll [Tue, 3 Sep 2013 22:55:21 +0000 (22:55 +0000)]
flacdec: Avoid busy loop.

May happen when the last frame of a stream is incomplete.

10 years agoflacdec: Fix mono output.
Andre Noll [Tue, 3 Sep 2013 22:13:41 +0000 (22:13 +0000)]
flacdec: Fix mono output.

In the write callback of the flac decoder we correctly allocate and
fill an output buffer of n * 2 bytes for mono streams, where n is the
block size stored in the frame header. However, later in this function
twice as many bytes are added to the buffer tree. This may result in
a segmentation fault due to reading beyond the allocated buffer.

Fix this by adding n * channels * 2 bytes, which is correct for both
mono and stereo files.

10 years agoflacdec: Avoid declaration after statement.
Andre Noll [Mon, 22 Jul 2013 23:19:52 +0000 (01:19 +0200)]
flacdec: Avoid declaration after statement.

Fixes

flacdec_filter.c:243:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

10 years agoflacdec: Improve documentation of unconsumed.
Andre Noll [Tue, 3 Sep 2013 22:13:21 +0000 (22:13 +0000)]
flacdec: Improve documentation of unconsumed.

Mention that this variable stores the number of unconsumed
bytes *that have already been fed* to the decoder.

10 years agofd.c: Fix bad English in comment.
Andre Noll [Tue, 3 Sep 2013 22:19:57 +0000 (22:19 +0000)]
fd.c: Fix bad English in comment.

Don't say that a return value is returned.

10 years agoMerge branch 't/buffer_tree_improvements'
Andre Noll [Sun, 27 Oct 2013 08:37:44 +0000 (09:37 +0100)]
Merge branch 't/buffer_tree_improvements'

Was cooking for about a month.

bcea04 btr: Simplify btr_node_status().
072391 buffer_tree: Improve btr_splice_out_node().

10 years agoMerge branch 't/fork-safe-prng'
Andre Noll [Sun, 13 Oct 2013 14:01:40 +0000 (16:01 +0200)]
Merge branch 't/fork-safe-prng'

Was cooking for two weeks.

a496f5 crypt: Add workaround for non-fork-safe PRGs.

10 years agomood: Deduplicate score formula.
Andre Noll [Wed, 4 Sep 2013 20:14:12 +0000 (20:14 +0000)]
mood: Deduplicate score formula.

mood.c computes the score of an audio file from its subscores (mood,
last_played, num_played) at two locations, both of which use the same
formula (a + b + c) / 3.

Get rid of this duplication by doing the calculation only once in
compute_dynamic_score(). Rename this function to compute_score() as
it now includes the (static) mood score as well.

10 years agomood: Combine compute_num_played_score() and compute_last_played_score().
Andre Noll [Wed, 4 Sep 2013 19:26:46 +0000 (19:26 +0000)]
mood: Combine compute_num_played_score() and compute_last_played_score().

These two functions have only one caller, compute_dynamic_score(), which
just adds the two return values. Let's combine all three functions to a
single one.

10 years agomood: Don't open-code compute_dynamic_score().
Andre Noll [Wed, 4 Sep 2013 19:24:15 +0000 (19:24 +0000)]
mood: Don't open-code compute_dynamic_score().

compute_dynamic_score() adds the two values for the numplayed and the
lasteplayed score. No need to duplicate this code here.

10 years agomood: Don't add files without valid information to the score table.
Andre Noll [Wed, 4 Sep 2013 19:18:59 +0000 (19:18 +0000)]
mood: Don't add files without valid information to the score table.

Currently if get_afsi_of_row() fails, we add the file to the score
list anyway. This function should never fail, and if it does, we are
in serious trouble anyway and should return the proper error code
rather than success.

10 years agomood: Simplify compute_dynamic_score().
Andre Noll [Wed, 24 Jul 2013 22:43:28 +0000 (00:43 +0200)]
mood: Simplify compute_dynamic_score().

Never use one housekeeping variable when you could just as easily
use two or three. - Roedy Green: How To Write Unmaintainable Code

10 years agomood.c: Remove unused int_log2().
Andre Noll [Wed, 24 Jul 2013 22:45:17 +0000 (00:45 +0200)]
mood.c: Remove unused int_log2().

This function was commented out for six years.

10 years agoMerge branch 't/audiod_cleanups'
Andre Noll [Sun, 6 Oct 2013 16:05:27 +0000 (18:05 +0200)]
Merge branch 't/audiod_cleanups'

Was cooking for ~2 weeks

1ff4b2 audiod: Don't compute stat info unnecessarily.
d80f5d audiod: Force status dump every 5 seconds.
e34e5f audiod: Improve status timeout handling.
fe7442 audiod: Reorder exit log messages a bit.
32a078 audiod: Fix memory leak on exit: stat client.
706778 audiod: Fix memory leak on exit: gengetopt.
eec23a audiod: Fix memory leak on exit: close slots.
cd5f0a audiod: Unify startup messages of receivers, filters and writers.
597966 audiod: Print a warning if filters are ignored.
a94e8e audiod: Remove pointless continue statement in com_stat().
f45bc6 audiod: Make command array static.
c96792 audiod: Fix error message on status errors.

10 years agobuild: Fix --with-opus-libs.
Andre Noll [Sat, 28 Sep 2013 14:27:56 +0000 (16:27 +0200)]
build: Fix --with-opus-libs.

Due to a silly cut & paste bug this option sets $speex_libs rather
than $opus_libs. Since the assignment comes after speex detection,
the option is effectively a no-op.

10 years agobtr: Simplify btr_node_status().
Andre Noll [Sat, 30 Mar 2013 21:30:54 +0000 (21:30 +0000)]
btr: Simplify btr_node_status().

This changes btr_node_status() to check for errors before looking
at queue sizes. In certain cases this avoids to call the possibly
expensive btr_get_output_queue_size().

If no more input is going to arrive for an internal node whose output
queue is full, btr_node_status() now returns EOF immediately, which
is better than the previous scheme where we waited for the output
queue to become empty before returning EOF.

10 years agobuffer_tree: Improve btr_splice_out_node().
Andre Noll [Sun, 31 Mar 2013 15:34:50 +0000 (15:34 +0000)]
buffer_tree: Improve btr_splice_out_node().

This changes btr_splice_out_node() to take a pointer to a btrn, just
like btr_remove_node(). This allows to set the variable to NULL after
the node has been spliced out. The callers are updated accordingly.

10 years agoMerge branch 't/misc_cleanups'
Andre Noll [Sun, 29 Sep 2013 10:59:04 +0000 (12:59 +0200)]
Merge branch 't/misc_cleanups'

Was cooking since 2013-08-04.

3f97ae buffer_tree: Improve documentation of btr_no_parent().
fb9209 Avoid gcc warning on FreeBSD.
778af7 command.c: Avoid declaration after statement.
61c957 extract_v4_addr(): Don't return a structure.
1d7937 command.c: Remove pointless initialization.
c17ede crypt.c: Remove condition which is always true.
a12ecb ipc: Close proc fd.
01d37b Make log functions static.
0ba631 score: Improve documentation of score_update().
d6cf71 GIT-VERSION-GEN: Don't include output of git update-index.

10 years agocrypt: Add workaround for non-fork-safe PRGs.
Andre Noll [Thu, 22 Aug 2013 21:13:37 +0000 (23:13 +0200)]
crypt: Add workaround for non-fork-safe PRGs.

Some PRNGs implementations suffer from the problem that after a fork()
the PRNG state of parent and child process differ only by the child pid
which is mixed into the state. Certain versions of openssl are known to
contain this flaw.

On such implementations two command handlers will generate the same
challenge and session keys if their pid is identical. This may happen
due to pid wrapping.

This patch works around this shortcoming by reading some pseudo random
bytes in the parent process after each fork().

10 years agoplay: Fix prev command.
Andre Noll [Sun, 22 Sep 2013 14:45:10 +0000 (16:45 +0200)]
play: Fix prev command.

The command handler for com_prev() stores the number of the
previous (valid) file in ->next_file of struct play_task and sets
->rq to CRT_FILE_CHANGE. The real work is supposed to be done in
load_next_file() which is called from the main post_select() function.

However, load_next_file() ignores ->next_file and computes the number
of the next file itself. Hence the "prev" command acts exactly as
"next", i.e. it selects the next rather than the previous file.

Fix this by ignoring ->next_file only if ->rq is CRT_NONE, which
indicates a normal end of file condition.

10 years agoaudiod: Don't compute stat info unnecessarily.
Andre Noll [Mon, 9 Sep 2013 21:20:31 +0000 (21:20 +0000)]
audiod: Don't compute stat info unnecessarily.

Currently we compute this information in each scheduler iteration
and check whether it has changed since the last time we sent it to
the stat clients.

This is quite expensive, so this patch teaches para_audiod to only look
at the status items if the last write time was more than 500ms ago.

10 years agoaudiod: Force status dump every 5 seconds.
Andre Noll [Sat, 20 Jul 2013 12:22:04 +0000 (14:22 +0200)]
audiod: Force status dump every 5 seconds.

Without this, para_audiod might not notice for a long time when
a stat client went away.

Also avoid to dump the status twice.

10 years agoaudiod: Improve status timeout handling.
Andre Noll [Sun, 21 Jul 2013 14:23:00 +0000 (16:23 +0200)]
audiod: Improve status timeout handling.

Don't look at the task error field directly. The node status gives
equivalent information.

10 years agoaudiod: Reorder exit log messages a bit.
Andre Noll [Sun, 7 Jul 2013 12:06:01 +0000 (14:06 +0200)]
audiod: Reorder exit log messages a bit.

On exit only one emergency message should be printed. If para_audiod
receives a signal which causes it to exit, we currently print two
messages. This downgrades the loglevel of the first message to NOTICE,
and moves the emergency message to the bottom of clean_exit().

10 years agoaudiod: Fix memory leak on exit: stat client.
Andre Noll [Sun, 7 Jul 2013 12:02:40 +0000 (14:02 +0200)]
audiod: Fix memory leak on exit: stat client.

Currently we don't close stat clients on exit which results in (benign)
memory leaks. Introduce the new public close_stat_clients() and call
it from clean_exit() to avoid the leak.

This patch also removes the pointles local variable "fd".

10 years agoaudiod: Fix memory leak on exit: gengetopt.
Andre Noll [Sat, 6 Jul 2013 21:04:14 +0000 (23:04 +0200)]
audiod: Fix memory leak on exit: gengetopt.

Free gengetopt config structure on exit.

10 years agoaudiod: Fix memory leak on exit: close slots.
Andre Noll [Sat, 6 Jul 2013 20:26:03 +0000 (22:26 +0200)]
audiod: Fix memory leak on exit: close slots.

Currently we don't bother to close slots on exit. This is no problem
but it causes valgrind to report a bunch of memory leaks. This patch
makes it close all writers, filters and receivers on exit.

To this aim, the cleanup part of close_unused_slots() is abstracted out
into the new close_slot(), which is now also called from clean_exit()
for each slot, just before para_audiod exits. In order to avoid
forward declarations, clean_exit() had to be moved below the two
other functions.

10 years agoaudiod: Unify startup messages of receivers, filters and writers.
Andre Noll [Thu, 5 Sep 2013 04:18:48 +0000 (04:18 +0000)]
audiod: Unify startup messages of receivers, filters and writers.

During buffer tree startup para_audiod logs one message with log
level NOTICE for the receiver and one for each filter. The writer
startup message is printed only with loglevel INFO though.

Upgrade the loglevel of this message to NOTICE as well.

10 years agoaudiod: Print a warning if filters are ignored.
Andre Noll [Mon, 2 Sep 2013 01:46:32 +0000 (01:46 +0000)]
audiod: Print a warning if filters are ignored.

If the regular expression of a filter specifier does not match any
audio formats, we ignore this filter spec silently. Most likely this
was not intended and deserves a log message, so let's add it.

10 years agoaudiod: Remove pointless continue statement in com_stat().
Andre Noll [Sun, 7 Jul 2013 16:54:32 +0000 (18:54 +0200)]
audiod: Remove pointless continue statement in com_stat().

The loop ends here anyway.

10 years agoaudiod: Make command array static.
Andre Noll [Thu, 5 Sep 2013 04:52:18 +0000 (04:52 +0000)]
audiod: Make command array static.

This array is only used in audiod_command.c.

10 years agoaudiod: Fix error message on status errors.
Andre Noll [Sat, 20 Jul 2013 10:28:18 +0000 (12:28 +0200)]
audiod: Fix error message on status errors.

If para_audiod can not parse a status item received from para_server,
it currently prints

task_notify: notifying task client: audiod switched off
btr_remove_node: removing btr node client from buffer tree
unregister_task: unregistering client (audiod switched off)

This is misleading at best. The error message for status timeouts has
the same problem. This patch makes para_audiod print meaningful error
messages in both cases.

10 years agoMerge branch 'maint'
Andre Noll [Sun, 22 Sep 2013 00:12:29 +0000 (02:12 +0200)]
Merge branch 'maint'

This incoporates a couple of important bug fixes found at athcx.

10 years agobash_completion: Run client/audioc from PATH.
Andre Noll [Wed, 11 Sep 2013 00:46:26 +0000 (00:46 +0000)]
bash_completion: Run client/audioc from PATH.

This way it works for everybody.

10 years agoconfigure: Print opus audio file handler if opus lib was found.
Andre Noll [Wed, 4 Sep 2013 04:35:38 +0000 (04:35 +0000)]
configure: Print opus audio file handler if opus lib was found.

The variable is called $audio_format_handlers rather than
$server_audio_formats. The value is only used to display the supported
audio formats, so this bug is rather benign.

10 years agobtr: splice-out fix.
Andre Noll [Fri, 6 Sep 2013 23:21:44 +0000 (23:21 +0000)]
btr: splice-out fix.

When splicing out a node we set the ->parent pointer of all child
nodes to the parent of the given node, and move each child to the
->children list of the parent.

Except when there is no parent. If the given node was a root node
(or an internal node whose parent vanished), we leave the ->children
list untouched. In this case the assertion a few lines later triggers
and aborts the program. Fix this by removing the nodes from the list.
Such nodes have become root nodes themselves, so they should not be
on any list of children.

10 years agofecdec: Avoid fecdec output buffer overruns.
Andre Noll [Sun, 1 Sep 2013 17:48:46 +0000 (17:48 +0000)]
fecdec: Avoid fecdec output buffer overruns.

The size of the buffer tree pool of the amp filter is 64K, which
is smaller than BTRN_MAX_PENDING of buffer_tree.c (96K). The latter
value is used in btr_node_status() as follows. If input for a buffer
tree node is available and there is less than BTRN_MAX_PENDING bytes
in the output queue of the node, the function returns 1 to indicate
that the node should continue to process its input.

This can result in a fatal error condition when the buffer tree pool
fills up completely. Avoid this by increasing the pool size to 128K.

10 years agovss: Avoid assertion "i == g->num_header_slices - 1".
Andre Noll [Sun, 1 Sep 2013 15:54:25 +0000 (15:54 +0000)]
vss: Avoid assertion "i == g->num_header_slices - 1".

This fixes a very old bug in the timing code for fec slices. Depending
on the number of bytes to submit and on the number of slices of the
current fec group it may happen that we reserve more slices than
needed for the audio file header. This is not a problem per se, but the
above assertion hits in this case and aborts para_server.

Fix this by removing the assertion, and make sure that all reserved
header slices are properly initialized.

10 years agoconfigure: Fix restoring LDFLAGS.
Andre Noll [Thu, 29 Aug 2013 22:20:30 +0000 (22:20 +0000)]
configure: Fix restoring LDFLAGS.

The configure script saves the values of CPPFLAGS, CFLAGS and LDLFAGS
before each check and restores the old values afterwards. However,
for LDLFAGS this was broken at several places, since we used LD_FLAGS
(with an underscore) for saving the value and LDFLAGS for restoring it
(or vice versa).

This bug had the effect that a user-specified value of LDFLAGS was
ignored in some tests because LDFLAGS was restored to the empty
value LD_FLAGS during an earlier test.

This patch changes all occurrences of LD_FLAGS in configure.ac to
LDFLAGS.

10 years agoerror.h: Fix typo in comment.
Andre Noll [Wed, 11 Sep 2013 04:21:05 +0000 (04:21 +0000)]
error.h: Fix typo in comment.

10 years agoamp: Downgrade level of log message.
Andre Noll [Mon, 2 Sep 2013 01:48:05 +0000 (01:48 +0000)]
amp: Downgrade level of log message.

The scaling factor is often one, so this is not very important
information.  Set the loglevel to INFO.

10 years agocommand: Make server_cmds[] and afs_cmds[] static.
Andre Noll [Thu, 5 Sep 2013 05:28:27 +0000 (05:28 +0000)]
command: Make server_cmds[] and afs_cmds[] static.

These arrays are only used in command.c.

10 years agoDon't include $codename in ggo version string.
Andre Noll [Thu, 29 Aug 2013 23:34:13 +0000 (23:34 +0000)]
Don't include $codename in ggo version string.

This variable no longer used. Since we do not rely on gengetopt's
implementation of --version any more, this does not matter much.
Let's fix it anyway.

10 years agodoc: Add man page of para_play to documentation web page.
Andre Noll [Wed, 4 Sep 2013 18:00:48 +0000 (18:00 +0000)]
doc: Add man page of para_play to documentation web page.

In December 2012 para_play was merged to master but we missed to
update the web page accordingly.

10 years agobuffer_tree: Improve documentation of btr_no_parent().
Andre Noll [Wed, 4 Sep 2013 22:13:49 +0000 (22:13 +0000)]
buffer_tree: Improve documentation of btr_no_parent().

10 years agoAvoid gcc warning on FreeBSD.
Andre Noll [Tue, 23 Jul 2013 07:23:32 +0000 (09:23 +0200)]
Avoid gcc warning on FreeBSD.

FreeBSD 9.1 ships a patched gcc-4.2.1 which complains about use of
an initialized variable:

fd.c: In function 'for_each_file_in_dir':
fd.c:728: warning: 'dir' may be used uninitialized in this function

This warning is bogus since para_opendir() only leaves the dir
pointer unset on failures. But in this case for_each_file_in_dir()
returns early without using the pointer.

This commit changes para_opendir() to set dir to NULL before doing
anything else. This avoids the warning at almost no cost.

10 years agocommand.c: Avoid declaration after statement.
Andre Noll [Mon, 22 Jul 2013 23:22:33 +0000 (01:22 +0200)]
command.c: Avoid declaration after statement.

Fixes

command.c:224:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]

10 years agoextract_v4_addr(): Don't return a structure.
Andre Noll [Sat, 6 Jul 2013 14:01:26 +0000 (16:01 +0200)]
extract_v4_addr(): Don't return a structure.

When compiling with -Waggregate-return, gcc issues the following warning:

net.c: In function 'extract_v4_addr':
net.c:682: warning: function returns an aggregate
acl.c: In function 'acl_check_access':
acl.c:60: warning: function call has aggregate value

It's not entirely clear how bad it is these days to return a structure, but
extract_v4_addr() is the only function in the tree which does it. Since it
can be easily changed to take a pointer instead and there is only a single
caller, let's implement it this way.

10 years agocommand.c: Remove pointless initialization.
Andre Noll [Sat, 6 Jul 2013 19:31:11 +0000 (21:31 +0200)]
command.c: Remove pointless initialization.

Found by the clang analyzer:

command.c:934:16: warning: Assigned value is always the same as the existing value
for (i = 0, p = iov->iov_base; p < end; i++)
    ~ ^ ~~~~~~~~~~~~~

clang is right: A couple of lines before the for loop we set p to
iov->iov_base and do not modify it.

10 years agocrypt.c: Remove condition which is always true.
Andre Noll [Sun, 7 Jul 2013 16:51:18 +0000 (18:51 +0200)]
crypt.c: Remove condition which is always true.

rsa can never be NULL here.

10 years agoipc: Close proc fd.
Andre Noll [Sat, 20 Jul 2013 19:08:15 +0000 (21:08 +0200)]
ipc: Close proc fd.

We read shmmax only once, so there is no point in keeping this
file descriptor open forever.

10 years agoMake log functions static.
Andre Noll [Sat, 6 Jul 2013 14:23:31 +0000 (16:23 +0200)]
Make log functions static.

All PARA_XXX_LOG() macros use the public para_log function pointer
for quite some time now, so the actual implementations of the various
log functions can be made static.

10 years agoscore: Improve documentation of score_update().
Andre Noll [Wed, 4 Sep 2013 20:05:00 +0000 (20:05 +0000)]
score: Improve documentation of score_update().

Remove a stray "and" and the list of possible errors, which is not
very useful and possibly incomplete.

10 years agoGIT-VERSION-GEN: Don't include output of git update-index.
Andre Noll [Wed, 4 Sep 2013 21:53:32 +0000 (21:53 +0000)]
GIT-VERSION-GEN: Don't include output of git update-index.

GIT-VERSION-GEN calls git update-index which might write something
like "configure.ac: Needs update" to stdout. We don't want this text
to be part of the version string, so make sure we discard the output
of git update-index.

10 years agoNEWS: Update download links to 0.5.0.
Andre Noll [Fri, 23 Aug 2013 18:20:29 +0000 (20:20 +0200)]
NEWS: Update download links to 0.5.0.

10 years agoreset version to 'git'
Andre Noll [Fri, 23 Aug 2013 18:10:18 +0000 (20:10 +0200)]
reset version to 'git'

10 years agoparaslash 0.5.0 v0.5.0
Andre Noll [Fri, 23 Aug 2013 18:03:42 +0000 (20:03 +0200)]
paraslash 0.5.0

10 years agoMerge branch 't/web_improvements'
Andre Noll [Fri, 23 Aug 2013 17:35:56 +0000 (19:35 +0200)]
Merge branch 't/web_improvements'

The new pages have been tested on slnx with no problems, so they're
ready for prime time.

329719 web: Move menu down a bit.
c6ac6c web: Make image rule global.
c53634 Replace main page by NEWS.
3c2dfc NEWS: Replace "to be announced" text.
c2ea0c web: Add tarball and signature link of recent release to NEWS.
b35afc web: Adjust sizes of monospace fonts.
7fb28a web: Avoid gray area on gitweb page.
f3f978 web: Move important parts of the style sheet to the top of the file.
57058e web: Remove some duplicate rules in para.css.
5005fb web: Combine the two .css files.
d74c89 web: Add header to gitweb and API reference sites.
076b70 web: Increase size of log messages and diffs.
0384fd web: Unify link colors.
893669 web: Fix gitweb link on doxygen pages.
607d79 web: Unify <br> elements.
40ceca web: Remove valign tag in header files.
37bfc1 web: Further unify header.html, header2.html and gitweb_header.html.
197add web: Unify css rules for tables.
21422a web: Remove horizontal line at the top of the page.
53963d web: Remove style element in html.
4c061d web: Make the body selector of the two css files consistent.
f9fadc web: Use lower-case css selectors.
22fb31 web: Increase font size.
2f201d web: css whitespace fixes.
51445c web: Remove commented-out sections of css files.
71d445 web: Remove border="0" tag.
02c1a5 web: Don't set border, cellpadding and cellspacing.
6e0b01 web: Remove basefont tag.
42a4cd Update README.
2210c6 web: Remove explanation of the paraslash acronym.

10 years agoMerge branch 't/image-0.5'
Andre Noll [Fri, 23 Aug 2013 17:33:00 +0000 (19:33 +0200)]
Merge branch 't/image-0.5'

After almost three months we finally got there.

8b7b77 The overwhelming new logo for paraslash.0.5.

10 years agooverview.pdf: Fix overfull lines.
Andre Noll [Fri, 23 Aug 2013 08:57:38 +0000 (10:57 +0200)]
overview.pdf: Fix overfull lines.

The Ubuntu version of dia (which is used to create the public file
on the web page) seems to behave differently than the self-compiled
version used on my development box.

This resulted in a rather strange looking pdf. Fix this by manually
adjusting lines using the Ubuntu version.

10 years agotest suite: Change underscores to dashes also in tests script options.
Andre Noll [Fri, 23 Aug 2013 08:22:29 +0000 (10:22 +0200)]
test suite: Change underscores to dashes also in tests script options.

The previous commit broke t0004. Fix is trivial.

10 years agoChange all multi-word options to dashes instead of underscores.
Andre Noll [Thu, 20 Jun 2013 21:20:13 +0000 (23:20 +0200)]
Change all multi-word options to dashes instead of underscores.

Currently some of these options use dashes to separate the words
while others use the underscore character instead. The auto-generated
--detailed-help option contains a dash, so the only consistent way
is to use dashes everywhere.

Hence this commit replaces all underscores in option names by dashes
and updates the documentation accordingly.

Fortunately, this does not require to change the code, because
gengetopt translates dashes into underscores in the generated C code.
It is, however, an API change, so this is 0.5.0 material.

10 years agoMerge branch 't/dia'
Andre Noll [Thu, 22 Aug 2013 17:07:45 +0000 (19:07 +0200)]
Merge branch 't/dia'

Was cooking since 2013-06-07.

f5fb7a Overview: Add new slides, powered by dia.

10 years agoMerge remote-tracking branch 'refs/remotes/bthcx/master'
Andre Noll [Wed, 21 Aug 2013 18:54:51 +0000 (20:54 +0200)]
Merge remote-tracking branch 'refs/remotes/bthcx/master'

10 years agoMerge branch 't/setatt_fnmatch'
Andre Noll [Wed, 21 Aug 2013 18:49:06 +0000 (20:49 +0200)]
Merge branch 't/setatt_fnmatch'

Was cooking for about two weeks and seems to work fine.

73299e com_setatt(): Allow to specify a file name pattern.
fd5f94 Move com_setatt() from attribute.c to aft.c.
a8573c com_setatt(): Use get_attribute_bitnum_by_name().
47dbd9 Mark buffer pointer of pass_buffer_as_shm() as const.

10 years agoFEATURES: Mention ogg/opus.
Andre Noll [Wed, 21 Aug 2013 08:36:16 +0000 (10:36 +0200)]
FEATURES: Mention ogg/opus.

Support for ogg/opus was added in 0.4.13, but we missed to update the
FEATURES text.

10 years agoMerge branch 't/m4_deps'
Andre Noll [Tue, 20 Aug 2013 19:31:38 +0000 (21:31 +0200)]
Merge branch 't/m4_deps'

This branch was cooking since 2013-08-04 and no problems showed up.

e249d1 Generate ggo dependencies automatically.
8bf727 Add para_ prefix for executables in Makefile.in.

10 years agoweb: Move menu down a bit.
Andre Noll [Sun, 18 Aug 2013 17:20:42 +0000 (19:20 +0200)]
web: Move menu down a bit.

This looks better. It can easily be achieved by adding a <br> tag
before the menu.

10 years agoweb: Make image rule global.
Andre Noll [Sun, 18 Aug 2013 17:15:13 +0000 (19:15 +0200)]
web: Make image rule global.

This way it also applies to the paraslash logo. Without this, old
mozilla browsers show a margin around the image, which looks ugly.

10 years agoReplace main page by NEWS.
Andre Noll [Sun, 18 Aug 2013 16:48:57 +0000 (18:48 +0200)]
Replace main page by NEWS.

The main page listed almost only the releases. This information is
also available through the NEWS menu, so remove the main page and
make NEWS.html the new index.html.

This commit also reorders the menu items and adds the new "Development"
item. This page contains the information on the topic branches which
was previously known as cooking.html.

10 years agoNEWS: Replace "to be announced" text.
Andre Noll [Sun, 18 Aug 2013 15:41:45 +0000 (17:41 +0200)]
NEWS: Replace "to be announced" text.

The new text mentions that the changes listed here have already
been merged to the current master branch, which is more valuable
information.

10 years agoweb: Add tarball and signature link of recent release to NEWS.
Andre Noll [Sun, 18 Aug 2013 15:39:30 +0000 (17:39 +0200)]
web: Add tarball and signature link of recent release to NEWS.

This is a first step to replace the main page.

10 years agoweb: Adjust sizes of monospace fonts.
Andre Noll [Sun, 18 Aug 2013 13:52:40 +0000 (15:52 +0200)]
web: Adjust sizes of monospace fonts.

120% is big enough, let's use this size everywhere.

10 years agoweb: Avoid gray area on gitweb page.
Andre Noll [Sun, 18 Aug 2013 12:40:00 +0000 (14:40 +0200)]
web: Avoid gray area on gitweb page.

Removing this section makes it go away.

10 years agoweb: Move important parts of the style sheet to the top of the file.
Andre Noll [Sun, 18 Aug 2013 12:34:18 +0000 (14:34 +0200)]
web: Move important parts of the style sheet to the top of the file.

10 years agoweb: Remove some duplicate rules in para.css.
Andre Noll [Sun, 18 Aug 2013 12:13:33 +0000 (14:13 +0200)]
web: Remove some duplicate rules in para.css.

10 years agoweb: Combine the two .css files.
Andre Noll [Sun, 18 Aug 2013 12:06:57 +0000 (14:06 +0200)]
web: Combine the two .css files.

Having only one style file avoids to duplicate the rules for common
elements.  This is the result of cat gitweb.css >> para.css plus a
minor fix.

gitweb_config.perl on the destination site, and para_adm have to be
updated at the same time to make this work.

10 years agoweb: Add header to gitweb and API reference sites.
Andre Noll [Sun, 18 Aug 2013 11:47:58 +0000 (13:47 +0200)]
web: Add header to gitweb and API reference sites.

This makes the layout of these two pages identical to the main pages.

10 years agoweb: Increase size of log messages and diffs.
Andre Noll [Sat, 17 Aug 2013 23:59:01 +0000 (01:59 +0200)]
web: Increase size of log messages and diffs.

The size of these was hardcoded to 12px.

10 years agoweb: Unify link colors.
Andre Noll [Sat, 17 Aug 2013 22:45:02 +0000 (00:45 +0200)]
web: Unify link colors.

The color on the gitweb page was slightly different.

10 years agoweb: Fix gitweb link on doxygen pages.
Andre Noll [Sat, 17 Aug 2013 22:33:50 +0000 (00:33 +0200)]
web: Fix gitweb link on doxygen pages.

This did not work on the test instances (it did work on the official
site though).

10 years agoweb: Unify <br> elements.
Andre Noll [Sat, 17 Aug 2013 20:21:14 +0000 (22:21 +0200)]
web: Unify <br> elements.

This caused the menu of the gitweb page to occur at a slightly different
location, which was somewhat annoying.

10 years agoweb: Remove valign tag in header files.
Andre Noll [Sat, 17 Aug 2013 20:05:51 +0000 (22:05 +0200)]
web: Remove valign tag in header files.

It does not belong there and seems to have no effect.

10 years agoweb: Further unify header.html, header2.html and gitweb_header.html.
Andre Noll [Sat, 17 Aug 2013 19:52:48 +0000 (21:52 +0200)]
web: Further unify header.html, header2.html and gitweb_header.html.

Indentation was messed up, and a title tag was missing.

10 years agoweb: Unify css rules for tables.
Andre Noll [Sat, 17 Aug 2013 19:30:43 +0000 (21:30 +0200)]
web: Unify css rules for tables.

10 years agoweb: Remove horizontal line at the top of the page.
Andre Noll [Sat, 17 Aug 2013 19:18:23 +0000 (21:18 +0200)]
web: Remove horizontal line at the top of the page.

The gitweb page does not have this line, and the page looks better
without it.

10 years agoweb: Remove style element in html.
Andre Noll [Sat, 17 Aug 2013 19:15:05 +0000 (21:15 +0200)]
web: Remove style element in html.

10 years agoweb: Make the body selector of the two css files consistent.
Andre Noll [Sat, 17 Aug 2013 19:11:37 +0000 (21:11 +0200)]
web: Make the body selector of the two css files consistent.

10 years agoweb: Use lower-case css selectors.
Andre Noll [Sat, 17 Aug 2013 19:00:54 +0000 (21:00 +0200)]
web: Use lower-case css selectors.

In para.css most css element selectors were in upper case, while
gitweb.css used lower case selectors. This patch makes the two
consistent.

10 years agoweb: Increase font size.
Andre Noll [Sat, 17 Aug 2013 18:45:47 +0000 (20:45 +0200)]
web: Increase font size.

The default value of font-size is medium, which seems to be more appropriate.

10 years agoweb: css whitespace fixes.
Andre Noll [Sat, 17 Aug 2013 18:33:23 +0000 (20:33 +0200)]
web: css whitespace fixes.

Indentation was rather inconsistent.

10 years agoweb: Remove commented-out sections of css files.
Andre Noll [Sat, 17 Aug 2013 18:24:58 +0000 (20:24 +0200)]
web: Remove commented-out sections of css files.

10 years agoweb: Remove border="0" tag.
Andre Noll [Sat, 17 Aug 2013 18:22:10 +0000 (20:22 +0200)]
web: Remove border="0" tag.

Again, this has no effect.

10 years agoweb: Don't set border, cellpadding and cellspacing.
Andre Noll [Sat, 17 Aug 2013 18:19:37 +0000 (20:19 +0200)]
web: Don't set border, cellpadding and cellspacing.

It has (almost) no effect.

10 years agoweb: Remove basefont tag.
Andre Noll [Sat, 17 Aug 2013 18:18:20 +0000 (20:18 +0200)]
web: Remove basefont tag.

This is not needed at all.

10 years agoUpdate README.
Andre Noll [Sat, 17 Aug 2013 18:08:49 +0000 (20:08 +0200)]
Update README.

The README file mentions mp3, ogg/vorbis, aac and wma, but speex,
flac and ogg/opus were all missing.  Do not even try to list the
supported audio formats, it always gets out of sync.

Secondly, since this file will not be processed by grutatxt, it's
pointless to format it according to the grutatxt syntax.

Finally, this change adds the URLs of the web page and the git
repository, as well as my email address.

10 years agoweb: Remove explanation of the paraslash acronym.
Andre Noll [Sun, 18 Aug 2013 17:41:22 +0000 (19:41 +0200)]
web: Remove explanation of the paraslash acronym.

It's kind of lame, so get rid of it.

Conflicts:
README

10 years agoMerge branch 't/remove_sb_compat'
Andre Noll [Sat, 17 Aug 2013 11:57:32 +0000 (13:57 +0200)]
Merge branch 't/remove_sb_compat'

This topic branch was cooking for over 4 months and should now be
ready for prime time. The patches break compatibility with earlier
versions, so we need to bump the version number real soon now.

72ffa7 client: Only start stdin task for addblob commands.
85a6ae Remove old stream cipher API.
d1407f Allow addblob commands to create output.
243e31 client: Remove client_recv_buffer().
277ed4 client: Remove sb-compatibility code.
36ba18 Reject non-sideband connections.
6ca50b blob: Avoid zero sized memcpy().
cf308c Fix typo in documentation of stdin_command().
fdb9d2 blob: Simplify fd2buf().

10 years agocom_setatt(): Allow to specify a file name pattern.
Andre Noll [Mon, 22 Jul 2013 20:10:40 +0000 (22:10 +0200)]
com_setatt(): Allow to specify a file name pattern.

The help text of the setatt command claims that file name patterns
may be specified as arguments. The text also contains an example which
involves a wildcard pattern. However, this never worked as advertised
since the command actually accepts only full paths.

This commit teaches the command to process the given arguments as
patterns by employing the same pattern matching loop that is also
used by other commands.

In addition we now also send a "no matches" message to the client
in case there was no match. Previously the command stayed silent and
terminated successfully in this case.

10 years agoMove com_setatt() from attribute.c to aft.c.
Andre Noll [Mon, 22 Jul 2013 18:41:13 +0000 (20:41 +0200)]
Move com_setatt() from attribute.c to aft.c.

This command operates on rows of the audio file table. Pure code
movement, no changes.