summaryrefslogtreecommitdiff
path: root/command.c (follow)
Commit message (Collapse)AuthorAge
* Rename afs.[ch] to afs_common.[ch].Andre Noll2007-09-08
| | | | As a prepraration for merging the new afs.
* replace standard GPL header by a one-line pointer to COPYINGAndre Noll2007-06-28
|
* Trivial %d -> %zu format string fixAndre Noll2007-06-01
| | | | | | It fixes command.c:879: warning: int format, different type arg (arg 4)
* be more carful wrt. signed vs. unsigned argument passingAndre Noll2007-05-26
|
* command.c kill unused declaration of user_listAndre Noll2007-03-11
|
* introduce struct audio_format_infoAndre Noll2007-03-11
| | | | | | | This further simplifies the audio format handlers. The chunk_table and the header info is now contained in that struct which allows to move the cleanup on eof from the audio format handlers to the virtual streaming system.
* rename DB_READ, DB_WRITE to AFS_READ, AFS_WRITEAndre Noll2007-03-03
|
* rename db.c to afs.c and db.h to afs.hAndre Noll2007-02-20
|
* simplify lookup_user()Andre Noll2007-02-11
| | | | | | 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.
* kill STRINGSIZE macroAndre Noll2007-02-11
| | | | It's kind of silly. Just open code the desired value.
* command_util.sh: Make it read the function prototype from the source fileAndre Noll2007-02-11
| | | | | | | | | | | | | | | | 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.
* use own version handler for all commands.Andre Noll2007-02-04
| | | | This makes the man pages generated by help2man look much nicer.
* command.c: remove an unused variableAndre2007-01-28
|
* command.c: add documentation of handle_connect()Andre2007-01-28
|
* make another function of command.c staticAndre2007-01-28
|
* command.c: make two functions staticAndre2007-01-28
|
* rename "synopsis" to "usage".Andre2007-01-28
|
* command.c help: nicify help outputAndre2007-01-28
|
* vss_status_tohuman(): change permission status flagsAndre2007-01-27
| | | | | d (dbtool) -> a (audio file selector) a (audio file sender) -> v (virtual streaming system)
* rename server command array from cmd_struct to server_cmdsAndre2007-01-21
|
* para_server: switch to generated command listAndre2007-01-19
|
* command.c: simplify handle_connect()Andre2007-01-11
| | | | | lookup_user() never returns zero, so kill the corresponding check for zero return value.
* rename afs to vss (the virtual streaming system)Andre2007-01-06
|
* command.c: rename send_description() to send_list_of_commands()Andre2007-01-04
|
* command.c: simplify send_description()Andre2007-01-04
| | | | Last argument was 0 for both callers. Kill this arg.
* rename get_user() to lookup_user()Andre2006-11-01
|
* move user handling code into seperate functionsAndre2006-11-01
| | | | They are called user_list.c and user_list.h
* Remove underscores from _get_user(), struct _user and _user_listAndre2006-11-01
| | | | | | As the variants without underscore were removed in the previous patch. The exception is user_list which contains the name of the config file containing all users and which is still needed. So rename it to user_list_file.
* kill get_user() and struct userAndre2006-11-01
| | | | | It is unused as it was replaced by the in-memory variants _get_user() and struct _user.
* switch to the in-memory user listAndre2006-11-01
| | | | | | | In order to do so, the crypt functions had to be changed so that they take an rsa key instead of the filename of that key. Also, make _get_user() return -E_BAD_USER if the user was not found and move the corresponding error codes from COMMAND_ERRORS to SERVER_ERRORS in error.h.
* introduce para_fgets(), a wrapper for fgets()Andre2006-09-30
| | | | | | stdio sucks badly. The only serious user of fgets() is para_server's get_user() function. So make it use the wrapper and simplify it as we're at it.
* com_stat: abort on server crashesAndre2006-07-11
| | | | | | | | Currently, if para_server gets killed by SIGKILL, its status clients happily move on and announce the most current stream. This causes audiod to restart the receivers in an endless loop. It's better to close the connection from within com_stat() if the parent pid equals one (which indicates that para_server has crashed).
* get rid of -DVERSIONAndre2006-06-28
| | | | | It's identical to PACKAGE_VERSION, so use PACKAGE_VERSION in the C Code and get rid of the preprocessor define.
* integrate para_client into para_audiodAndre2006-06-15
| | | | | | | | | This allows major simplifications: - get rid of exec.o: para_audiod no longer executes any external programs - get rid of close_on_fork.o - get rid of the sigchld handler.
* split client.cAndre2006-06-15
| | | | | | | | new file: client.h new file: client_common.c This completes the preparations for including para_client into para_audiod. client_common.c contains all functions that are also useful for para_audiod.
* Make crypo a per fd featureAndre2006-06-12
| | | | | | | | | | | The current code checked if the global pointers crypt_function_recv and crypt_function_send are non-NULL. In this case it used the given crypt functions unconditionally for each fd. This makes it messy to enable crypto only for some fds. This patch removes these global pointers in favour of an array of crypt function pointers. Users may use this function to activate crypto for each fd separately.
* split afs.hAndre2006-05-17
| | | | | move the audio format handler stuff to the new afh.h header file which isn't included by any of the senders.
* random/mysql selector: make it find m4a filesAndre2006-05-13
| | | | | This is achieved by adding an array of typical suffixes for the audio format to struct audio_format_handler.
* Rename struct audio format to audio_format_handlerAndre2006-05-13
|
* TypoAndre2006-05-11
|
* command.c: cast members of struct timeval to long unsignedAndre2006-04-20
| | | | | | | | This should fix command.c:441: warning: format '%lu' expects type 'long unsigned int', but argument 31 has type 'suseconds_t' on MacOs.
* fix more struct timeval related warningsAndre2006-04-16
| | | | | | Use tv2ms() which returns long unsigned where appropriate. For the remaining cases, cast the members of struct timeval to long unsigned if used via a format string.
* kill mallinfoAndre2006-04-15
| | | | | It is not important enough to care about the compatibility issues.
* gcc-compat.h: rename __unused to __a_unusedAndre2006-04-15
| | | | __unused is already defined on MacOS.
* typoAndre2006-04-11
| | | | This was introduced in the previous patch.
* improved version of split_args()Andre2006-04-10
| | | | | | | | Thanks to Lorenzo Bettini for pointing this out. This patch also fixes a bug with the default filter configuration which allocated too little memory for the array of filter configurations. Now we always allocate space for at least three entries.
* rename the array of supported audio file senders from 'dblist' to 'selectors'Andre2006-04-04
|
* use const qualifiers where possibleAndre2006-03-26
|
* com_next() fix.Andre2006-03-25
| | | | | Do not clear the AFS_NEXT flag in afs_send_chunk() and increase mmd->events. Fixes a (rare) problem where the next command did not work.
* mmd: rename dbt_change to selector_changeAndre2006-03-10
|