]> git.tue.mpg.de Git - paraslash.git/log
paraslash.git
17 years agogui.c: Handle empty status items properly.
Andre Noll [Sat, 24 Nov 2007 22:25:33 +0000 (23:25 +0100)]
gui.c: Handle empty status items properly.

17 years agogui.c: Cosmetics.
Andre Noll [Sat, 24 Nov 2007 22:25:01 +0000 (23:25 +0100)]
gui.c: Cosmetics.

17 years agogui.c: Increase numbers of color pairs not related to themes.
Andre Noll [Sat, 24 Nov 2007 19:10:15 +0000 (20:10 +0100)]
gui.c: Increase numbers of color pairs not related to themes.

So that they do not overlap with status items color pairs.

17 years agoRename mood_method "name_like" to "path_matches".
Andre Noll [Sat, 24 Nov 2007 13:31:21 +0000 (14:31 +0100)]
Rename mood_method "name_like" to "path_matches".

17 years agoFix rename detection.
Andre Noll [Sat, 24 Nov 2007 13:19:21 +0000 (14:19 +0100)]
Fix rename detection.

If a file is renamed and re-added the old code would segfault because of
a NULL pointer dereference in save_chunk_table(). Fix is trivial.

17 years agocom_lsblob(): Fix sorting order.
Andre Noll [Sat, 24 Nov 2007 12:01:45 +0000 (13:01 +0100)]
com_lsblob(): Fix sorting order.

17 years agoMerge commit 'remotes/fml/master'
Andre Noll [Sat, 24 Nov 2007 11:00:25 +0000 (12:00 +0100)]
Merge commit 'remotes/fml/master'

17 years agoDefine XOPEN_SOURCE and __EXTENSIONS__ on Solaris.
Andre Noll [Fri, 23 Nov 2007 17:17:19 +0000 (18:17 +0100)]
Define XOPEN_SOURCE and __EXTENSIONS__ on Solaris.

These are needed for passing fd through a socket.

17 years agoDon't garbage-collect sections.
Andre Noll [Fri, 23 Nov 2007 17:15:52 +0000 (18:15 +0100)]
Don't garbage-collect sections.

This does not work on Solaris, NetBSD and MacOS. Leave it in as
a comment though.

17 years agoRename mark_fd_nonblock() to mark_fd_nonblocking().
Andre Noll [Fri, 23 Nov 2007 10:15:42 +0000 (11:15 +0100)]
Rename mark_fd_nonblock() to mark_fd_nonblocking().

Just to be consistent with mark_fd_blocking().

17 years agoRename sched() to schedule().
Andre Noll [Fri, 23 Nov 2007 10:11:42 +0000 (11:11 +0100)]
Rename sched() to schedule().

We already have struct sched..

17 years agoREQUIREMENTS: Add pointers to software packages.
Andre Noll [Fri, 23 Nov 2007 10:07:48 +0000 (11:07 +0100)]
REQUIREMENTS: Add pointers to software packages.

17 years agonet.c: Return proper error value in recv_bin_buffer().
Andre Noll [Fri, 23 Nov 2007 09:42:09 +0000 (10:42 +0100)]
net.c: Return proper error value in recv_bin_buffer().

17 years agoIn handle_connect() we really need a blocking fd for the client.
Andre Noll [Fri, 23 Nov 2007 09:40:16 +0000 (10:40 +0100)]
In handle_connect() we really need a blocking fd for the client.
At least on NetBSD the fd returned by accept() might be in non-blocking
mode. So introduce mark_fd_blocking() and use it in handle_connect().

17 years agoReplace shebang in bash scripts.
Andre Noll [Fri, 23 Nov 2007 09:35:19 +0000 (10:35 +0100)]
Replace shebang in bash scripts.

NetBSD does not have /bin/bash.

17 years agoafs.c: Simplify activate_mood_or_playlist().
Andre Noll [Fri, 23 Nov 2007 09:33:41 +0000 (10:33 +0100)]
afs.c: Simplify activate_mood_or_playlist().

This also gets rid of

