]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- include libsnapper version in debug reply 820/head
authorArvin Schnell <aschnell@suse.de>
Tue, 13 Jun 2023 13:19:18 +0000 (15:19 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 13 Jun 2023 13:22:37 +0000 (15:22 +0200)
server/Client.cc
snapper/Version.h.in

index 74a3cbc24617febca0ae133b0194030709af6399..622766c5061fcc01da637edab07befb55afba0a3 100644 (file)
@@ -26,6 +26,7 @@
 #include <snapper/Log.h>
 #include <snapper/SnapperTmpl.h>
 #include <snapper/AsciiFile.h>
+#include <snapper/Version.h>
 #include <dbus/DBusMessage.h>
 #include <dbus/DBusConnection.h>
 
@@ -1773,6 +1774,7 @@ Client::debug(DBus::Connection& conn, DBus::Message& msg)
 
     marshaller << "compile options:";
     marshaller << "    version " + string(Snapper::compileVersion());
+    marshaller << "    libversion " LIBSNAPPER_MAJOR "." LIBSNAPPER_MINOR "." LIBSNAPPER_PATCHLEVEL;
     marshaller << "    flags " + string(Snapper::compileFlags());
 
     marshaller.close_array();
index fa9c1f5fcccc3b1af593b936731a0eaa59764136..b92b6c502a72ac177c35a0fe6bad082cd8965448 100644 (file)
@@ -24,9 +24,9 @@
 #define SNAPPER_VERSION_H
 
 
-#define LIBSNAPPER_MAJOR="@LIBVERSION_MAJOR@"
-#define LIBSNAPPER_MINOR="@LIBVERSION_MINOR@"
-#define LIBSNAPPER_PATCHLEVEL="@LIBVERSION_PATCHLEVEL@"
+#define LIBSNAPPER_MAJOR "@LIBVERSION_MAJOR@"
+#define LIBSNAPPER_MINOR "@LIBVERSION_MINOR@"
+#define LIBSNAPPER_PATCHLEVEL "@LIBVERSION_PATCHLEVEL@"
 
 #define LIBSNAPPER_VERSION ( LIBSNAPPER_MAJOR * 10000 + \\
                             LIBSNAPPER_MINOR * 100 + \\