From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sat, 20 May 2023 15:42:52 +0000 (+0100) Subject: add Shared Memory Interface Revision number, e.g. "smi9" to the version string for... X-Git-Tag: 4.2.1d0~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffeeacc4bd68003eeccadda3c0e227cc75657f8d;p=thirdparty%2Fshairport-sync.git add Shared Memory Interface Revision number, e.g. "smi9" to the version string for AirPlay2. --- diff --git a/common.c b/common.c index 3630ea36..f60f1ea5 100644 --- a/common.c +++ b/common.c @@ -110,6 +110,10 @@ void set_alsa_out_dev(char *); #endif +#ifdef CONFIG_AIRPLAY_2 +#include "nqptp-shm-structures.h" +#endif + config_t config_file_stuff; int type_of_exit_cleanup; uint64_t ns_time_at_startup, ns_time_at_last_debug_message; @@ -1612,6 +1616,9 @@ char *get_version_string() { strcpy(version_string, PACKAGE_VERSION); #ifdef CONFIG_AIRPLAY_2 strcat(version_string, "-AirPlay2"); + char smiv[1024]; + snprintf(smiv, 1024, "-smi%u", NQPTP_SHM_STRUCTURES_VERSION); + strcat(version_string, smiv); #endif #ifdef CONFIG_APPLE_ALAC strcat(version_string, "-alac");