warning: `mode' might be used uninitialized in this function

on gcc-3.3.3.

17 years agoAdd wrapper for isspace().
Andre Noll [Fri, 23 Nov 2007 09:32:00 +0000 (10:32 +0100)]
Add wrapper for isspace().

This avoids

warning: subscript has type `char'

on netbsd.

17 years agogitweb.css: Improve readability.
Andre Noll [Wed, 21 Nov 2007 22:53:31 +0000 (23:53 +0100)]
gitweb.css: Improve readability.

17 years agoAdd some gitweb-releated stuff.
Andre Noll [Wed, 21 Nov 2007 16:22:31 +0000 (17:22 +0100)]
Add some gitweb-releated stuff.

17 years agooverview.sk: Minor improvements.
Andre Noll [Tue, 20 Nov 2007 22:13:48 +0000 (23:13 +0100)]
overview.sk: Minor improvements.

17 years agoRemove another link to the live-demo.
Andre Noll [Tue, 20 Nov 2007 21:54:00 +0000 (22:54 +0100)]
Remove another link to the live-demo.

17 years agoKill live-demo web page.
Andre Noll [Tue, 20 Nov 2007 21:52:45 +0000 (22:52 +0100)]
Kill live-demo web page.

17 years agoAdd final 0.2.17 stuff.
Andre Noll [Tue, 20 Nov 2007 20:58:05 +0000 (21:58 +0100)]
Add final 0.2.17 stuff.

17 years agothe paraslash-0.2.17 release tarball
Andre Noll [Tue, 20 Nov 2007 17:36:55 +0000 (18:36 +0100)]
the paraslash-0.2.17 release tarball

17 years agoFix html header.
Andre Noll [Tue, 20 Nov 2007 17:13:01 +0000 (18:13 +0100)]
Fix html header.

The location of the cgi-bin dir on systemlinux is different from
paraslash.org. This broke the gitweb link in the left menu.

17 years agodownload.in.html: Replace paraslash.org in clone command.
Andre Noll [Tue, 20 Nov 2007 19:08:08 +0000 (20:08 +0100)]
download.in.html: Replace paraslash.org in clone command.

17 years agoMerge commit 'remotes/meins/v0.3' into v0.3
Andre Noll [Mon, 19 Nov 2007 09:08:58 +0000 (10:08 +0100)]
Merge commit 'remotes/meins/v0.3' into v0.3

17 years agoAnnounce NetBSD Port.
Andre Noll [Mon, 19 Nov 2007 09:08:46 +0000 (10:08 +0100)]
Announce NetBSD Port.

17 years agoaft.c: Simplify print_list_item().
Andre Noll [Sun, 18 Nov 2007 23:33:31 +0000 (00:33 +0100)]
aft.c: Simplify print_list_item().

17 years agoaft.c: Do not print directory if LS_FLAG_FULL_PATH was not given.
Andre Noll [Sun, 18 Nov 2007 23:32:59 +0000 (00:32 +0100)]
aft.c: Do not print directory if LS_FLAG_FULL_PATH was not given.

17 years agoaft.c ls -lm: Fix unmapping of lyrics file.
Andre Noll [Sun, 18 Nov 2007 21:19:36 +0000 (22:19 +0100)]
aft.c ls -lm: Fix unmapping of lyrics file.

17 years agoFix handling of invalid entries in the score table.
Andre Noll [Sun, 18 Nov 2007 19:59:49 +0000 (20:59 +0100)]
Fix handling of invalid entries in the score table.

It may happen that the score table contains references to files that
no longer exist in the file system. The current code fails badly in
this case.

In open_next_audio_file(), if the file corresponding to the next
entry in the score table can not be opened, delete this entry from
the score table and try the next entry.

If the score table becomes empty, send NO_ADMISSIBLE_FILES back to para_server
and make recv_afs_result() switch to stop mode in this case.

17 years agoAdd additional sanity checks to osl_get_rank().
Andre Noll [Sun, 18 Nov 2007 19:49:56 +0000 (20:49 +0100)]
Add additional sanity checks to osl_get_rank().

Check whether the riven rank is greater than zero and not greater than
the number of rows in the table.

