aboutsummaryrefslogtreecommitdiff
path: root/src/version.hh
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-11-01 18:39:12 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-11-24 17:15:09 +0100
commit53fb37ae030c294e29e820cc4c34bca4d0ac2e27 (patch)
treebe5e3ed184e4ef8c8b3245d99f32d85941b4ab66 /src/version.hh
parent1baacd434046adcdf7cace66750f34ba3fc78b52 (diff)
Print version of libraries and features
When reporting the version of Dillo with -v, print also the version of the libraries it is currently using, as well as the features that were enabled at build time. Notice the versions are reported by reading them at runtime, so we can detect the version loaded at run time, regardless of which version was used at link time. All features are always printed, but prefixes with + if enabled or - if disabled. This allows checking if the feature was disabled at configure time or if it is missing in that version of Dillo.
Diffstat (limited to 'src/version.hh')
-rw-r--r--src/version.hh25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/version.hh b/src/version.hh
new file mode 100644
index 00000000..481c5e08
--- /dev/null
+++ b/src/version.hh
@@ -0,0 +1,25 @@
+/*
+ * Dillo web browser
+ *
+ * Copyright 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef VERSION_HH
+#define VERSION_HH
+
+void a_Version_print_info();
+
+#endif /* VERSION_HH */