add Shared Memory Interface Revision number, e.g. "smi9" to the version string for AirPlay2.

This commit is contained in:
Mike Brady
2023-05-20 16:42:52 +01:00
parent 004bf2655f
commit ffeeacc4bd
+7
View File
@@ -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");