17 years agoFix osl_del_row().
Andre Noll [Sun, 18 Nov 2007 19:47:59 +0000 (20:47 +0100)]
Fix osl_del_row().

Only free volatile columns of the deleted row if OSL_DONT_FREE
is not set.

17 years agoopen_and_update_audio_file(): Interchange two arguments.
Andre Noll [Sat, 17 Nov 2007 19:35:23 +0000 (20:35 +0100)]
open_and_update_audio_file(): Interchange two arguments.

And add documentation of the "score" parameter.

17 years agoREQUIREMENTS: Kill an incomplete sentence, add git.
Andre Noll [Sat, 17 Nov 2007 19:33:20 +0000 (20:33 +0100)]
REQUIREMENTS: Kill an incomplete sentence, add git.

17 years agoIntroduce vss_stopped().
Andre Noll [Sat, 17 Nov 2007 17:15:11 +0000 (18:15 +0100)]
Introduce vss_stopped().

17 years agoFix com_pause().
Andre Noll [Sat, 17 Nov 2007 17:14:46 +0000 (18:14 +0100)]
Fix com_pause().

If the vss status is stopped, we must not switch to pause status.

17 years agofade.c: Fix client_cmd()
Andre Noll [Sat, 17 Nov 2007 17:13:55 +0000 (18:13 +0100)]
fade.c: Fix client_cmd()

We have to wait for children to terminate because otherwise the
client commands may be executed in random order.

Since no caller checked the return value of client_cmd(), make it
abort on errors and change the return value to void.

Also, each caller only passed one string, so make it take only a
char * pointer.

17 years agostat.c: Cosmetics.
Andre Noll [Sat, 17 Nov 2007 17:09:52 +0000 (18:09 +0100)]
stat.c: Cosmetics.

17 years agomake_empty_status_items(): Add spaces after status item identifiers.
Andre Noll [Tue, 13 Nov 2007 19:10:48 +0000 (20:10 +0100)]
make_empty_status_items(): Add spaces after status item identifiers.

Identifiers without spaces confuse para_gui.

17 years agoFix tv_divide().
Andre Noll [Tue, 13 Nov 2007 19:08:06 +0000 (20:08 +0100)]
Fix tv_divide().

The old code contained an integer overflow which caused the mp3 audio
format handler to compute the chunk of large mp3 files incorrectly.

Moreover, the code was more complicated than necessary. So replace it
by a simple calculation which just transforms the given struct timeval
into its number of microseconds, does the division and transforms
the quotient back to a struct timeval.

Thanks to Gerrit Renker for pointing out the problem.

17 years agoFix com_nomore.
Andre Noll [Sun, 11 Nov 2007 19:24:20 +0000 (20:24 +0100)]
Fix com_nomore.

17 years agoAvoid some gcc warnings.
Andre Noll [Sun, 11 Nov 2007 19:23:45 +0000 (20:23 +0100)]
Avoid some gcc warnings.

17 years agoAvoid empty lines in the status output.
Andre Noll [Sun, 11 Nov 2007 19:22:56 +0000 (20:22 +0100)]
Avoid empty lines in the status output.

17 years agoIntroduce make_empty_status_items().
Andre Noll [Sun, 11 Nov 2007 19:22:18 +0000 (20:22 +0100)]
Introduce make_empty_status_items().

At the end of the stream we have to reset the status items
because audiod would start a new receiver otherwise.

17 years agoAdd more status items.
Andre Noll [Sun, 11 Nov 2007 13:58:28 +0000 (14:58 +0100)]
Add more status items.

17 years agoUse FOR_EACH_STATUS_ITEM everywhere.
Andre Noll [Sat, 10 Nov 2007 16:33:06 +0000 (17:33 +0100)]
Use FOR_EACH_STATUS_ITEM everywhere.

17 years agohandle status items via autoconf.
Andre Noll [Sat, 10 Nov 2007 16:23:04 +0000 (17:23 +0100)]
handle status items via autoconf.

17 years agoStore chunk info in the afhi column rather than in the chunk column.
Andre Noll [Sat, 3 Nov 2007 21:04:04 +0000 (22:04 +0100)]
Store chunk info in the afhi column rather than in the chunk column.

