Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
cli: improve show version command
Browse files Browse the repository at this point in the history
Display ALSA and SQLite versions the module was build against.
  • Loading branch information
RoEdAl committed May 26, 2024
1 parent 7058dcf commit 3e7f5e0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
bg <[email protected]>
*/
#include <alsa/global.h>
#include <alsa/version.h>
#include <sqlite3.h>

#include "ast_config.h"
Expand Down Expand Up @@ -366,8 +367,10 @@ static char* cli_show_version(struct ast_cli_entry* e, int cmd, struct ast_cli_a
return CLI_SHOWUSAGE;
}

ast_cli(a->fd, "\n%s: %s, Version %s, Revision %s\nProject Home: %s\nBug Reporting: %s\nALSA version: %s, SQLite version: %s\n\n", AST_MODULE,
MODULE_DESCRIPTION, MODULE_VERSION, PACKAGE_REVISION, MODULE_URL, MODULE_BUGREPORT, snd_asoundlib_version(), sqlite3_libversion());
ast_cli(a->fd,
"\n" AST_MODULE ": " MODULE_DESCRIPTION ", Version " MODULE_VERSION ", Revision " PACKAGE_REVISION "\nProject Home: " MODULE_URL
"\nBug Reporting: " MODULE_BUGREPORT "\nALSA version: %s [" SND_LIB_VERSION_STR "], SQLite version: %s [" SQLITE_VERSION "]\n\n",
snd_asoundlib_version(), sqlite3_libversion());

return CLI_SUCCESS;
}
Expand Down

0 comments on commit 3e7f5e0

Please sign in to comment.