]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
add Shared Memory Interface Revision number, e.g. "smi9" to the version string for...
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 20 May 2023 15:42:52 +0000 (16:42 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Sat, 20 May 2023 15:42:52 +0000 (16:42 +0100)
common.c

index 3630ea367e37e9485e9962b42544330279108e1e..f60f1ea5caf66ac835973888e6300aef6e17e8f6 100644 (file)
--- a/common.c
+++ b/common.c
 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");