As the afhi column is mmapped, the chunk info is now available to
the ls command. The disk-storage column "chunks" only contains the
chunk table which allows to get rid of load_chunk_info() and
save_chunk_info().

17 years agoaft.c: Fix a possible memory leak.
Andre Noll [Sat, 3 Nov 2007 21:00:16 +0000 (22:00 +0100)]
aft.c: Fix a possible memory leak.

17 years agoREADME, INSTALL: Small improvements.
Andre Noll [Sat, 3 Nov 2007 20:58:55 +0000 (21:58 +0100)]
README, INSTALL: Small improvements.

17 years agoMore status item renames.
Andre Noll [Fri, 2 Nov 2007 14:55:24 +0000 (15:55 +0100)]
More status item renames.

SI_LENGTH_MIN -> SI_BITRATE
SI_LENGTH_SEC -> SI_FREQUENCY

SI_ATTRIBUTES -> SI_ATTRIBUTES_BITMAP
SI_UPTIME -> SI_ATTRIBUTES_TXT

17 years agoDon't report server uptime as status item.
Andre Noll [Fri, 2 Nov 2007 14:52:03 +0000 (15:52 +0100)]
Don't report server uptime as status item.

This belongs to the server info.

17 years agoRename audio_info status items and get rid of duplicate afh info.
Andre Noll [Fri, 2 Nov 2007 02:00:35 +0000 (03:00 +0100)]
Rename audio_info status items and get rid of duplicate afh info.

SI_AUDIO_INFO1 -> SI_AUDIO_FILE_INFO
SI_AUDIO_INFO2 -> SI_TAG_INFO1
SI_AUDIO_INFO3 -> SI_TAG_INFO2

The mp3 and the ogg afh stored bits of information in the info
string. Only store there what is not already contained in afh_info.

17 years agoInterchange two lines in load_afhi().
Andre Noll [Fri, 2 Nov 2007 01:48:15 +0000 (02:48 +0100)]
Interchange two lines in load_afhi().

Just to keep the oder consistent with safe_afhi().

17 years agoMake the status item list globally visible.
Andre Noll [Fri, 2 Nov 2007 01:46:35 +0000 (02:46 +0100)]
Make the status item list globally visible.

17 years agoaudiod.c: Add missing space.
Andre Noll [Fri, 2 Nov 2007 00:01:13 +0000 (01:01 +0100)]
audiod.c: Add missing space.

17 years agoscore.c: Use the new OSL_DONT_FREE flag for the aft column.
Andre Noll [Fri, 2 Nov 2007 00:00:42 +0000 (01:00 +0100)]
score.c: Use the new OSL_DONT_FREE flag for the aft column.

The score tables stores in one of its columns a pointer to
a row in the audio file table. This means for each admissible
file we're allocating space for a void* pointer to store the
aft pointer.

It's simpler and probably faster to store the afs pointer directly,
but of course that pointer must not be freed by the osl.

17 years agoosl: Introduce volatile columns that need not be freed.
Andre Noll [Thu, 1 Nov 2007 23:52:48 +0000 (00:52 +0100)]
osl: Introduce volatile columns that need not be freed.

If the new OSL_DONT_FREE flag is given, osl_close_table()
will not try to free such objects.

17 years agoFix duplicate afs event add.
Andre Noll [Thu, 1 Nov 2007 23:49:03 +0000 (00:49 +0100)]
Fix duplicate afs event add.

This bug hits if a request to update an existing audio file
is made. The old code caused an AFHI_CHANGE event and then
did "goto out;" which raises nother event (AUDIO_FILE_ADD).

Fix it by moving the event-raising code some lines up.

17 years agoAlways print a space after each status item identifier.
Andre Noll [Thu, 1 Nov 2007 20:50:18 +0000 (21:50 +0100)]
Always print a space after each status item identifier.

17 years agoGet rid of afd->afsi and rename afs_status_info to verbose_ls_output.
Andre Noll [Thu, 1 Nov 2007 20:32:34 +0000 (21:32 +0100)]
Get rid of afd->afsi and rename afs_status_info to verbose_ls_output.

