From: Andre Noll Date: Wed, 28 Dec 2016 01:08:54 +0000 (+0100) Subject: fade: Add documentation for main() and include it in doxygen. X-Git-Tag: v0.5.7~9 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=6494c65af41cd12bf3de545998df8a4b0a5db3b5;p=paraslash.git fade: Add documentation for main() and include it in doxygen. The two mixer implementations for OSS and ALSA are also included, both of which are only used by para_fade. So it makes sense to include para_fade as well. main() is the only a non-static function, so let's doxify that. --- diff --git a/Doxyfile b/Doxyfile index 50c74695..df6c87fd 100644 --- a/Doxyfile +++ b/Doxyfile @@ -797,7 +797,6 @@ EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = *.cmdline.* \ gcc-compat.h \ - fade.c \ *.command_list.h \ *.completion.h diff --git a/fade.c b/fade.c index e05e3173..95bb1d59 100644 --- a/fade.c +++ b/fade.c @@ -333,6 +333,17 @@ __noreturn static void print_help_and_die(void) exit(0); } +/** + * The main function of para_fade. + * + * The executable is linked with the alsa or the oss mixer API, or both. It has + * a custom log function which prefixes log messages with the current date. + * + * \param argc Argument counter. + * \param argv Argument vector. + * + * \return EXIT_SUCCESS or EXIT_FAILURE. + */ int main(int argc, char *argv[]) { int ret;