17 years agoKill afd->current_play_mode.
Andre Noll [Thu, 1 Nov 2007 20:04:18 +0000 (21:04 +0100)]
Kill afd->current_play_mode.

It's unused.

17 years agokill afd->score.
Andre Noll [Thu, 1 Nov 2007 20:02:21 +0000 (21:02 +0100)]
kill afd->score.

This is also contained in afd->afs_status_info.

17 years agoGet rid of afd->path.
Andre Noll [Thu, 1 Nov 2007 19:45:34 +0000 (20:45 +0100)]
Get rid of afd->path.

All that info is contained in afd->afs_status_info.

17 years agoRename length status item to seconds_total and print it only once.
Andre Noll [Thu, 1 Nov 2007 18:58:12 +0000 (19:58 +0100)]
Rename length status item to seconds_total and print it only once.

17 years agoFix number of whitespaces in duration status item.
Andre Noll [Thu, 1 Nov 2007 18:20:40 +0000 (19:20 +0100)]
Fix number of whitespaces in duration status item.

17 years agoAlways write image_name and lyrics_name status output.
Andre Noll [Thu, 1 Nov 2007 18:06:39 +0000 (19:06 +0100)]
Always write image_name and lyrics_name status output.

If there is no image_name, print "(none)". Same with
lyrics.

17 years agoSplit lyrics and image lines in stat output.
Andre Noll [Thu, 1 Nov 2007 18:03:14 +0000 (19:03 +0100)]
Split lyrics and image lines in stat output.

It's better to have the id and the name of the corresponding
blob as two different status items.

17 years agoKill duplicate audio format handler info string in stat output.
Andre Noll [Thu, 1 Nov 2007 17:49:39 +0000 (18:49 +0100)]
Kill duplicate audio format handler info string in stat output.

17 years agoKill duplicate num_played status item.
Andre Noll [Thu, 1 Nov 2007 17:43:07 +0000 (18:43 +0100)]
Kill duplicate num_played status item.

In fact, the two num_played values were different: The first
was the number of audio files streamed by para_server so far,
and the second one was the num_played value from struct afs_info.

The former is also contained in the output of com_si, so get
rid of it in the stat output.

17 years agoKill more duplicate status items.
Andre Noll [Thu, 1 Nov 2007 17:36:32 +0000 (18:36 +0100)]
Kill more duplicate status items.

Image ID and Lyrics ID are also contained in the ls -v output.

17 years agoKill duplicate audio format status item.
Andre Noll [Thu, 1 Nov 2007 17:31:59 +0000 (18:31 +0100)]
Kill duplicate audio format status item.

17 years agoKill unused afd.attributes_string.
Andre Noll [Thu, 1 Nov 2007 17:23:05 +0000 (18:23 +0100)]
Kill unused afd.attributes_string.

17 years agoFix an off-by-one bug.
Andre Noll [Thu, 1 Nov 2007 17:22:20 +0000 (18:22 +0100)]
Fix an off-by-one bug.

17 years agoDon't compute attributes string twice.
Andre Noll [Thu, 1 Nov 2007 17:06:49 +0000 (18:06 +0100)]
Don't compute attributes string twice.

17 years agoDon't print attributes string twice.
Andre Noll [Thu, 1 Nov 2007 17:04:34 +0000 (18:04 +0100)]
Don't print attributes string twice.

17 years agoAppend ls -v output to status items.
Andre Noll [Thu, 1 Nov 2007 16:40:43 +0000 (17:40 +0100)]
Append ls -v output to status items.

This needs more work, but it avoids code duplication in the
long run.

17 years agoREADME: Kill "obligatory" and "optional" tags.
Andre Noll [Thu, 1 Nov 2007 15:14:32 +0000 (16:14 +0100)]
README: Kill "obligatory" and "optional" tags.

All para_* executables are optional: The server-side programs
are not needed on a client and vice versa.

17 years agoMakefile.in: web_sync is a directory.
Andre Noll [Thu, 1 Nov 2007 15:11:33 +0000 (16:11 +0100)]
Makefile.in: web_sync is a directory.

Use rm -rf to get rid of it.

17 years agocom_add: Only send output if send_callback_request() returned positive.
Andre Noll [Thu, 1 Nov 2007 14:55:30 +0000 (15:55 +0100)]
com_add: Only send output if send_callback_request() returned positive.

17 years agoAdd missing newline in ls output.
Andre Noll [Thu, 1 Nov 2007 14:53:46 +0000 (15:53 +0100)]
Add missing newline in ls output.

17 years agoInterchange tcp ports of new and old para_server.
Andre Noll [Thu, 1 Nov 2007 14:51:25 +0000 (15:51 +0100)]
Interchange tcp ports of new and old para_server.

17 years agoIncrease default wake time from 8 to 9 hours.
Andre Noll [Wed, 31 Oct 2007 14:22:24 +0000 (15:22 +0100)]
Increase default wake time from 8 to 9 hours.

17 years agoAlso save the header length and offset in the aft.
Andre Noll [Wed, 31 Oct 2007 14:21:27 +0000 (15:21 +0100)]
Also save the header length and offset in the aft.

17 years agoFix ogg streaming.
Andre Noll [Wed, 31 Oct 2007 14:18:55 +0000 (15:18 +0100)]
Fix ogg streaming.

Don't set the header len to zero in recv_afs_result().

17 years agovss.c: Check status afs socket fd for writing more often.
Andre Noll [Wed, 31 Oct 2007 02:41:14 +0000 (03:41 +0100)]
vss.c: Check status afs socket fd for writing more often.

Also check it if the socket status is AFS_SOCKET_CHECK_FOR_WRITE.

17 years agodoxgen: Kill double /ref.
Andre Noll [Wed, 31 Oct 2007 00:23:27 +0000 (01:23 +0100)]
doxgen: Kill double /ref.

17 years agoMore documentation.
Andre Noll [Wed, 31 Oct 2007 00:19:26 +0000 (01:19 +0100)]
More documentation.

17 years agocommand.c: Fix get_cmd_pointer.
Andre Noll [Wed, 31 Oct 2007 00:17:47 +0000 (01:17 +0100)]
command.c: Fix get_cmd_pointer.

The old code did not set the handler for afs commands at all. Bad.

17 years agoattribute.c: Always provide the attributes text.
Andre Noll [Wed, 31 Oct 2007 00:13:36 +0000 (01:13 +0100)]
attribute.c: Always provide the attributes text.

If no attributes are defined, return the string
"(no attributes available)" rather than a NULL pointer.

17 years agoNEWS Update.
Andre Noll [Wed, 31 Oct 2007 00:10:51 +0000 (01:10 +0100)]
NEWS Update.

17 years agoMakefile.in: Re-add skencil targets.
Andre Noll [Wed, 31 Oct 2007 00:09:51 +0000 (01:09 +0100)]
Makefile.in: Re-add skencil targets.

17 years agovss.c: Avoid strcpy() to a fixed-size buffer.
Andre Noll [Wed, 31 Oct 2007 00:07:16 +0000 (01:07 +0100)]
vss.c: Avoid strcpy() to a fixed-size buffer.

17 years agoSave also the end of file time value of the afh_info to disk.
Andre Noll [Wed, 31 Oct 2007 00:00:51 +0000 (01:00 +0100)]
Save also the end of file time value of the afh_info to disk.

Unfortunately, this breaks the layout of the aft. Fortunately,
we're still in pre-0.3, so that's acceptable.

17 years agoDoxyfile: Change web sync directory.
Andre Noll [Mon, 29 Oct 2007 13:43:15 +0000 (14:43 +0100)]
Doxyfile: Change web sync directory.

17 years agopara.css: Increase font size.
Andre Noll [Mon, 29 Oct 2007 13:42:29 +0000 (14:42 +0100)]
para.css: Increase font size.

17 years agoFix a typo in links to man pages.
Andre Noll [Mon, 29 Oct 2007 13:41:45 +0000 (14:41 +0100)]
Fix a typo in links to man pages.

17 years agoAdd web_sync to .gitignore.
Andre Noll [Mon, 29 Oct 2007 13:41:04 +0000 (14:41 +0100)]
Add web_sync to .gitignore.